projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49a7f8c
)
nouveau: replace Elements() with ARRAY_SIZE()
author
Brian Paul
<brianp@vmware.com>
Sat, 28 Feb 2015 16:05:40 +0000
(09:05 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 2 Mar 2015 15:55:30 +0000
(08:55 -0700)
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/drivers/dri/nouveau/nouveau_screen.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/nouveau/nouveau_screen.c
b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
index 150dd8e9209a96a06cf8a161e8f3c0b32aec75e1..b9ae95908156120e6588db4655d154990de11de5 100644
(file)
--- 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);