]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/psr: Use hw.rotation instead of uapi.rotation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 19 Nov 2025 18:16:03 +0000 (20:16 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 27 Nov 2025 22:04:04 +0000 (00:04 +0200)
Presumably we're tryign to check if the hw plane is actually
rotated or not, so grab that information from the correct
plane (hw.rotation).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251119181606.17129-4-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_psr.c

index 8324faf73d006b9e1b288588d41d5106386d5e63..1d80a410ca0a76655a8c9c7da2e4e1ca9a9ffdc9 100644 (file)
@@ -2734,7 +2734,7 @@ static bool psr2_sel_fetch_plane_state_supported(const struct intel_plane_state
        if (plane_state->uapi.dst.y1 < 0 ||
            plane_state->uapi.dst.x1 < 0 ||
            plane_state->scaler_id >= 0 ||
-           plane_state->uapi.rotation != DRM_MODE_ROTATE_0)
+           plane_state->hw.rotation != DRM_MODE_ROTATE_0)
                return false;
 
        return true;