diff options
author | Michel Daenzer <michel@daenzer.net> | 2006-05-01 17:49:41 +0000 |
---|---|---|
committer | Michel Daenzer <michel@daenzer.net> | 2006-05-01 17:49:41 +0000 |
commit | 36c04b88416905b9ae305583e8e34fefdbfafc50 (patch) | |
tree | d2dde51e15d9aed0320c37ff608ef4edf869a3ac /src/radeon.h | |
parent | b90d3710e67caad0686efab491c2b76ae877920c (diff) |
Bugzilla #6755 <https://bugs.freedesktop.org/show_bug.cgi?id=6755> Patch
#5536 <https://bugs.freedesktop.org/attachment.cgi?id=5536>:
Change HostDataBlit interface to take dst_offset_pitch and coordinates
instead of just a destination pointer, as the latter is not sufficient
with tiling. Also, use HW clipping to avoid overwriting destination
data outside of the specified width.
Adapt to new HostDataBlit interface. This fixes corruption with
UploadToScreen to the front buffer (from exaPutImage).
Diffstat (limited to 'src/radeon.h')
-rw-r--r-- | src/radeon.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/radeon.h b/src/radeon.h index 29ee2a59..1af9f53c 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -799,9 +799,12 @@ extern void RADEONCPFlushIndirect(ScrnInfoPtr pScrn, int discard); extern void RADEONCPReleaseIndirect(ScrnInfoPtr pScrn); extern int RADEONCPStop(ScrnInfoPtr pScrn, RADEONInfoPtr info); -extern CARD8* RADEONHostDataBlit(ScrnInfoPtr pScrn, unsigned int bpp, - unsigned int w, CARD32 dstPitch, - CARD32 *bufPitch, CARD8 **dst, +extern void RADEONHostDataParams(ScrnInfoPtr pScrn, CARD8 *dst, + CARD32 pitch, int cpp, + CARD32 *dstPitchOffset, int *x, int *y); +extern CARD8* RADEONHostDataBlit(ScrnInfoPtr pScrn, unsigned int cpp, + unsigned int w, CARD32 dstPitchOff, + CARD32 *bufPitch, int x, int *y, unsigned int *h, unsigned int *hpass); extern void RADEONHostDataBlitCopyPass(ScrnInfoPtr pScrn, unsigned int bpp, |