From 4564537222f7d4624327440aa6f56e289183d3b8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 8 Jun 2018 08:00:31 -0700 Subject: [PATCH] v3d: Use our #define for max attributes in shader caps. --- src/gallium/drivers/v3d/v3d_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index d578265eef0..80b8156a73e 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -376,7 +376,7 @@ v3d_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader, if (shader == PIPE_SHADER_FRAGMENT) return VC5_MAX_FS_INPUTS / 4; else - return 16; + return VC5_MAX_ATTRIBUTES; case PIPE_SHADER_CAP_MAX_OUTPUTS: if (shader == PIPE_SHADER_FRAGMENT) return 4; -- 2.30.2