Module: Mesa
Branch: master
Commit: 21422b1ff204bbeac9951f0f146151e5dbf09b06
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=21422b1ff204bbeac9951f0f146151e5dbf09b06

Author: Rhys Perry <[email protected]>
Date:   Tue Oct 13 19:18:52 2020 +0100

nir/opt_uniform_atomics: remove useless returns

Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7117>

---

 src/compiler/nir/nir_opt_uniform_atomics.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/compiler/nir/nir_opt_uniform_atomics.c 
b/src/compiler/nir/nir_opt_uniform_atomics.c
index 96b3eddb057..26ca78c8b89 100644
--- a/src/compiler/nir/nir_opt_uniform_atomics.c
+++ b/src/compiler/nir/nir_opt_uniform_atomics.c
@@ -53,8 +53,6 @@ parse_atomic_op(nir_intrinsic_op op, unsigned *offset_src, 
unsigned *data_src)
    case nir_intrinsic_deref_atomic_##intrin: \
       *offset_src = 0; \
       *data_src = 1; \
-      return nir_op_##alu; \
-      return nir_op_##alu; \
       return nir_op_##alu;
    #define OP(intrin, alu) \
    OP_NOIMG(intrin, alu) \

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to