From e39de04cfe55630353b1f8002b40e10a5000f801 Mon Sep 17 00:00:00 2001 From: Matthew Auld Date: Fri, 30 Jul 2021 09:53:38 +0100 Subject: lib/i915/gem_mman: add FIXED mmap mode We need this for discrete. v2(Ashutosh): - use the new i915_drm_local.h infrastructure, and drop the LOCAL prefix Signed-off-by: Matthew Auld Cc: Maarten Lankhorst Cc: Ashutosh Dixit Cc: Daniel Vetter Cc: Ramalingam C Signed-off-by: Maarten Lankhorst --- lib/i915/i915_drm_local.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/i915/i915_drm_local.h') diff --git a/lib/i915/i915_drm_local.h b/lib/i915/i915_drm_local.h index dd646aed..0e3cef81 100644 --- a/lib/i915/i915_drm_local.h +++ b/lib/i915/i915_drm_local.h @@ -20,6 +20,8 @@ extern "C" { * clean these up when kernel uapi headers are sync'd. */ +#define I915_MMAP_OFFSET_FIXED 4 + #if defined(__cplusplus) } #endif -- cgit v1.2.3