freedreno/a6xx: Fix valid_format_cast logic for newer a6xx

Fixes a pile of
dEQP-GLES31.functional.copy_image.non_compressed.viewclass_32_bits.*
on a6xx gen2 and later.

Fixes: 87978c3933 ("freedreno/a6xx: Allow z24s8 format casts")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22610>
(cherry picked from commit b83af7e5b8)
This commit is contained in:
Rob Clark 2023-04-20 11:57:31 -07:00 committed by Eric Engestrom
parent b8a7fba41f
commit cec5bf6040
2 changed files with 2 additions and 2 deletions

View file

@ -472,7 +472,7 @@
"description": "freedreno/a6xx: Fix valid_format_cast logic for newer a6xx",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "87978c39334045b6e998e62f7353c4c98e588f53"
},

View file

@ -143,7 +143,7 @@ valid_format_cast(struct fd_resource *rsc, enum pipe_format format)
* permutations of z24s8:
*/
if (fd_screen(rsc->b.b.screen)->info->a6xx.has_z24uint_s8uint &&
(is_z24s8(format) == is_z24s8(rsc->b.b.format)))
is_z24s8(format) && is_z24s8(rsc->b.b.format))
return true;
/* For some color values (just "solid white") compression metadata maps to