mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 11:30:22 +01:00
nir: Fix the types of udot_.*_uadd_sat
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39076>
This commit is contained in:
parent
38d0bd7dd3
commit
079d416e99
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue