From ff45649bc2fc3b048a8ae19cd67ec1e8e8eeb7a8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 19 Oct 2018 09:35:49 -0500 Subject: nir/builder: Add a nir_imm_true/false helpers Reviewed-by: Ian Romanick Reviewed-by: Eric Anholt --- src/compiler/nir/nir_opt_intrinsics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/nir/nir_opt_intrinsics.c') 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; -- cgit v1.2.3