summaryrefslogtreecommitdiff
path: root/src/radeon_macros.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-07-15 12:07:01 +1000
committerDave Airlie <airlied@redhat.com>2009-07-15 12:07:42 +1000
commit95d431e8b260dd43cf6d93b90eecab1dc0ec7c26 (patch)
treef4b3282dea181385d6fe035745d07b39c5129400 /src/radeon_macros.h
parent8312763977b22e108b7d003cbf3256e0165e4439 (diff)
radeon: emit colorpitch relocs.
This causes relocs to be emitted for the colorpitch. Shouldn't have no effect on current kernels, but will keep DDX going on kms kernels when tiling lands Also contains a missing reloc space for r200
Diffstat (limited to 'src/radeon_macros.h')
-rw-r--r--src/radeon_macros.h9
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