summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-04-01 11:24:32 +1000
committerDave Airlie <airlied@redhat.com>2010-04-01 12:37:04 +1000
commit6baa96c44ca93b88acf5233335cee233e59d5af4 (patch)
tree82f70b98f90e272ca9231879f30e9f6eb4a8528b /src/radeon.h
parent87f49a24019967552c5478d6af89ba438b4261c8 (diff)
r600/exa: further cleanup, use the object struct in the accel state.
This cleans up the accel state objects as well. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/radeon.h b/src/radeon.h
index 9cf21a9f..88f1516b 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -673,6 +673,16 @@ struct radeon_dma_bo {
int expire_counter;
};
+struct r600_accel_object {
+ uint32_t pitch;
+ uint32_t width;
+ uint32_t height;
+ uint32_t offset;
+ int bpp;
+ uint32_t domain;
+ struct radeon_bo *bo;
+};
+
struct radeon_accel_state {
/* common accel data */
int fifo_slots; /* Free slots in the FIFO (64 max) */
@@ -755,22 +765,11 @@ struct radeon_accel_state {
uint32_t xv_ps_offset;
//size/addr stuff
- struct radeon_bo *src_bo[2];
+ struct r600_accel_object src_obj[2];
+ struct r600_accel_object dst_obj;
uint32_t src_size[2];
- uint64_t src_mc_addr[2];
- uint32_t src_pitch[2];
- uint32_t src_width[2];
- uint32_t src_height[2];
- uint32_t src_bpp[2];
- uint32_t src_domain[2];
- struct radeon_bo *dst_bo;
uint32_t dst_size;
- uint64_t dst_mc_addr;
- uint32_t dst_pitch;
- uint32_t dst_width;
- uint32_t dst_height;
- uint32_t dst_bpp;
- uint32_t dst_domain;
+
uint32_t vs_size;
uint64_t vs_mc_addr;
uint32_t ps_size;