softpipe: fix loop limit for tex_cache[] array

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=53199
This commit is contained in:
Brian Paul 2012-08-07 08:00:09 -06:00
parent 7d65356d8a
commit 99695f58fd

View file

@ -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]);
}