Lines Matching refs:shadow
351 * @rsc: the resource to shadow
428 /* Swap the backing bo's, so shadow becomes the old buffer,
429 * blit from shadow to new buffer. From here on out, we
436 struct fd_resource *shadow = fd_resource(pshadow);
438 DBG("shadow: %p (%d, %p) -> %p (%d, %p)", rsc, rsc->b.b.reference.count,
439 rsc->track, shadow, shadow->b.b.reference.count, shadow->track);
441 swap(rsc->bo, shadow->bo);
442 swap(rsc->valid, shadow->valid);
445 bool temp = shadow->needs_ubwc_clear;
446 shadow->needs_ubwc_clear = rsc->needs_ubwc_clear;
449 swap(rsc->layout, shadow->layout);
452 /* at this point, the newly created shadow buffer is not referenced
456 assert(shadow->track->batch_mask == 0);
460 _mesa_set_add_pre_hashed(batch->resources, shadow->hash, shadow);
462 swap(rsc->track, shadow->track);
480 /* Disable occlusion queries during shadow blits. */
548 * blit, and swapping the state between shadow and original resource so it
560 /* shadow should not fail in any cases where we need to uncompress: */
840 * TODO we might sometimes want to *also* shadow the resource to avoid
862 /* if we need to flush/stall, see if we can make a shadow buffer
887 /* in this case, we don't need to shadow the whole resource,