radeonsi: fix eptich on chips without image opcodes (e.g. gfx940)
This fixes VAAPI decode corruption issues.
Fixes: 26cd3a1718
("ac,radv,radeonsi: add a helper to set mutable tex desc fields")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30273>
This commit is contained in:

committed by
Marge Bot

parent
cccfbe6141
commit
0cb3ace969
@@ -303,6 +303,9 @@ void si_set_mutable_tex_desc_fields(struct si_screen *sscreen, struct si_texture
|
||||
|
||||
ac_set_mutable_tex_desc_fields(&sscreen->info, &ac_state, state);
|
||||
|
||||
if (!sscreen->info.has_image_opcodes)
|
||||
return;
|
||||
|
||||
if (sscreen->info.gfx_level == GFX9 && !is_stencil) {
|
||||
uint32_t hw_format = G_008F14_DATA_FORMAT(state[1]);
|
||||
uint16_t epitch = tex->surface.u.gfx9.epitch;
|
||||
|
Reference in New Issue
Block a user