From b83af7e5b8114cd474ba70488f81871e44b460ad Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 20 Apr 2023 11:57:31 -0700 Subject: [PATCH] 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: 87978c39334 ("freedreno/a6xx: Allow z24s8 format casts") Signed-off-by: Rob Clark Part-of: --- src/gallium/drivers/freedreno/a6xx/fd6_resource.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_resource.cc b/src/gallium/drivers/freedreno/a6xx/fd6_resource.cc index a1befce..5e0a64d 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_resource.cc +++ b/src/gallium/drivers/freedreno/a6xx/fd6_resource.cc @@ -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 -- 2.7.4