zink/spirv: assert bit-size
This is going to make it easier to verify that 1-bit float sizes don't leak into the rest of the code. Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
@@ -484,6 +484,7 @@ get_alu_src_uint(struct ntv_context *ctx, nir_alu_instr *alu, unsigned src)
|
||||
return def;
|
||||
|
||||
int bit_size = nir_src_bit_size(alu->src[src].src);
|
||||
assert(bit_size == 32);
|
||||
|
||||
SpvId uint_type = spirv_builder_type_uint(&ctx->builder, bit_size);
|
||||
if (used_channels == 1) {
|
||||
|
Reference in New Issue
Block a user