diff options
author | Erik Faye-Lund <[email protected]> | 2019-07-19 15:34:07 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:47 +0000 |
commit | 0f697be76d7873c277d2daa520922bbf3b02fbe0 (patch) | |
tree | e993a28779fa634c3aa472f6a5f060ffbb2ef87d | |
parent | 54c46db1c88df9042b0cf8dafc0046ecd445359c (diff) |
zink/spirv: use bit_size instead of hard-coding
Acked-by: Jordan Justen <[email protected]>
-rw-r--r-- | src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 4 |
1 files changed, 2 insertions, 2 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 6910bb49b3e..343f615c97f 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 @@ -919,8 +919,8 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) int num_components = nir_dest_num_components(alu->dest.dest); SpvId bool_type = get_bvec_type(ctx, num_components); - SpvId zero = emit_float_const(ctx, 32, 0.0f); - SpvId one = emit_float_const(ctx, 32, 1.0f); + SpvId zero = emit_float_const(ctx, bit_size, 0.0f); + SpvId one = emit_float_const(ctx, bit_size, 1.0f); if (num_components > 1) { SpvId zero_comps[num_components], one_comps[num_components]; for (int i = 0; i < num_components; i++) { |