Commit 79c2402ba26e57f4c9fd27f75f8a0324c72c13be
- Diff rendering mode:
- inline
- side by side
src/s3c64xx_xaa.c
(18 / 6)
|   | |||
| 308 | 308 | ||
| 309 | 309 | ||
| 310 | 310 | /* | |
| 311 | ** These need to be macros so that they can "borrow" the pS3CDEV | ||
| 311 | ** These need to be macros so that they can "borrow" the pXAA | ||
| 312 | 312 | ** from the client. Ugly, but it beats a file-global. | |
| 313 | 313 | */ | |
| 314 | 314 | #define read2d_l(reg) __raw_readl(pXAA->g2d + reg) | |
| … | … | ||
| 611 | 611 | } | |
| 612 | 612 | } | |
| 613 | 613 | ||
| 614 | /* | ||
| 615 | ** If it turns out that clipping is queued in the g2d fifo, enable | ||
| 616 | ** this, but for now, it appears that clipping is immedidate mode only | ||
| 617 | */ | ||
| 618 | #ifdef CLIPPING_IS_IN_FIFO | ||
| 614 | 619 | void s3cSetClippingRectangle ( ScrnInfoPtr pScrn, | |
| 615 | 620 | int left, int top, int right, int bottom) | |
| 616 | 621 | { | |
| … | … | ||
| 642 | 642 | ||
| 643 | 643 | } | |
| 644 | 644 | ||
| 645 | #endif | ||
| 646 | |||
| 645 | 647 | #ifdef IMAGE_WRITE_NOT_SLOW | |
| 646 | 648 | static void s3cSetupForScanlineImageWrite(ScrnInfoPtr pScrn, | |
| 647 | 649 | int rop, unsigned int planemask, int trans_color, | |
| … | … | ||
| 717 | 717 | __func__, pXAA->imageWriteCount-1, bufno, srcy); | |
| 718 | 718 | ||
| 719 | 719 | /* This is a bug in XAA. A new image starts at bufno 0 even if | |
| 720 | ** bufno 0 is still enqueued. By have n-bufs if they can be reused | ||
| 720 | ** bufno 0 is still enqueued. Why have n-bufs if they can be reused | ||
| 721 | 721 | ** prior to pipeline completion. Dumb, | |
| 722 | 722 | */ | |
| 723 | 723 | //if (bufno == IMAGE_WRITE_LINES - 1) /* don't use 0 again... */ | |
| … | … | ||
| 844 | 844 | infoPtr->SubsequentSolidTwoPointLine = s3cSubsequentSolidTwoPointLine; | |
| 845 | 845 | infoPtr->SolidLineFlags = 0; | |
| 846 | 846 | ||
| 847 | /* | ||
| 848 | ** If it turns out that clipping is queued in the g2d fifo, enable | ||
| 849 | ** this, but for now, it appears that clipping is immedidate mode only | ||
| 850 | */ | ||
| 851 | #ifdef CLIPPING_IS_IN_FIFO | ||
| 847 | 852 | /* setup clipping */ | |
| 848 | 853 | infoPtr->ClippingFlags = HARDWARE_CLIP_SCREEN_TO_SCREEN_COLOR_EXPAND| | |
| 849 | 854 | HARDWARE_CLIP_SCREEN_TO_SCREEN_COPY| | |
| 850 | HARDWARE_CLIP_SOLID_FILL; | ||
| 851 | |||
| 852 | /* HARDWARE_CLIP_SOLID_LINE g2d does not support line clipping (correctly) */ | ||
| 855 | HARDWARE_CLIP_SOLID_FILL| | ||
| 856 | HARDWARE_CLIP_SOLID_LINE; | ||
| 853 | 857 | ||
| 854 | // infoPtr->SetClippingRectangle = s3cSetClippingRectangle; | ||
| 858 | infoPtr->SetClippingRectangle = s3cSetClippingRectangle; | ||
| 855 | 859 | infoPtr->DisableClipping = s3cDisableClipping; | |
| 856 | 860 | ||
| 861 | #endif | ||
| 857 | 862 | #ifdef IMAGE_WRITE_NOT_SLOW | |
| 858 | 863 | /* setup for scanline image writes */ | |
| 859 | 864 | /* XAA makes some unaligned accesses when clipping is not available */ |

