panfrost: Pass through src_type
Needed since Bifrost blends are typed well.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7446>
diff --git a/src/panfrost/util/pan_lower_writeout.c b/src/panfrost/util/pan_lower_writeout.c
index b415540..44a1dac 100644
--- a/src/panfrost/util/pan_lower_writeout.c
+++ b/src/panfrost/util/pan_lower_writeout.c
@@ -117,6 +117,7 @@
combined_store->num_components = intr->src[0].ssa->num_components;
nir_intrinsic_set_base(combined_store, nir_intrinsic_base(intr));
+ nir_intrinsic_set_src_type(combined_store, nir_intrinsic_src_type(intr));
unsigned writeout = PAN_WRITEOUT_C;
if (z_store)
@@ -173,6 +174,7 @@
else
base = nir_intrinsic_base(s_store);
nir_intrinsic_set_base(combined_store, base);
+ nir_intrinsic_set_src_type(combined_store, nir_type_float32);
unsigned writeout = 0;
if (z_store)