etnaviv: What if we just didn't have a compiler?
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 2 Aug 2023 19:30:56 +0000 (15:30 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Aug 2023 22:40:30 +0000 (22:40 +0000)
alyssa: please no.

etnaviv: ok but we'll just not run nir_validate so it's fine.

alyssa: please no.

etnaviv: ok but we have ci now so you have to keep it working.

alyssa: please no.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24432>

src/gallium/drivers/etnaviv/etnaviv_nir.c

index b24abe0..2cee67a 100644 (file)
@@ -190,6 +190,7 @@ etna_lower_alu_impl(nir_function_impl *impl, bool has_new_transcendentals)
             mul->dest.write_mask = 1;
             nir_ssa_dest_init(&mul->instr, &mul->dest.dest, 1, 32);
 
+            alu->src[0].swizzle[1] = 0;
             ssa->num_components = 2;
 
             nir_instr_insert_after(instr, &mul->instr);