[Mesa-dev] [PATCH 11/14] nouveau: replace Elements() with ARRAY_SIZE()
Brian Paul
brianp at vmware.com
Sat Feb 28 08:22:45 PST 2015
---
src/mesa/drivers/dri/nouveau/nouveau_screen.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
index 150dd8e..b9ae959 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_screen.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
@@ -64,16 +64,16 @@ nouveau_get_configs(void)
GLX_NONE, GLX_SWAP_UNDEFINED_OML
};
- for (i = 0; i < Elements(formats); i++) {
+ for (i = 0; i < ARRAY_SIZE(formats); i++) {
__DRIconfig **config;
config = driCreateConfigs(formats[i],
depth_bits, stencil_bits,
- Elements(depth_bits),
+ ARRAY_SIZE(depth_bits),
back_buffer_modes,
- Elements(back_buffer_modes),
+ ARRAY_SIZE(back_buffer_modes),
msaa_samples,
- Elements(msaa_samples),
+ ARRAY_SIZE(msaa_samples),
GL_TRUE);
assert(config);
--
1.9.1
More information about the mesa-dev
mailing list