summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_screen.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-01-18 15:36:15 -0800
committerEric Anholt <[email protected]>2019-01-27 08:30:03 -0800
commit3e743d8cd86c09f68d840604c9df52e0499af64f (patch)
treeec11fa44b3d524ef06137c775b3dbf7868326504 /src/gallium/drivers/v3d/v3d_screen.c
parentfe6a21c8671b7b3deea281cb0b9617f3ce7fc5c5 (diff)
v3d: Avoid duplicating limits defines between gallium and v3d core.
We don't want to pull the compiler into every include in the gallium driver, so just make a new little header to store the limits.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_screen.c')
-rw-r--r--src/gallium/drivers/v3d/v3d_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c
index 81392c9ff83..bed2c63a64d 100644
--- a/src/gallium/drivers/v3d/v3d_screen.c
+++ b/src/gallium/drivers/v3d/v3d_screen.c
@@ -262,7 +262,7 @@ v3d_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
if (shader == PIPE_SHADER_FRAGMENT)
return V3D_MAX_FS_INPUTS / 4;
else
- return V3D_MAX_ATTRIBUTES;
+ return V3D_MAX_VS_INPUTS / 4;
case PIPE_SHADER_CAP_MAX_OUTPUTS:
if (shader == PIPE_SHADER_FRAGMENT)
return 4;