radeonsi: Always use 2D tiling for video dpb

Fixes decode on VCN5 with AMD_DEBUG=notiling

Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41201>
This commit is contained in:
David Rosca 2026-04-27 15:28:02 +02:00 committed by Marge Bot
parent cc7be8433a
commit 630a4d2249

View file

@ -1389,6 +1389,10 @@ static enum radeon_surf_mode si_choose_tiling(struct si_screen *sscreen,
if (sscreen->info.gfx_level == GFX8 && tc_compatible_htile)
return RADEON_SURF_MODE_2D;
/* Video DPB must be 2D tiled. */
if (templ->bind & (PIPE_BIND_VIDEO_DECODE_DPB | PIPE_BIND_VIDEO_ENCODE_DPB))
return RADEON_SURF_MODE_2D;
/* Handle common candidates for the linear mode.
* Compressed textures and DB surfaces must always be tiled.
*/