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 <siglesias@igalia.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user