commit | 9c52c3dc4763336884277d8005eac7e6efb77600 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Thu Oct 10 14:40:58 2013 -0700 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Thu Oct 10 14:41:40 2013 -0700 |
tree | 1a197243e8166926a2970d13ed21c1c3e3c80f36 | |
parent | ddbbdb13d80ea7f60e6f71356a444995b905366b [diff] |
intel: Set bo size from lseek if kernel supports it The various create and open functions set the buffer size, but drm_intel_bo_gem_create_from_prime() is an exception. In the 3.12 kernel we can now use lseek on the prime fd to determine the size of the bo. Use that and override the userprovided size. If the kernel doesn't support this, we get an error and fall back to the user provided size. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>