Module: Mesa
Branch: main
Commit: 485eddcc8516965a00c22d448ab7e2763ad8ff7a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=485eddcc8516965a00c22d448ab7e2763ad8ff7a

Author: Alyssa Rosenzweig <[email protected]>
Date:   Sat Feb 18 16:21:41 2023 -0500

asahi: Bump shader buffers

No reason to limit it, it's direct access anyway.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21430>

---

 src/gallium/drivers/asahi/agx_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/asahi/agx_pipe.c 
b/src/gallium/drivers/asahi/agx_pipe.c
index e6ef7975df0..077c8d4cc51 100644
--- a/src/gallium/drivers/asahi/agx_pipe.c
+++ b/src/gallium/drivers/asahi/agx_pipe.c
@@ -1517,7 +1517,7 @@ agx_get_shader_param(struct pipe_screen *pscreen, enum 
pipe_shader_type shader,
       return (1 << PIPE_SHADER_IR_NIR);
 
    case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
-      return (is_deqp && allow_side_effects) ? 16 : 0;
+      return (is_deqp && allow_side_effects) ? PIPE_MAX_SHADER_BUFFERS : 0;
 
    case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
       return (is_deqp && allow_side_effects) ? PIPE_MAX_SHADER_IMAGES : 0;

Reply via email to