v3d: Avoid duplicating limits defines between gallium and v3d core.
[mesa.git] / src / gallium / drivers / v3d / v3dx_draw.c
index 5ad4710876f9e1a3b6a4857be94fa48892d2a1da..2700208e3885f8c38317a8a0b7994373b2c72685 100644 (file)
@@ -317,7 +317,7 @@ v3d_emit_gl_shader_state(struct v3d_context *v3d,
                         attr.maximum_index = 0xffffff;
 #endif
                 }
-                STATIC_ASSERT(sizeof(vtx->attrs) >= V3D_MAX_ATTRIBUTES * size);
+                STATIC_ASSERT(sizeof(vtx->attrs) >= V3D_MAX_VS_INPUTS / 4 * size);
         }
 
         if (vtx->num_elements == 0) {