diff options
Diffstat (limited to 'src/radeon_macros.h')
-rw-r--r-- | src/radeon_macros.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/radeon_macros.h b/src/radeon_macros.h index ae8d9506..26d98250 100644 --- a/src/radeon_macros.h +++ b/src/radeon_macros.h @@ -196,5 +196,14 @@ do { \ OUT_ACCEL_REG((reg), (offset) + info->fbLocation + pScrn->fbOffset);} \ } while(0) +#define EMIT_COLORPITCH(reg, value, pPix) do { \ + if (info->cs) { \ + driver_priv = exaGetPixmapDriverPrivate(pPix); \ + OUT_ACCEL_REG((reg), value); \ + OUT_RELOC(driver_priv->bo, 0, RADEON_GEM_DOMAIN_VRAM); \ + } else { \ + OUT_ACCEL_REG((reg), value); \ + } \ +}while(0) #endif |