summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-05-06 10:23:26 -0500
committerJason Ekstrand <[email protected]>2019-05-24 08:38:11 -0500
commitddd08e1888cfdf7a643b8fa1ce61f77bb66aa3eb (patch)
treed7a679f59482db5f44756bbb482f55e61861d057 /src/mesa/state_tracker
parent6c2ca2a5d33cdfc4202ebb0df54567b587ecc578 (diff)
nir/builder: Remove the use_fmov parameter from nir_swizzle
This flag has caused more confusion than good in most cases. You can validly use imov for floats or fmov for integers because, without source modifiers, neither modify their input in any way. Using imov for floats is more reliable so we go that direction. Reviewed-by: Kristian H. Kristensen <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_nir_lower_builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_nir_lower_builtin.c b/src/mesa/state_tracker/st_nir_lower_builtin.c
index ab74d3183dc..f6f9bf15278 100644
--- a/src/mesa/state_tracker/st_nir_lower_builtin.c
+++ b/src/mesa/state_tracker/st_nir_lower_builtin.c
@@ -209,7 +209,7 @@ lower_builtin_block(lower_builtin_state *state, nir_block *block)
swiz[i] = GET_SWZ(element->swizzle, i);
assert(swiz[i] <= SWIZZLE_W);
}
- def = nir_swizzle(b, def, swiz, intrin->num_components, true);
+ def = nir_swizzle(b, def, swiz, intrin->num_components);
/* and rewrite uses of original instruction: */
assert(intrin->dest.is_ssa);