summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon_exa_funcs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/radeon_exa_funcs.c b/src/radeon_exa_funcs.c
index 30d299f8..dc56c55a 100644
--- a/src/radeon_exa_funcs.c
+++ b/src/radeon_exa_funcs.c
@@ -522,11 +522,11 @@ RADEONDownloadFromScreenCS(PixmapPtr pSrc, int x, int y, int w,
uint32_t scratch_pitch = (w * bpp / 8 + 63) & ~63;
Bool r;
+ if (bpp < 8)
+ return FALSE;
+
driver_priv = exaGetPixmapDriverPrivate(pSrc);
- /* if we have more refs than just the BO then flush */
- if (driver_priv->bo->cref)
- radeon_cs_flush_indirect(pScrn);
- radeon_bo_wait(driver_priv->bo);
+
size = scratch_pitch * h;
scratch = radeon_bo_open(info->bufmgr, 0, size, 0, RADEON_GEM_DOMAIN_GTT, 0);
if (scratch == NULL) {