mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 07:00:12 +01:00
spirv: reduce array size in vtn_handle_constant
we already assert above that there are no more than 3 sources, so it doesn't make sense to use an array of 4 sources Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
e72beacb95
commit
73d883037d
1 changed files with 1 additions and 1 deletions
|
|
@ -2005,7 +2005,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
|
||||||
nir_op op = vtn_nir_alu_op_for_spirv_opcode(b, opcode, &swap,
|
nir_op op = vtn_nir_alu_op_for_spirv_opcode(b, opcode, &swap,
|
||||||
nir_alu_type_get_type_size(src_alu_type),
|
nir_alu_type_get_type_size(src_alu_type),
|
||||||
nir_alu_type_get_type_size(dst_alu_type));
|
nir_alu_type_get_type_size(dst_alu_type));
|
||||||
nir_const_value src[4];
|
nir_const_value src[3];
|
||||||
|
|
||||||
for (unsigned i = 0; i < count - 4; i++) {
|
for (unsigned i = 0; i < count - 4; i++) {
|
||||||
struct vtn_value *src_val =
|
struct vtn_value *src_val =
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue