mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
nir: do not needlessly rely on optimizations
We're going to do this rewrite once we get to nir_opt_algebraic anyway, so let's save a little bit of needless work here. Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24004>
This commit is contained in:
parent
6d42711043
commit
b0bbd9c0d3
2 changed files with 2 additions and 4 deletions
|
|
@ -72,8 +72,7 @@ implicit_downsampled_coord(nir_builder *b,
|
|||
{
|
||||
return nir_fadd(b,
|
||||
value,
|
||||
nir_fdiv(b,
|
||||
nir_imm_float(b, 1.0f),
|
||||
nir_frcp(b,
|
||||
nir_fmul(b,
|
||||
nir_imm_float(b, div_scale),
|
||||
max_value)));
|
||||
|
|
|
|||
|
|
@ -192,8 +192,7 @@ implicit_downsampled_coord(nir_builder *b,
|
|||
{
|
||||
return nir_fadd(b,
|
||||
value,
|
||||
nir_fdiv(b,
|
||||
nir_imm_float(b, 1.0f),
|
||||
nir_frcp(b,
|
||||
nir_fmul(b,
|
||||
nir_imm_float(b, div_scale),
|
||||
max_value)));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue