mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 01:58:16 +02:00
pvr: use ffma_weak for lowering
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Simon Perretta <simon.perretta@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
parent
5404b382fb
commit
85c2023ee4
1 changed files with 3 additions and 3 deletions
|
|
@ -658,7 +658,7 @@ static nir_def *resolve_samples(nir_builder *b,
|
|||
|
||||
switch (resolve_op) {
|
||||
case PVR_RESOLVE_BLEND:
|
||||
op = nir_op_ffma_old;
|
||||
op = nir_op_ffma_weak;
|
||||
coeff = nir_imm_float(b, 1.0 / num_samples);
|
||||
break;
|
||||
|
||||
|
|
@ -683,7 +683,7 @@ static nir_def *resolve_samples(nir_builder *b,
|
|||
|
||||
for (unsigned i = 1; i < num_samples; i++) {
|
||||
if (resolve_op == PVR_RESOLVE_BLEND)
|
||||
accum = nir_ffma_old(b, samples[i], coeff, accum);
|
||||
accum = nir_ffma_weak(b, samples[i], coeff, accum);
|
||||
else
|
||||
accum = nir_build_alu2(b, op, samples[i], accum);
|
||||
}
|
||||
|
|
@ -866,7 +866,7 @@ pvr_uscgen_tq_frag_coords(nir_builder *b,
|
|||
nir_vec2(b,
|
||||
nir_load_preamble(b, 1, 32, .base = *next_sh + base_sh + 1),
|
||||
nir_load_preamble(b, 1, 32, .base = *next_sh + base_sh + 3));
|
||||
coords = nir_fmad_old(b, coords, mult, add);
|
||||
coords = nir_ffma_weak(b, coords, mult, add);
|
||||
*next_sh += 4;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue