mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
spirv: fix SpvOpBitSize return value.
The spir-v spec says this returns a bool. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
5ff5d0a895
commit
2774d39366
1 changed files with 1 additions and 3 deletions
|
|
@ -646,9 +646,7 @@ vtn_handle_alu(struct vtn_builder *b, SpvOp opcode,
|
|||
val->ssa->def =
|
||||
nir_ishr(&b->nb, src[0], nir_imm_int(&b->nb, src_bit_size - 1));
|
||||
|
||||
if (src_bit_size != 32)
|
||||
val->ssa->def = nir_u2u32(&b->nb, val->ssa->def);
|
||||
|
||||
val->ssa->def = nir_i2b(&b->nb, val->ssa->def);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue