Lines Matching defs:scratch
470 struct radeon_bo *scratch = NULL;
504 /* If we know the BO won't be busy, don't bother with a scratch */
516 scratch = radeon_bo_open(info->bufmgr, 0, size, 0, RADEON_GEM_DOMAIN_GTT, 0);
517 if (scratch == NULL) {
522 radeon_cs_space_add_persistent_bo(info->cs, scratch, RADEON_GEM_DOMAIN_GTT, 0);
527 copy_dst = scratch;
551 if (copy_dst == scratch) {
556 RADEONBlitChunk(pScrn, scratch, driver_priv->bo, datatype, scratch_pitch << 16,
562 if (scratch)
563 radeon_bo_unref(scratch);
573 struct radeon_bo *scratch = NULL;
605 /* If we know the BO won't end up in VRAM anyway, don't bother with a scratch */
625 scratch = radeon_bo_open(info->bufmgr, 0, size, 0, RADEON_GEM_DOMAIN_GTT, 0);
626 if (scratch == NULL) {
631 radeon_cs_space_add_persistent_bo(info->cs, scratch, 0, RADEON_GEM_DOMAIN_GTT);
640 RADEONBlitChunk(pScrn, driver_priv->bo, scratch, datatype, src_pitch_offset,
644 copy_src = scratch;
671 if (scratch)
672 radeon_bo_unref(scratch);
685 drmBufPtr scratch;
690 * Try to accelerate download. Use an indirect buffer as scratch space,
696 (scratch = RADEONCPGetBuffer(pScrn)))
699 int hpass = min(h, scratch->total/2 / scratch_pitch);
702 + scratch->idx * scratch->total) >> 10;
727 src = (uint8_t*)scratch->address + scratch_off;
731 hpass = min(h, scratch->total/2 / scratch_pitch);
735 scratch_off = scratch->total/2 - scratch_off;
770 indirect.idx = scratch->idx;