From: Nicholas Carbones <[email protected]> [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 <[email protected]> Signed-off-by: Nicholas Carbones <[email protected]> Signed-off-by: Wayne Lin <[email protected]> --- .../drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c index bf5e7f4e0416..3f4963ce3a00 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c +++ b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c @@ -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; } } -- 2.43.0
