summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-07-19 14:39:30 +0200
committerErik Faye-Lund <[email protected]>2019-10-28 08:51:47 +0000
commit0947afaa8f7fd2aa568c85679d0ef759c009904c (patch)
tree534d877e9d3b22015e707a4ee1e7697949a30ea6 /src/gallium/drivers
parentbb895afaa07ec83cf88c32cf6737505d2d0a4ea9 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
index 6612caf1eb1..d2001eb7de2 100644
--- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
+++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
@@ -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) {