summaryrefslogtreecommitdiff
path: root/src/radeon_exa_render.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2009-10-04 18:18:51 +1000
committerDave Airlie <airlied@linux.ie>2009-10-04 18:18:51 +1000
commit8404c37b2ff95aba31db97676f106ec2f30fda7f (patch)
treee734d323e6944cdca5d45efc25124a75d5269fc5 /src/radeon_exa_render.c
parent9460ea864b12ec1fbd11c5d9a20bb5a4279d9d3d (diff)
radeon: fix build without kms
Diffstat (limited to 'src/radeon_exa_render.c')
-rw-r--r--src/radeon_exa_render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c
index 7bc8ef0b..6753f005 100644
--- a/src/radeon_exa_render.c
+++ b/src/radeon_exa_render.c
@@ -2237,9 +2237,11 @@ static void FUNC_NAME(RadeonCompositeTile)(ScrnInfoPtr pScrn,
if (!info->accel_state->draw_header) {
BEGIN_RING(2);
+#ifdef XF86DRM_MODE
if (info->cs)
info->accel_state->draw_header = info->cs->packets + info->cs->cdw;
else
+#endif
info->accel_state->draw_header = __head;
info->accel_state->num_vtx = 0;
info->accel_state->vtx_count = vtx_count;