i965/bufmgr: Add support for MMAP_OFFSET ioctl.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 14 Dec 2018 22:02:04 +0000 (14:02 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Mon, 20 Apr 2020 17:59:06 +0000 (10:59 -0700)
commitae6f06c50939b49f7c7407d9bede00a246ab1891
treee69fc3f029e0733f69ceafd9101cf7deaa38200b
parent5bc3f52dd8c2b5acaae959ccae2e1fb7c769bb22
i965/bufmgr: Add support for MMAP_OFFSET ioctl.

Use the new DRM_IOCTL_I915_GEM_MMAP_OFFSET ioctl when available.

v2: update getparam check (Ken).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1675>
src/mesa/drivers/dri/i965/brw_bufmgr.c