aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_state_constants.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-04-25 09:34:40 -0600
committerBrian Paul <[email protected]>2016-04-25 12:59:29 -0600
commite0184b3995fa308c125ae8e090d2bbdffd495b5f (patch)
treef859ac4b8bd85d3b1fc7bc926d2b7f11d87a8402 /src/gallium/drivers/svga/svga_state_constants.c
parent77e4b41671ecd7bde3a151627d4548106fc5be3c (diff)
svga: s/Elements/ARRAY_SIZE/
Standardize on the later macro rather than a mix of both. Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_state_constants.c')
-rw-r--r--src/gallium/drivers/svga/svga_state_constants.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_state_constants.c b/src/gallium/drivers/svga/svga_state_constants.c
index 5ae0382cd45..51f393f9b0c 100644
--- a/src/gallium/drivers/svga/svga_state_constants.c
+++ b/src/gallium/drivers/svga/svga_state_constants.c
@@ -518,7 +518,7 @@ emit_consts_vgpu9(struct svga_context *svga, unsigned shader)
assert(variant);
offset = variant->shader->info.file_max[TGSI_FILE_CONSTANT] + 1;
- assert(count <= Elements(extras));
+ assert(count <= ARRAY_SIZE(extras));
if (count > 0) {
if (ss->hw_version >= SVGA3D_HWVERSION_WS8_B1) {