diff options
author | Brian Paul <[email protected]> | 2016-04-25 09:34:40 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-04-25 12:59:29 -0600 |
commit | e0184b3995fa308c125ae8e090d2bbdffd495b5f (patch) | |
tree | f859ac4b8bd85d3b1fc7bc926d2b7f11d87a8402 /src/gallium/drivers/svga/svga_screen.c | |
parent | 77e4b41671ecd7bde3a151627d4548106fc5be3c (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_screen.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 010d94b1b58..69e625f8c88 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -867,9 +867,9 @@ svga_get_driver_query_info(struct pipe_screen *screen, #undef QUERY if (!info) - return Elements(queries); + return ARRAY_SIZE(queries); - if (index >= Elements(queries)) + if (index >= ARRAY_SIZE(queries)) return 0; *info = queries[index]; |