aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2020-06-15 18:30:12 +0200
committerMarge Bot <[email protected]>2020-06-18 15:15:17 +0000
commitfeb83f2f822e71d27e00e7dcf5613b365dc5c552 (patch)
tree3e3122280e7973fc777c1318619b6b544364ea22 /src/compiler
parent43faa9ebb1c8a6063321065eb42723075a87902c (diff)
nir/lower_images: handle dec and inc
Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5480>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/gl_nir_lower_images.c2
-rw-r--r--src/compiler/nir/nir.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/glsl/gl_nir_lower_images.c b/src/compiler/glsl/gl_nir_lower_images.c
index 265206a012a..632af71f329 100644
--- a/src/compiler/glsl/gl_nir_lower_images.c
+++ b/src/compiler/glsl/gl_nir_lower_images.c
@@ -73,6 +73,8 @@ lower_impl(nir_builder *b, nir_instr *instr, bool bindless_only)
case nir_intrinsic_image_deref_atomic_exchange:
case nir_intrinsic_image_deref_atomic_comp_swap:
case nir_intrinsic_image_deref_atomic_fadd:
+ case nir_intrinsic_image_deref_atomic_inc_wrap:
+ case nir_intrinsic_image_deref_atomic_dec_wrap:
case nir_intrinsic_image_deref_load:
case nir_intrinsic_image_deref_samples:
case nir_intrinsic_image_deref_size:
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index b8c7f8c5eff..8d2e1098301 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
@@ -2258,6 +2258,8 @@ nir_rewrite_image_intrinsic(nir_intrinsic_instr *intrin, nir_ssa_def *src,
CASE(atomic_exchange)
CASE(atomic_comp_swap)
CASE(atomic_fadd)
+ CASE(atomic_inc_wrap)
+ CASE(atomic_dec_wrap)
CASE(size)
CASE(samples)
CASE(load_raw_intel)