Lines Matching defs:scratch
375 struct radeon_bo *scratch = NULL;
409 /* If we know the BO won't be busy / in VRAM, don't bother with a scratch */
425 scratch = radeon_bo_open(info->bufmgr, 0, size, 0, RADEON_GEM_DOMAIN_GTT, 0);
426 if (!scratch) {
431 radeon_cs_space_add_persistent_bo(info->cs, scratch, RADEON_GEM_DOMAIN_GTT, 0);
436 copy_dst = scratch;
460 if (copy_dst == scratch) {
464 RADEONBlitChunk(pScrn, scratch, driver_priv->bo->bo.radeon, datatype, scratch_pitch << 16,
470 if (scratch)
471 radeon_bo_unref(scratch);
481 struct radeon_bo *scratch = NULL;
513 /* If we know the BO won't end up in VRAM anyway, don't bother with a scratch */
533 scratch = radeon_bo_open(info->bufmgr, 0, size, 0, RADEON_GEM_DOMAIN_GTT, 0);
534 if (!scratch) {
539 radeon_cs_space_add_persistent_bo(info->cs, scratch, 0, RADEON_GEM_DOMAIN_GTT);
547 RADEONBlitChunk(pScrn, driver_priv->bo->bo.radeon, scratch, datatype,
551 copy_src = scratch;
578 if (scratch)
579 radeon_bo_unref(scratch);