aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_gtt.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2023-01-18 15:15:37 +0200
committerJani Nikula <jani.nikula@intel.com>2023-01-20 10:14:43 +0200
commit0cfee2d7fd992d51cd68cc333dfebadc923abd92 (patch)
tree7cf777af76d4b266135c74b1dac5cedb893a43f3 /drivers/gpu/drm/i915/i915_gem_gtt.h
parentdrm/i915: move I915_GEM_GPU_DOMAINS to i915_gem.h (diff)
downloadlinux-stable-0cfee2d7fd992d51cd68cc333dfebadc923abd92.tar.xz
linux-stable-0cfee2d7fd992d51cd68cc333dfebadc923abd92.zip
drm/i915: move I915_COLOR_UNEVICTABLE to i915_gem_gtt.h
Declutter i915_drv.h. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Acked-by: Nirmoy Das <nirmoy.das@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230118131538.3558599-6-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h
index 8c2f57eb5dda..4c299800cfed 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.h
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.h
@@ -18,6 +18,8 @@ struct drm_i915_gem_object;
struct i915_address_space;
struct i915_gem_ww_ctx;
+#define I915_COLOR_UNEVICTABLE (-1) /* a non-vma sharing the address space */
+
int __must_check i915_gem_gtt_prepare_pages(struct drm_i915_gem_object *obj,
struct sg_table *pages);
void i915_gem_gtt_finish_pages(struct drm_i915_gem_object *obj,