Module: Mesa
Branch: main
Commit: 8b4904405e2e801626b1902551eb7486add1a337
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b4904405e2e801626b1902551eb7486add1a337

Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Sep  8 13:12:26 2023 -0400

zink: use right function to get src_type in eliminate_io_wrmasks

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24950>

---

 src/gallium/drivers/zink/zink_compiler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_compiler.c 
b/src/gallium/drivers/zink/zink_compiler.c
index 4616c0505d7..4f96e7ca2bc 100644
--- a/src/gallium/drivers/zink/zink_compiler.c
+++ b/src/gallium/drivers/zink/zink_compiler.c
@@ -5326,7 +5326,7 @@ eliminate_io_wrmasks_instr(const nir_instr *instr, const 
void *data)
    unsigned num_components = util_bitcount(wrmask);
    if (num_components != src_components)
       return true;
-   if ((nir_intrinsic_instr_src_type(intr, 0) & NIR_ALU_TYPE_SIZE_MASK) == 64)
+   if ((nir_intrinsic_src_type(intr) & NIR_ALU_TYPE_SIZE_MASK) == 64)
       num_components *= 2;
    if (nir->xfb_info) {
       nir_io_semantics s = nir_intrinsic_io_semantics(intr);

Reply via email to