aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-28 09:05:40 -0700
committerBrian Paul <[email protected]>2015-03-02 08:55:30 -0700
commitea760c20902b92f83e324e2dd601d5f8e254ae74 (patch)
treef525a60fd0bcfcfe5be0b9d4e682e26c0728f37c /src/mesa/drivers
parent49a7f8c919d23fec977116f218780a35896cc1dd (diff)
nouveau: replace Elements() with ARRAY_SIZE()
Acked-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_screen.c8
1 files 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 150dd8e9209..b9ae9590815 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);