summaryrefslogtreecommitdiff
path: root/src/r600_state.h
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-03-23 13:34:38 -0400
committerAlex Deucher <alexdeucher@gmail.com>2010-03-23 13:34:38 -0400
commit53ac06161eb2b8cffb1b88e24a9a21cfd12e5883 (patch)
tree9db9622e50bb6f39f005f6980079f0a1c85cd8a6 /src/r600_state.h
parent7a044472dfea7cf05ba4c2b87be30e94e2ae0b62 (diff)
r6xx+ EXA/Xv: add a R600SetAccelState function
This moves CS bo checking and alignment checks into a central location. It also cleans up the code.
Diffstat (limited to 'src/r600_state.h')
-rw-r--r--src/r600_state.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/r600_state.h b/src/r600_state.h
index 1f2fbaac..837e2f5e 100644
--- a/src/r600_state.h
+++ b/src/r600_state.h
@@ -328,6 +328,20 @@ int
r600_cp_start(ScrnInfoPtr pScrn);
void r600_finish_op(ScrnInfoPtr pScrn, int vtx_size);
+Bool
+R600SetAccelState(ScrnInfoPtr pScrn,
+ int src_pitch0, int src_width0, int src_height0,
+ uint32_t src_offset0, struct radeon_bo *src_bo0, int src_bpp0,
+ uint32_t src_domain0,
+ int src_pitch1, int src_width1, int src_height1,
+ uint32_t src_offset1, struct radeon_bo *src_bo1, int src_bpp1,
+ uint32_t src_domain1,
+ int dst_pitch, int dst_width, int dst_height,
+ uint32_t dst_offset, struct radeon_bo *dst_bo, int dst_bpp,
+ uint32_t dst_domain,
+ uint32_t vs_offset, uint32_t ps_offset,
+ int rop, Pixel planemask);
+
extern Bool RADEONPrepareAccess_CS(PixmapPtr pPix, int index);
extern void RADEONFinishAccess_CS(PixmapPtr pPix, int index);
extern void *RADEONEXACreatePixmap(ScreenPtr pScreen, int size, int align);