Lines Matching refs:sh
92 uint i, sh; in softpipe_destroy() local
125 for (sh = 0; sh < Elements(softpipe->tex_cache); sh++) { in softpipe_destroy()
127 sp_destroy_tex_tile_cache(softpipe->tex_cache[sh][i]); in softpipe_destroy()
128 pipe_sampler_view_reference(&softpipe->sampler_views[sh][i], NULL); in softpipe_destroy()
132 for (sh = 0; sh < Elements(softpipe->constants); sh++) { in softpipe_destroy()
134 if (softpipe->constants[sh][i]) { in softpipe_destroy()
135 pipe_resource_reference(&softpipe->constants[sh][i], NULL); in softpipe_destroy()
164 unsigned i, sh; in softpipe_is_resource_referenced() local
184 for (sh = 0; sh < Elements(softpipe->tex_cache); sh++) { in softpipe_is_resource_referenced()
186 if (softpipe->tex_cache[sh][i] && in softpipe_is_resource_referenced()
187 softpipe->tex_cache[sh][i]->texture == texture) in softpipe_is_resource_referenced()
217 uint i, sh; in softpipe_create_context() local
260 for (sh = 0; sh < Elements(softpipe->tex_cache); sh++) { in softpipe_create_context()
262 softpipe->tex_cache[sh][i] = sp_create_tex_tile_cache(&softpipe->pipe); in softpipe_create_context()
263 if (!softpipe->tex_cache[sh][i]) in softpipe_create_context()