diff options
author | Andi Shyti <andi.shyti@linux.intel.com> | 2022-03-19 01:39:31 +0200 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2022-03-21 08:37:33 +0000 |
commit | fa732088378fa0492bd85f32a89f1f39b305d363 (patch) | |
tree | 31ee0597269190d307381af2a157f8fd321de907 /drivers/gpu/drm/i915/display/intel_fb.c | |
parent | 6f270e1488d7a85e0c93e6536d0073796adf8b4f (diff) | |
download | linux-fa732088378fa0492bd85f32a89f1f39b305d363.tar.gz linux-fa732088378fa0492bd85f32a89f1f39b305d363.tar.bz2 linux-fa732088378fa0492bd85f32a89f1f39b305d363.zip |
drm/i915: Rename INTEL_REGION_LMEM with INTEL_REGION_LMEM_0
With the upcoming multitile support each tile will have its own
local memory. Mark the current LMEM with the suffix '0' to
emphasise that it belongs to the root tile.
Suggested-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220318233938.149744-2-andi.shyti@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_fb.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c index 23cfe2e5ce2a..421f7238da05 100644 --- a/drivers/gpu/drm/i915/display/intel_fb.c +++ b/drivers/gpu/drm/i915/display/intel_fb.c @@ -1981,7 +1981,7 @@ intel_user_framebuffer_create(struct drm_device *dev, /* object is backed with LMEM for discrete */ i915 = to_i915(obj->base.dev); - if (HAS_LMEM(i915) && !i915_gem_object_can_migrate(obj, INTEL_REGION_LMEM)) { + if (HAS_LMEM(i915) && !i915_gem_object_can_migrate(obj, INTEL_REGION_LMEM_0)) { /* object is "remote", not in local memory */ i915_gem_object_put(obj); return ERR_PTR(-EREMOTE); |