Home | History | Annotate | Download | only in trivial

Lines Matching refs:tex

51         struct pipe_resource *tex[MAX_RESOURCES];
179 struct pipe_resource **tex = &ctx->tex[slot];
201 *tex = ctx->screen->resource_create(ctx->screen, &ttex);
202 assert(*tex);
204 xfer = pipe->get_transfer(pipe, *tex, 0, PIPE_TRANSFER_WRITE,
234 struct pipe_resource *tex = ctx->tex[slot];
235 int dx = util_format_get_blocksize(tex->format);
236 int dy = util_format_get_stride(tex->format, tex->width0);
237 int nx = (tex->target == PIPE_BUFFER ? (tex->width0 / dx) :
238 util_format_get_nblocksx(tex->format, tex->width0));
239 int ny = (tex->target == PIPE_BUFFER ? 1 :
240 util_format_get_nblocksy(tex->format, tex->height0));
249 xfer = pipe->get_transfer(pipe, tex, 0, PIPE_TRANSFER_READ,
250 &(struct pipe_box) { .width = tex->width0,
251 .height = tex->height0,
301 if (ctx->tex[i])
302 pipe_resource_reference(&ctx->tex[i], NULL);
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],
346 .format = ctx->tex[*slots]->format,
347 .usage = ctx->tex[*slots]->bind,
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],
416 res[i] = ctx->tex[*slots];