diff options
author | Eric Anholt <[email protected]> | 2019-01-18 15:36:15 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-01-27 08:30:03 -0800 |
commit | 3e743d8cd86c09f68d840604c9df52e0499af64f (patch) | |
tree | ec11fa44b3d524ef06137c775b3dbf7868326504 /src/gallium/drivers/v3d/v3dx_draw.c | |
parent | fe6a21c8671b7b3deea281cb0b9617f3ce7fc5c5 (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/v3dx_draw.c')
-rw-r--r-- | src/gallium/drivers/v3d/v3dx_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3dx_draw.c b/src/gallium/drivers/v3d/v3dx_draw.c index 5ad4710876f..2700208e388 100644 --- a/src/gallium/drivers/v3d/v3dx_draw.c +++ b/src/gallium/drivers/v3d/v3dx_draw.c @@ -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) { |