]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Add Handling for gfxversion DcGfxBase
authorNicholas Carbones <ncarbone@amd.com>
Wed, 7 Jan 2026 14:42:27 +0000 (09:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Feb 2026 21:43:36 +0000 (16:43 -0500)
[Why]
There is no way to set tiling in dml in the case that gfxversion is
DcGfxBase.

[How]
Where tiling is updated based on Gfx, add case for DcGfxBase and set
tiling to dml2_sw_linear.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Nicholas Carbones <ncarbone@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c

index bf5e7f4e04167fad6b3f1874518dbad820aa8702..3f4963ce3a002fad51b6fe59f9bf391f23359b23 100644 (file)
@@ -460,6 +460,9 @@ static void populate_dml21_surface_config_from_plane_state(
        case DcGfxAddr3:
                surface->tiling = gfx_addr3_to_dml2_swizzle_mode(plane_state->tiling_info.gfx_addr3.swizzle);
                break;
+       case DcGfxBase:
+               surface->tiling = dml2_sw_linear;
+               break;
        }
 }