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_shader.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_shader.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_shader.c b/src/gallium/drivers/svga/svga_shader.c index d56cce49de5..abfef0f1044 100644 --- a/src/gallium/drivers/svga/svga_shader.c +++ b/src/gallium/drivers/svga/svga_shader.c @@ -171,7 +171,7 @@ svga_init_shader_key_common(const struct svga_context *svga, unsigned shader, { unsigned i, idx = 0; - assert(shader < Elements(svga->curr.num_sampler_views)); + assert(shader < ARRAY_SIZE(svga->curr.num_sampler_views)); for (i = 0; i < svga->curr.num_sampler_views[shader]; i++) { struct pipe_sampler_view *view = svga->curr.sampler_views[shader][i]; |