From feb83f2f822e71d27e00e7dcf5613b365dc5c552 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 15 Jun 2020 18:30:12 +0200 Subject: [PATCH] nir/lower_images: handle dec and inc Signed-off-by: Karol Herbst Reviewed-by: Gert Wollny Reviewed-by: Eric Anholt Part-of: --- src/compiler/glsl/gl_nir_lower_images.c | 2 ++ src/compiler/nir/nir.c | 2 ++ 2 files changed, 4 insertions(+) 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) -- 2.30.2