On Thu, Oct 10, 2013 at 03:07:01PM -0700, Kristian Høgsberg wrote:
> 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 over
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