diff options
author | Dave Airlie <airlied@redhat.com> | 2009-11-25 10:33:17 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-11-25 10:35:37 +1000 |
commit | 3a460a14b9603159f10d89da27b559c36a184e27 (patch) | |
tree | cc53eaab10c9bf5f532bd77e9ac5650bb3f0422c /src/radeon.h | |
parent | 797a3f0c71c94477eec565ea2c95553c6f66d9fd (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.h')
-rw-r--r-- | src/radeon.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon.h b/src/radeon.h index 0dbaa52a..745ee8e5 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -703,12 +703,13 @@ struct radeon_accel_state { Bool vsync; drmBufPtr ib; - int vb_index; + int vb_offset; uint64_t vb_mc_addr; int vb_total; void *vb_ptr; uint32_t vb_size; struct radeon_bo *vb_bo; + uint32_t vb_start_op; // shader storage ExaOffscreenArea *shaders; |