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