mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
softpipe: fix loop limit for tex_cache[] array
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=53199
This commit is contained in:
parent
7d65356d8a
commit
99695f58fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue