summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-11-25 10:33:17 +1000
committerDave Airlie <airlied@redhat.com>2009-11-25 10:35:37 +1000
commit3a460a14b9603159f10d89da27b559c36a184e27 (patch)
treecc53eaab10c9bf5f532bd77e9ac5650bb3f0422c /src/radeon_kms.c
parent797a3f0c71c94477eec565ea2c95553c6f66d9fd (diff)
r600: refactor code to help future acceleration speedups.
This changes the vertex buffer index to be an offset, and records the start of the vb for each operation and uses that to set the operations up. This still flushes after each operation to make sure we have no regressions in non-kms/kms cases. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index cafc3298..b9228c11 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -80,8 +80,10 @@ void radeon_cs_flush_indirect(ScrnInfoPtr pScrn)
return;
if (info->accel_state->vb_ptr) {
- radeon_bo_unmap(info->accel_state->vb_bo);
- info->accel_state->vb_ptr = NULL;
+ radeon_bo_unmap(info->accel_state->vb_bo);
+ info->accel_state->vb_ptr = NULL;
+ info->accel_state->vb_start_op = 0;
+ info->accel_state->vb_offset = 0;
}
radeon_cs_emit(info->cs);