aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/spirv_to_nir.c
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <[email protected]>2018-03-14 08:49:43 +0100
committerSamuel Iglesias Gonsálvez <[email protected]>2018-03-15 08:56:15 +0100
commitadf58e59d3d2639ee214087f94bf7a079f8cd9a8 (patch)
tree4b9767482d532eb09ec7c694547d1fb45d39a530 /src/compiler/spirv/spirv_to_nir.c
parentce2fd8705693d70a2422c5dd292fffea7fdce5ba (diff)
spirv: update arguments for vtn_nir_alu_op_for_spirv_opcode()
We don't need anymore the source and destination's data type, just their bitsize. v2: - Use glsl_get_bit_size () instead (Jason). Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/spirv/spirv_to_nir.c')
-rw-r--r--src/compiler/spirv/spirv_to_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 42a559122a6..df01f4ff4a3 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -1725,8 +1725,8 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
};
nir_op op = vtn_nir_alu_op_for_spirv_opcode(b, opcode, &swap,
- src_alu_type,
- dst_alu_type);
+ nir_alu_type_get_type_size(src_alu_type),
+ nir_alu_type_get_type_size(dst_alu_type));
nir_const_value src[4];
for (unsigned i = 0; i < count - 4; i++) {