Skip to content
Snippets Groups Projects
Commit 8fa70cfc authored by Faith Ekstrand's avatar Faith Ekstrand :speech_balloon:
Browse files

spirv: Use the right bit-size for spec constant ops


Previously, we would always pull the bit size from the destination which
is wrong for opcodes like nir_ilt where the sources are variable-sized
but the destination is a fixed size.  We were getting lucky before
because nir_op_ilt returns a 32-bit value and basically everyone who
uses spec constants uses 32-bit ones.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
parent 1d2ed694
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment