]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/display: use intel_bo_to_drm_bo in intel_fbdev
authorJouni Högander <jouni.hogander@intel.com>
Wed, 15 Nov 2023 09:07:19 +0000 (11:07 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Fri, 1 Dec 2023 15:26:24 +0000 (17:26 +0200)
We are preparing for Xe driver. I915 and Xe object implementation are
differing. Do not use  i915_gem_object->base directly. Instead use
intel_bo_to_drm_bo.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231115090719.3210079-3-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_fbdev.c

index b7e4b7830e4545e197bd772652197aed28ce0733..99894a855ef053d89b80b93538465c18dd446aa3 100644 (file)
@@ -332,12 +332,12 @@ static bool intel_fbdev_init_bios(struct drm_device *dev,
                        continue;
                }
 
-               if (obj->base.size > max_size) {
+               if (intel_bo_to_drm_bo(obj)->size > max_size) {
                        drm_dbg_kms(&i915->drm,
                                    "found possible fb from [PLANE:%d:%s]\n",
                                    plane->base.base.id, plane->base.name);
                        fb = to_intel_framebuffer(plane_state->uapi.fb);
-                       max_size = obj->base.size;
+                       max_size = intel_bo_to_drm_bo(obj)->size;
                }
        }