mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
ir3: use correct bit size for bools in emit_alu
The special case for 32b bools on pre-a5xx gens was not taken into account everywhere. Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28341>
This commit is contained in:
parent
cf395d1437
commit
83b55a7d7c
1 changed files with 2 additions and 1 deletions
|
|
@ -585,7 +585,8 @@ emit_alu(struct ir3_context *ctx, nir_alu_instr *alu)
|
|||
unsigned bs[info->num_inputs]; /* bit size */
|
||||
struct ir3_block *b = ctx->block;
|
||||
unsigned dst_sz;
|
||||
type_t dst_type = type_uint_size(alu->def.bit_size);
|
||||
unsigned dst_bitsize = ir3_bitsize(ctx, alu->def.bit_size);
|
||||
type_t dst_type = type_uint_size(dst_bitsize);
|
||||
|
||||
dst_sz = alu->def.num_components;
|
||||
assert(dst_sz == 1 || ir3_supports_vectorized_nir_op(alu->op));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue