mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/i915/wm: Use fb->modfier to check for tiled vs. untiled
There is no point in checking the bo fence tiling mode when we can just check the fb modifier instead. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20251003145734.7634-6-ville.syrjala@linux.intel.com
This commit is contained in:
@@ -2295,12 +2295,11 @@ static void i9xx_update_wm(struct intel_display *display)
|
||||
|
||||
crtc = single_enabled_crtc(display);
|
||||
if (display->platform.i915gm && crtc) {
|
||||
struct drm_gem_object *obj;
|
||||
|
||||
obj = intel_fb_bo(crtc->base.primary->state->fb);
|
||||
const struct drm_framebuffer *fb =
|
||||
crtc->base.primary->state->fb;
|
||||
|
||||
/* self-refresh seems busted with untiled */
|
||||
if (!intel_bo_is_tiled(obj))
|
||||
if (fb->modifier == DRM_FORMAT_MOD_LINEAR)
|
||||
crtc = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user