Skip to content
Commit 9c52c3dc authored by Kristian Høgsberg's avatar Kristian Høgsberg
Browse files

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: default avatarKristian Høgsberg <krh@bitplanet.net>
parent ddbbdb13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment