mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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:
parent
cc7be8433a
commit
630a4d2249
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue