From: Karol Herbst Date: Mon, 15 Jun 2020 16:30:12 +0000 (+0200) Subject: nir/lower_images: handle dec and inc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=feb83f2f822e71d27e00e7dcf5613b365dc5c552;p=mesa.git nir/lower_images: handle dec and inc Signed-off-by: Karol Herbst Reviewed-by: Gert Wollny Reviewed-by: Eric Anholt Part-of: --- 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)