From 858154b84ecc7f2ff79f866275bb210106d9dd3d Mon Sep 17 00:00:00 2001 From: Karmjit Mahil Date: Thu, 25 Apr 2024 15:53:12 +0100 Subject: [PATCH] ir3: Don't set saturation on `flat.b` Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10999 Signed-off-by: Karmjit Mahil Reviewed-by: Job Noorman Reviewed-by: Rob Clark Part-of: --- src/freedreno/ir3/instr-a3xx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedreno/ir3/instr-a3xx.h b/src/freedreno/ir3/instr-a3xx.h index 86fd5574d2b..c928bd42acd 100644 --- a/src/freedreno/ir3/instr-a3xx.h +++ b/src/freedreno/ir3/instr-a3xx.h @@ -609,8 +609,9 @@ is_sat_compatible(opc_t opc) return false; switch (opc) { - /* On a3xx and a6xx saturation doesn't work on bary.f */ + /* On a3xx and a6xx saturation doesn't work on bary.f/flat.b */ case OPC_BARY_F: + case OPC_FLAT_B: /* On a6xx saturation doesn't work on sel.* */ case OPC_SEL_B16: case OPC_SEL_B32: