From 079d416e9983dc5ecdfaac21909f663ff9cdea3b Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Wed, 7 Aug 2024 12:11:52 +0200 Subject: [PATCH] nir: Fix the types of udot_.*_uadd_sat Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir_opcodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 03b80b5068a..b9e711a10f2 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -1753,7 +1753,7 @@ opcode("sdot_4x8_iadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32], """) # Like udot_4x8_uadd, but the result is clampled to the range [0, 0xfffffffff]. -opcode("udot_4x8_uadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32], +opcode("udot_4x8_uadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tuint32], False, _2src_commutative, """ const uint64_t v0x = (uint8_t)(src0 ); const uint64_t v0y = (uint8_t)(src0 >> 8); @@ -1827,7 +1827,7 @@ opcode("sdot_2x16_iadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32], """) # Like udot_2x16_uadd, but the result is clampled to the range [0, 0xfffffffff]. -opcode("udot_2x16_uadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32], +opcode("udot_2x16_uadd_sat", 0, tuint32, [0, 0, 0], [tuint32, tuint32, tuint32], False, _2src_commutative, """ const uint32_t v0x = (uint16_t)(src0 ); const uint32_t v0y = (uint16_t)(src0 >> 16);