agx: Don't allow uniform source to local_atomic
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 12 Mar 2023 03:07:18 +0000 (22:07 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Apr 2023 03:23:03 +0000 (03:23 +0000)
Fixes KHR-GLES31.core.compute_shader.atomic-case3

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22353>

src/asahi/compiler/agx_lower_uniform_sources.c

index 15bfac8..69284f6 100644 (file)
@@ -40,6 +40,7 @@ should_lower(enum agx_opcode op, agx_index uniform, unsigned src_index)
    case AGX_OPCODE_BLOCK_IMAGE_STORE:
    case AGX_OPCODE_UNIFORM_STORE:
    case AGX_OPCODE_ST_VARY:
+   case AGX_OPCODE_LOCAL_ATOMIC:
       return true;
    default:
       return false;