projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d65356
)
softpipe: fix loop limit for tex_cache[] array
author
Brian Paul
<brianp@vmware.com>
Tue, 7 Aug 2012 14:00:09 +0000
(08:00 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 7 Aug 2012 14:00:46 +0000
(08:00 -0600)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=53199
src/gallium/drivers/softpipe/sp_flush.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_flush.c
b/src/gallium/drivers/softpipe/sp_flush.c
index 9b8d492cde112ca03a07d83555604a6c40e77dba..28660850d294065f7f20b6e5515862d798d80fce 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_flush.c
+++ b/
src/gallium/drivers/softpipe/sp_flush.c
@@
-54,7
+54,7
@@
softpipe_flush( struct pipe_context *pipe,
if (flags & SP_FLUSH_TEXTURE_CACHE) {
unsigned sh;
- for (sh = 0; sh <
PIPE_SHADER_TYPES
; sh++) {
+ for (sh = 0; sh <
Elements(softpipe->tex_cache)
; sh++) {
for (i = 0; i < softpipe->num_sampler_views[sh]; i++) {
sp_flush_tex_tile_cache(softpipe->tex_cache[sh][i]);
}