diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-11-04 15:57:12 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-11-04 15:57:12 -0200 |
commit | 1d7b9547e1d37601f14410857c22f256e5c74f14 (patch) | |
tree | 435e5494c22952c20843eb6282ccf0f67df18fc3 /src/smi_crtc.c | |
parent | 93308d067c93126dd0aba9b718d9e0ba28dde9f4 (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_crtc.c')
-rw-r--r-- | src/smi_crtc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/smi_crtc.c b/src/smi_crtc.c index 8ca5ec5..d061ad5 100644 --- a/src/smi_crtc.c +++ b/src/smi_crtc.c @@ -243,13 +243,13 @@ SMI_CrtcConfigResize(ScrnInfoPtr pScrn, pScrn->displayWidth = aligned_pitch / pSmi->Bpp; pScrn->pScreen->ModifyPixmapHeader(pScrn->pScreen->GetScreenPixmap(pScrn->pScreen), -1, -1, -1, -1, aligned_pitch, NULL); - } - /* Modify the screen dimensions */ - pScrn->virtualX = width; - pScrn->virtualY = height; - pScrn->pScreen->ModifyPixmapHeader(pScrn->pScreen->GetScreenPixmap(pScrn->pScreen), - width, height, -1, -1, 0, NULL); + /* Modify the screen dimensions */ + pScrn->virtualX = width; + pScrn->virtualY = height; + pScrn->pScreen->ModifyPixmapHeader(pScrn->pScreen->GetScreenPixmap(pScrn->pScreen), + width, height, -1, -1, 0, NULL); + } /* Setup each crtc video processor */ for(i=0;i<crtcConf->num_crtc;i++){ |