diff options
author | Dave Airlie <airlied@redhat.com> | 2010-08-12 12:59:18 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-08-12 12:59:18 +1000 |
commit | fd686668289258ffaf6b81057545e50612aac6a8 (patch) | |
tree | 4417f0941e90838e28a9a16c22834cba5231688c /src/radeon_exa_shared.c | |
parent | 5a9865d90c23c4ce0f46d380ea9119eac87a99eb (diff) |
radeon: fixup non-kms build
Diffstat (limited to 'src/radeon_exa_shared.c')
-rw-r--r-- | src/radeon_exa_shared.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/radeon_exa_shared.c b/src/radeon_exa_shared.c index 94ebe355..d1926f4e 100644 --- a/src/radeon_exa_shared.c +++ b/src/radeon_exa_shared.c @@ -177,6 +177,7 @@ void radeon_vb_no_space(ScrnInfoPtr pScrn, int vert_size) RADEONInfoPtr info = RADEONPTR(pScrn); struct radeon_accel_state *accel_state = info->accel_state; +#if defined(XF86DRM_MODE) if (info->cs) { if (accel_state->vb_bo) { if (accel_state->vb_start_op != accel_state->vb_offset) { @@ -191,7 +192,7 @@ void radeon_vb_no_space(ScrnInfoPtr pScrn, int vert_size) radeon_vbo_get(pScrn); return; } - +#endif if (accel_state->vb_start_op != -1) { accel_state->finish_op(pScrn, vert_size); radeon_cp_start(pScrn); @@ -199,6 +200,7 @@ void radeon_vb_no_space(ScrnInfoPtr pScrn, int vert_size) return; } +#if defined(XF86DRM_MODE) void radeon_ib_discard(ScrnInfoPtr pScrn) { RADEONInfoPtr info = RADEONPTR(pScrn); @@ -232,3 +234,4 @@ void radeon_ib_discard(ScrnInfoPtr pScrn) } } +#endif |