projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
674c390
)
i965g: use Elements in loops over arrays
author
Keith Whitwell
<keithw@vmware.com>
Thu, 5 Nov 2009 17:42:13 +0000
(17:42 +0000)
committer
Keith Whitwell
<keithw@vmware.com>
Thu, 5 Nov 2009 17:42:13 +0000
(17:42 +0000)
src/gallium/drivers/i965/brw_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i965/brw_context.c
b/src/gallium/drivers/i965/brw_context.c
index 2cee7a7a3cf9f3a6aac2f8a55f11307ba0fcaec2..8e1421e7386c23002bf72a5e871ebfc6043b34d4 100644
(file)
--- a/
src/gallium/drivers/i965/brw_context.c
+++ b/
src/gallium/drivers/i965/brw_context.c
@@
-85,12
+85,12
@@
static void brw_destroy_context( struct pipe_context *pipe )
bo_reference(&brw->sf.state_bo, NULL);
bo_reference(&brw->sf.vp_bo, NULL);
- for (i = 0; i <
BRW_MAX_TEX_UNIT
; i++)
+ for (i = 0; i <
Elements(brw->wm.sdc_bo)
; i++)
bo_reference(&brw->wm.sdc_bo[i], NULL);
bo_reference(&brw->wm.bind_bo, NULL);
- for (i = 0; i <
BRW_WM_MAX_SURF
; i++)
+ for (i = 0; i <
Elements(brw->wm.surf_bo)
; i++)
bo_reference(&brw->wm.surf_bo[i], NULL);
bo_reference(&brw->wm.sampler_bo, NULL);