Home | History | Annotate | Download | only in state_tracker

Lines Matching defs:strb

95 try_pbo_readpixels(struct st_context *st, struct st_renderbuffer *strb,
104 struct pipe_surface *surface = strb->surface;
105 struct pipe_resource *texture = strb->texture;
266 blit_to_staging(struct st_context *st, struct st_renderbuffer *strb,
304 blit.src.resource = strb->texture;
305 blit.src.level = strb->surface->u.tex.level;
314 blit.src.box.z = strb->surface->u.tex.first_layer;
319 blit.mask = st_get_blit_mask(strb->Base._BaseFormat, format);
324 blit.src.box.y = strb->Base.Height - blit.src.box.y;
335 try_cached_readpixels(struct st_context *st, struct st_renderbuffer *strb,
341 struct pipe_resource *src = strb->texture;
350 st->readpix_cache.level != strb->surface->u.tex.level ||
351 st->readpix_cache.layer != strb->surface->u.tex.first_layer) {
355 st->readpix_cache.level = strb->surface->u.tex.level;
356 st->readpix_cache.layer = strb->surface->u.tex.first_layer;
362 if (!strb->use_readpix_cache && !ALWAYS_READPIXELS_CACHE) {
366 unsigned threshold = MAX2(1, strb->Base.Width * strb->Base.Height / 8);
373 strb->use_readpix_cache = true;
377 st->readpix_cache.cache = blit_to_staging(st, strb, invert_y,
379 strb->Base.Width,
380 strb->Base.Height, format,
412 struct st_renderbuffer *strb = st_renderbuffer(rb);
433 src = strb->texture;
479 if (try_pbo_readpixels(st, strb,
494 dst = try_cached_readpixels(st, strb,
509 dst = blit_to_staging(st, strb,