mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 08:20:12 +01:00
ac/llvm: convert to integer after reductions
These return floating point types for floating point ops. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Backport-to: 25.1 Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Marek Olšák <maraeo@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35489>
This commit is contained in:
parent
8609008aeb
commit
2ff53fd97c
1 changed files with 3 additions and 0 deletions
|
|
@ -2960,14 +2960,17 @@ static bool visit_intrinsic(struct ac_nir_context *ctx, nir_intrinsic_instr *ins
|
|||
case nir_intrinsic_reduce:
|
||||
result = ac_build_reduce(&ctx->ac, get_src(ctx, instr->src[0]), instr->const_index[0],
|
||||
instr->const_index[1]);
|
||||
result = ac_to_integer(&ctx->ac, result);
|
||||
break;
|
||||
case nir_intrinsic_inclusive_scan:
|
||||
result =
|
||||
ac_build_inclusive_scan(&ctx->ac, get_src(ctx, instr->src[0]), instr->const_index[0]);
|
||||
result = ac_to_integer(&ctx->ac, result);
|
||||
break;
|
||||
case nir_intrinsic_exclusive_scan:
|
||||
result =
|
||||
ac_build_exclusive_scan(&ctx->ac, get_src(ctx, instr->src[0]), instr->const_index[0]);
|
||||
result = ac_to_integer(&ctx->ac, result);
|
||||
break;
|
||||
case nir_intrinsic_quad_broadcast: {
|
||||
unsigned lane = nir_src_as_uint(instr->src[1]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue