summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_context.cpp
diff options
context:
space:
mode:
authorTim Rowley <timothy.o.rowley@intel.com>2016-04-27 10:12:44 -0500
committerTim Rowley <timothy.o.rowley@intel.com>2016-04-27 11:07:34 -0500
commit504df3a1d791d071259d23b4a99b9b46b1f601af (patch)
treef142490436f2a79f13947ab3c85d209320c590e9 /src/gallium/drivers/swr/swr_context.cpp
parent836cab51c8a5355a01a8ebedf99c55ff7c75e6e8 (diff)
downloadexternal_mesa3d-504df3a1d791d071259d23b4a99b9b46b1f601af.zip
external_mesa3d-504df3a1d791d071259d23b4a99b9b46b1f601af.tar.gz
external_mesa3d-504df3a1d791d071259d23b4a99b9b46b1f601af.tar.bz2
swr: s/Elements/ARRAY_SIZE/
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
Diffstat (limited to 'src/gallium/drivers/swr/swr_context.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/swr_context.cpp b/src/gallium/drivers/swr/swr_context.cpp
index 5d311dd..3a5d9e0 100644
--- a/src/gallium/drivers/swr/swr_context.cpp
+++ b/src/gallium/drivers/swr/swr_context.cpp
@@ -307,11 +307,11 @@ swr_destroy(struct pipe_context *pipe)
pipe_surface_reference(&ctx->framebuffer.zsbuf, NULL);
- for (unsigned i = 0; i < Elements(ctx->sampler_views[0]); i++) {
+ for (unsigned i = 0; i < ARRAY_SIZE(ctx->sampler_views[0]); i++) {
pipe_sampler_view_reference(&ctx->sampler_views[PIPE_SHADER_FRAGMENT][i], NULL);
}
- for (unsigned i = 0; i < Elements(ctx->sampler_views[0]); i++) {
+ for (unsigned i = 0; i < ARRAY_SIZE(ctx->sampler_views[0]); i++) {
pipe_sampler_view_reference(&ctx->sampler_views[PIPE_SHADER_VERTEX][i], NULL);
}