From: Eric Anholt Date: Thu, 2 Nov 2017 00:22:17 +0000 (-0700) Subject: broadcom/vc5: Set the available VS outputs to match the FS inputs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=426c352336182557f6c845481a38638182faacdf;p=mesa.git broadcom/vc5: Set the available VS outputs to match the FS inputs. Fixes piglit glsl-es-3.00/minimum-maximums.txt. --- 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: