From 426c352336182557f6c845481a38638182faacdf Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 1 Nov 2017 17:22:17 -0700 Subject: [PATCH] broadcom/vc5: Set the available VS outputs to match the FS inputs. Fixes piglit glsl-es-3.00/minimum-maximums.txt. --- src/gallium/drivers/vc5/vc5_screen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/vc5/vc5_screen.c b/src/gallium/drivers/vc5/vc5_screen.c index 031e982b0aa..6e3a342ce3f 100644 --- a/src/gallium/drivers/vc5/vc5_screen.c +++ b/src/gallium/drivers/vc5/vc5_screen.c @@ -358,7 +358,10 @@ vc5_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader, else return 16; case PIPE_SHADER_CAP_MAX_OUTPUTS: - return shader == PIPE_SHADER_FRAGMENT ? 4 : 8; + if (shader == PIPE_SHADER_FRAGMENT) + return 4; + else + return VC5_MAX_FS_INPUTS / 4; case PIPE_SHADER_CAP_MAX_TEMPS: return 256; /* GL_MAX_PROGRAM_TEMPORARIES_ARB */ case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE: -- 2.30.2