summaryrefslogtreecommitdiff
path: root/src/smi_xaa.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-04 15:57:12 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-04 15:57:12 -0200
commit1d7b9547e1d37601f14410857c22f256e5c74f14 (patch)
tree435e5494c22952c20843eb6282ccf0f67df18fc3 /src/smi_xaa.c
parent93308d067c93126dd0aba9b718d9e0ba28dde9f4 (diff)
Add CSCVideo option to smi 501/502.
This code is an adaptation of SMI sample implementation. CSCVideo is an alternate way to render video, that should reduce memory bandwidth usage, and uses the color space conversion hardware to render video directly to the framebuffer memory. When using randr dual head mode, currently only XAA is supported. As it has a fixed format framebuffer (when using the Virtual xorg.conf option). This patch also ensures that pScrn->displayWidth, pScrn->virtualX and pScrn->virtualY are only changed by the driver when using EXA.
Diffstat (limited to 'src/smi_xaa.c')
-rw-r--r--src/smi_xaa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/smi_xaa.c b/src/smi_xaa.c
index 30f8608..31790bf 100644
--- a/src/smi_xaa.c
+++ b/src/smi_xaa.c
@@ -583,7 +583,8 @@ SMI_SetupForColor8x8PatternFill(ScrnInfoPtr pScrn, int patx, int paty, int rop,
#endif
if (pScrn->bitsPerPixel <= 16) {
/* PDR#950 */
- CARD8* pattern = pSmi->FBBase + (patx + paty * pSmi->Stride) * pSmi->Bpp;
+ CARD8* pattern = pSmi->FBBase +
+ (patx + paty * pScrn->displayWidth) * pSmi->Bpp;
WaitIdle();
WRITE_DPR(pSmi, 0x0C, SMI_BITBLT | SMI_COLOR_PATTERN);