aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3dx_draw.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-06-08 08:31:58 -0700
committerEric Anholt <[email protected]>2018-06-14 16:52:25 -0700
commit31548187cf761e27035f36e376da33c338458b2d (patch)
tree26868ace47c916b70fa3659436f08b8321a2d861 /src/gallium/drivers/v3d/v3dx_draw.c
parent0eef4d7f8fd2fc4d1a0dc0d1a583cbccbd9349d6 (diff)
v3d: Add static asserts for other packed packet sizes.
Diffstat (limited to 'src/gallium/drivers/v3d/v3dx_draw.c')
-rw-r--r--src/gallium/drivers/v3d/v3dx_draw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3dx_draw.c b/src/gallium/drivers/v3d/v3dx_draw.c
index 4d872b30ec3..c89ebda2aad 100644
--- a/src/gallium/drivers/v3d/v3dx_draw.c
+++ b/src/gallium/drivers/v3d/v3dx_draw.c
@@ -278,6 +278,7 @@ v3d_emit_gl_shader_state(struct v3d_context *v3d,
attr.maximum_index = 0xffffff;
#endif
}
+ STATIC_ASSERT(sizeof(vtx->attrs) >= VC5_MAX_ATTRIBUTES * size);
}
if (vtx->num_elements == 0) {