v3d: Use our #define for max attributes in shader caps.
authorEric Anholt <eric@anholt.net>
Fri, 8 Jun 2018 15:00:31 +0000 (08:00 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 14 Jun 2018 23:52:25 +0000 (16:52 -0700)
src/gallium/drivers/v3d/v3d_screen.c

index d578265eef0c5db4c2739974abfa88925c8e4b27..80b8156a73e8aef436463222fa016af7d44d2daf 100644 (file)
@@ -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;