diff options
-rw-r--r-- | src/gallium/drivers/vc5/vc5_screen.c | 5 |
1 files changed, 4 insertions, 1 deletions
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: |