From 8348c9c84d7d9fcf4d499b5df92e7538955c1755 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 28 Dec 2022 17:59:07 +0100 Subject: [PATCH] r600: enable ARB_gl_spirv 76 out of 86 piglits pass. Some fail because SSBOs are only supported for FS and CS on r600, but the piglits try to use SSBOs with VS, and there are piglits that try to bind SSBO at 8, and only 0-7 is supported as binding point. Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/r600_pipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index bd76162..ce77d77 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -313,9 +313,10 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_CAN_BIND_CONST_BUFFER_AS_VERTEX: case PIPE_CAP_ALLOW_MAPPED_BUFFERS_DURING_EXECUTION: case PIPE_CAP_ROBUST_BUFFER_ACCESS_BEHAVIOR: - return 1; + return 1; - case PIPE_CAP_NIR_ATOMICS_AS_DEREF: + case PIPE_CAP_NIR_ATOMICS_AS_DEREF: + case PIPE_CAP_GL_SPIRV: return is_nir_enabled(&rscreen->b); case PIPE_CAP_TEXTURE_TRANSFER_MODES: -- 2.7.4