From 13b3aed4ef9afbcbaea1dcf0ed1acb162b240a3f Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Tue, 10 Jan 2012 09:35:09 -0500 Subject: EXA/r6xx+: fix rop setting for overlapping copies Need to use GXCopy for the src to temp copy, then the original rop for the temp to dest copy. Noticed by: Frank Huang Signed-off-by: Alex Deucher --- src/evergreen_exa.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/evergreen_exa.c') diff --git a/src/evergreen_exa.c b/src/evergreen_exa.c index 603d8546..f17e5a69 100644 --- a/src/evergreen_exa.c +++ b/src/evergreen_exa.c @@ -575,12 +575,14 @@ EVERGREENCopy(PixmapPtr pDst, uint32_t orig_src_tiling_flags = accel_state->src_obj[0].tiling_flags; uint32_t orig_dst_tiling_flags = accel_state->dst_obj.tiling_flags; struct radeon_bo *orig_bo = accel_state->dst_obj.bo; + int orig_rop = accel_state->rop; /* src to tmp */ accel_state->dst_obj.domain = RADEON_GEM_DOMAIN_VRAM; accel_state->dst_obj.bo = accel_state->copy_area_bo; accel_state->dst_obj.offset = 0; accel_state->dst_obj.tiling_flags = 0; + accel_state->rop = 3; EVERGREENDoPrepareCopy(pScrn); EVERGREENAppendCopyVertex(pScrn, srcX, srcY, dstX, dstY, w, h); EVERGREENDoCopy(pScrn); @@ -594,6 +596,7 @@ EVERGREENCopy(PixmapPtr pDst, accel_state->dst_obj.bo = orig_bo; accel_state->dst_obj.offset = 0; accel_state->dst_obj.tiling_flags = orig_dst_tiling_flags; + accel_state->rop = orig_rop; EVERGREENDoPrepareCopy(pScrn); EVERGREENAppendCopyVertex(pScrn, dstX, dstY, dstX, dstY, w, h); EVERGREENDoCopyVline(pDst); -- cgit v1.2.3