From 78614653a69e69bbd92d1de25cc6ee0a15c4d256 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 1 Jan 2024 09:42:11 -0400 Subject: [PATCH] asahi: bump vertex shader outputs KHR-Single-GL46.enhanced_layouts.xfb_explicit_location Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 878c7501128..bc5daef0908 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -1835,8 +1835,12 @@ agx_get_shader_param(struct pipe_screen *pscreen, enum pipe_shader_type shader, return shader == PIPE_SHADER_VERTEX ? 16 : 32; case PIPE_SHADER_CAP_MAX_OUTPUTS: + /* For vertex, the spec min/max is 16. We need more to handle dmat3 + * correctly, though. The full 32 is undesirable since it would require + * shenanigans to handle. + */ return shader == PIPE_SHADER_FRAGMENT ? 8 - : shader == PIPE_SHADER_VERTEX ? 16 + : shader == PIPE_SHADER_VERTEX ? 24 : 32; case PIPE_SHADER_CAP_MAX_TEMPS: