projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f64191
)
rbug: s/Elements/ARRAY_SIZE/
author
Brian Paul
<brianp@vmware.com>
Thu, 28 Apr 2016 17:42:58 +0000
(11:42 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 3 May 2016 21:40:48 +0000
(15:40 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/rbug/rbug_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/rbug/rbug_context.c
b/src/gallium/drivers/rbug/rbug_context.c
index 38dee7434cb961a8aa39fe470401dd3171b20fd5..54564c1a4bebaf5c4afd216d40f7758b1e4be50e 100644
(file)
--- a/
src/gallium/drivers/rbug/rbug_context.c
+++ b/
src/gallium/drivers/rbug/rbug_context.c
@@
-87,7
+87,7
@@
rbug_draw_block_locked(struct rbug_context *rb_pipe, int flag)
if (rb_pipe->draw_rule.surf == rb_pipe->curr.cbufs[k])
block = TRUE;
if (rb_pipe->draw_rule.texture) {
- for (sh = 0; sh <
Elements
(rb_pipe->curr.num_views); sh++) {
+ for (sh = 0; sh <
ARRAY_SIZE
(rb_pipe->curr.num_views); sh++) {
for (k = 0; k < rb_pipe->curr.num_views[sh]; k++) {
if (rb_pipe->draw_rule.texture == rb_pipe->curr.texs[sh][k]) {
block = TRUE;