From 9fe382ba96cf1053edf9b73210bd6da09c9d8d9f Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Tue, 19 Jul 2022 20:48:42 +0200 Subject: [PATCH] ir3: Only run 16bit tex NIR passes on a5xx+. 16bit types aren't yet supported on older hardware. Signed-off-by: Georg Lehmann Reviewed-by: Emma Anholt Part-of: --- src/freedreno/ir3/ir3_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index 0b0cc73bd5f..d9a20bca314 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -765,7 +765,7 @@ ir3_nir_lower_variant(struct ir3_shader_variant *so, nir_shader *s) bool more_late_algebraic = true; while (more_late_algebraic) { more_late_algebraic = OPT(s, nir_opt_algebraic_late); - if (!more_late_algebraic) { + if (!more_late_algebraic && so->compiler->gen >= 5) { /* Lowers texture operations that have only f2f16 or u2u16 called on * them to have a 16-bit destination. Also, lower 16-bit texture * coordinates that had been upconverted to 32-bits just for the