summaryrefslogtreecommitdiffstats
path: root/src/intel
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/intel
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/intel')
-rw-r--r--src/intel/compiler/brw_nir_lower_image_load_store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_nir_lower_image_load_store.c b/src/intel/compiler/brw_nir_lower_image_load_store.c
index e8083a80cb7..1a7671b74b1 100644
--- a/src/intel/compiler/brw_nir_lower_image_load_store.c
+++ b/src/intel/compiler/brw_nir_lower_image_load_store.c
@@ -123,7 +123,7 @@ image_coord_is_in_bounds(nir_builder *b, nir_deref_instr *deref,
nir_ssa_def *cmp = nir_ilt(b, coord, size);
unsigned coord_comps = glsl_get_sampler_coordinate_components(deref->type);
- nir_ssa_def *in_bounds = nir_imm_int(b, NIR_TRUE);
+ nir_ssa_def *in_bounds = nir_imm_true(b);
for (unsigned i = 0; i < coord_comps; i++)
in_bounds = nir_iand(b, in_bounds, nir_channel(b, cmp, i));