summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_intrinsics.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-10-19 09:35:49 -0500
committerJason Ekstrand <[email protected]>2018-10-26 11:45:29 -0500
commitff45649bc2fc3b048a8ae19cd67ec1e8e8eeb7a8 (patch)
treedd63a76053dc0c58fb7dfc5f15930ac837fab1f3 /src/compiler/nir/nir_opt_intrinsics.c
parent249e32ab17bdbe1f26449079b0eafd3391b52d0f (diff)
nir/builder: Add a nir_imm_true/false helpers
Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opt_intrinsics.c')
-rw-r--r--src/compiler/nir/nir_opt_intrinsics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_intrinsics.c b/src/compiler/nir/nir_opt_intrinsics.c
index 0bc2f0b3c82..7b054faa204 100644
--- a/src/compiler/nir/nir_opt_intrinsics.c
+++ b/src/compiler/nir/nir_opt_intrinsics.c
@@ -53,7 +53,7 @@ opt_intrinsics_impl(nir_function_impl *impl)
case nir_intrinsic_vote_feq:
case nir_intrinsic_vote_ieq:
if (nir_src_is_const(intrin->src[0]))
- replacement = nir_imm_int(&b, NIR_TRUE);
+ replacement = nir_imm_true(&b);
break;
default:
break;