Lines Matching refs:slots
306 static void init_sampler_views(struct context *ctx, const int *slots) in init_sampler_views() argument
312 for (i = 0; *slots >= 0; ++i, ++slots) { in init_sampler_views()
313 u_sampler_view_default_template(&tview, ctx->tex[*slots], in init_sampler_views()
314 ctx->tex[*slots]->format); in init_sampler_views()
316 ctx->view[i] = pipe->create_sampler_view(pipe, ctx->tex[*slots], in init_sampler_views()
339 static void init_compute_resources(struct context *ctx, const int *slots) in init_compute_resources() argument
344 for (i = 0; *slots >= 0; ++i, ++slots) { in init_compute_resources()
346 .format = ctx->tex[*slots]->format, in init_compute_resources()
347 .usage = ctx->tex[*slots]->bind, in init_compute_resources()
348 .writable = ctx->tex_rw[*slots] in init_compute_resources()
351 if (ctx->tex[*slots]->target == PIPE_BUFFER) in init_compute_resources()
352 tsurf.u.buf.last_element = ctx->tex[*slots]->width0 - 1; in init_compute_resources()
354 ctx->surf[i] = pipe->create_surface(pipe, ctx->tex[*slots], in init_compute_resources()
408 static void init_globals(struct context *ctx, const int *slots, in init_globals() argument
415 for (i = 0; *slots >= 0; ++i, ++slots) in init_globals()
416 res[i] = ctx->tex[*slots]; in init_globals()