Mesa (master): panfrost: Pass through src_type

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 4 16:45:35 UTC 2020


Module: Mesa
Branch: master
Commit: 4a2ecc72d341cdde00b6ebdda3bc539d6ca47de0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a2ecc72d341cdde00b6ebdda3bc539d6ca47de0

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Wed Nov  4 08:59:35 2020 -0500

panfrost: Pass through src_type

Needed since Bifrost blends are typed well.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7446>

---

 src/panfrost/util/pan_lower_writeout.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/panfrost/util/pan_lower_writeout.c b/src/panfrost/util/pan_lower_writeout.c
index b4155407ffa..44a1dac9595 100644
--- a/src/panfrost/util/pan_lower_writeout.c
+++ b/src/panfrost/util/pan_lower_writeout.c
@@ -117,6 +117,7 @@ pan_nir_lower_zs_store(nir_shader *nir)
                                 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 @@ pan_nir_lower_zs_store(nir_shader *nir)
                         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)



More information about the mesa-commit mailing list