summaryrefslogtreecommitdiff
path: root/src/panfrost/util
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2023-06-02 12:25:58 +0200
committerMarge Bot <emma+marge@anholt.net>2023-06-05 13:40:07 +0000
commit28b1c5bca165871e1eab8d6f3df852516a6236e0 (patch)
tree7e0c4bed668994e4fad2f6c052e72c1f1156a679 /src/panfrost/util
parent57260a836a1ffb4fc8b8e524a947a7302c7e0517 (diff)
nir: use nir_i{ne,eq}_imm helpers
We already have these, so let's use them more. Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23393>
Diffstat (limited to 'src/panfrost/util')
-rw-r--r--src/panfrost/util/pan_lower_helper_invocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/util/pan_lower_helper_invocation.c b/src/panfrost/util/pan_lower_helper_invocation.c
index 9e31414a262..71bb4a843b2 100644
--- a/src/panfrost/util/pan_lower_helper_invocation.c
+++ b/src/panfrost/util/pan_lower_helper_invocation.c
@@ -42,7 +42,7 @@ pan_lower_helper_invocation_instr(nir_builder *b, nir_instr *instr, void *data)
b->cursor = nir_before_instr(instr);
nir_ssa_def *mask = nir_load_sample_mask_in(b);
- nir_ssa_def *eq = nir_ieq(b, mask, nir_imm_int(b, 0));
+ nir_ssa_def *eq = nir_ieq_imm(b, mask, 0);
nir_ssa_def_rewrite_uses(&intr->dest.ssa, eq);
return true;