xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2012-07-19 Thread Maarten Lankhorst
Rebased ref, commits from common ancestor:


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1srmow-0006sq...@vasks.debian.org



xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2011-03-14 Thread Julien Viard de Galbert
Rebased ref, commits from common ancestor:


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1pz9km-0005fk...@alioth.debian.org



xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2011-02-25 Thread Julien Viard de Galbert
 ChangeLog|7 +++
 src/via_cursor.c |7 ---
 src/via_dri.c|   21 +
 src/via_driver.c |   18 --
 src/via_id.c |6 +-
 src/via_mode.c   |5 +++--
 src/via_panel.c  |9 +++--
 src/via_video.c  |1 +
 8 files changed, 44 insertions(+), 30 deletions(-)

New commits:
commit c25bb04420ea4035bc70b8c9c7079554cbd55c8b
Author: gang65 gang65@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Sun Feb 20 11:43:03 2011 +

Add workaround for #177 ticket


git-svn-id: http://svn.openchrome.org/svn/trunk@916 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_driver.c b/src/via_driver.c
index 8c84635..62d8fb1 100644
--- a/src/via_driver.c
+++ b/src/via_driver.c
@@ -1015,6 +1015,12 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags)
 
 switch (pVia-Chipset) {
 case VIA_CLE266:
+#ifdef XSERVER_LIBPCIACCESS
+pci_device_cfg_read_u8(bridge, videoRam, 0xE1);
+#else
+videoRam = pciReadByte(pciTag(0, 0, 0), 0xE1)  0x70;
+#endif
+pScrn-videoRam = (1  ((videoRam  0x70)  4))  10;
 case VIA_KM400:
 #ifdef XSERVER_LIBPCIACCESS
 pci_device_cfg_read_u8(bridge, videoRam, 0xE1);
@@ -1022,6 +1028,12 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags)
 videoRam = pciReadByte(pciTag(0, 0, 0), 0xE1)  0x70;
 #endif
 pScrn-videoRam = (1  ((videoRam  0x70)  4))  10;
+/* Workaround for #177 (VRAM probing fail on P4M800) */
+if (pScrn-videoRam  16384) {
+xf86DrvMsg(pScrn-scrnIndex, X_WARNING,
+   Memory size detection failed: using 16 MB.\n);
+pScrn-videoRam = 16  10;
+}
 break;
 case VIA_PM800:
 case VIA_VM800:
@@ -1072,12 +1084,6 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags)
 if (from == X_PROBED) {
 xf86DrvMsg(pScrn-scrnIndex, from,
Probed amount of VideoRAM = %d kB\n, pScrn-videoRam);
-
-if (pScrn-videoRam  16384) {
-xf86DrvMsg(pScrn-scrnIndex, X_WARNING,
-   Memory size detection failed: using 16 MB.\n);
-pScrn-videoRam = 16  10;
-}
 }
 
 if (!VIASetupDefaultOptions(pScrn)) {

commit 57321bdb71efe67bd22b69896968825457bf9ea4
Author: gang65 gang65@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Sun Feb 20 11:25:17 2011 +

Fix #395 - revert ViaPanelGetSizeFromDDC renaming (thanks to julienvdg)


git-svn-id: http://svn.openchrome.org/svn/trunk@915 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_panel.c b/src/via_panel.c
index d9ad742..583e12f 100644
--- a/src/via_panel.c
+++ b/src/via_panel.c
@@ -307,11 +307,8 @@ ViaPanelPreInit(ScrnInfoPtr pScrn)
 int width, height;
 Bool ret;
 
-ret = ViaPanelGetSizeFromDDC(pScrn, width, height);
-/*
-if (!ret)
-ret = ViaPanelGetSizeFromDDCv2(pScrn, width);
-*/
+ret = ViaPanelGetSizeFromDDCv1(pScrn, width, height);
+
 if (ret) {
 panel-NativeModeIndex = ViaPanelLookUpModeIndex(width, height);
 DEBUG(xf86DrvMsg(pScrn-scrnIndex, X_INFO, 
ViaPanelLookUpModeIndex, Width %d, Height %d, NativeModeIndex%d\n, width, 
height, panel-NativeModeIndex));
@@ -411,7 +408,7 @@ ViaPanelGetSizeFromEDID(ScrnInfoPtr pScrn, xf86MonPtr pMon,
 }
 
 Bool
-ViaPanelGetSizeFromDDC(ScrnInfoPtr pScrn, int *width, int *height)
+ViaPanelGetSizeFromDDCv1(ScrnInfoPtr pScrn, int *width, int *height)
 {
 VIAPtr pVia = VIAPTR(pScrn);
 xf86MonPtr pMon;

commit e47aba4c1272d59150cec53cb195b92ed6fc34f6
Author: gang65 gang65@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Sun Feb 20 11:20:01 2011 +

Add suport for Semp Informática Notebook IS 1462 (reported by Colin)


git-svn-id: http://svn.openchrome.org/svn/trunk@914 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_id.c b/src/via_id.c
index d7353d1..fce5006 100644
--- a/src/via_id.c
+++ b/src/via_id.c
@@ -204,6 +204,7 @@ static struct ViaCardIdStruct ViaCardId[] = {
 {Fujitsu/Siemens Amilo Pro V3515,   VIA_P4M900,  0x1734, 0x10CB, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},
 {Fujitsu/Siemens Amilo Li1705,  VIA_P4M900,  0x1734, 0x10F7, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},
 {ASRock P4VM900-SATA2,  VIA_P4M900,  0x1849, 0x3371, 
VIA_DEVICE_CRT},
+{Semp Informática Notebook IS 1462, VIA_P4M900,  0x1509, 0x1D41, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},
 
 /*** CX700 ***/
 {VIA VT8454B,   VIA_CX700,   0x0908, 0x1975, 
VIA_DEVICE_CRT}, /* Evaluation board, reference possibly wrong */

commit a5eabab7e4e40a20008af1b0056a9afed3ba9a67
Author: gang65 gang65@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Sun Feb 20 11:12:12 2011 +

Fix VIA VB8001 Mini-ITX Board (P4M900) support


git-svn-id: http://svn.openchrome.org/svn/trunk@913 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git 

xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2010-09-07 Thread Julien Viard de Galbert
Rebased ref, commits from common ancestor:


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1osutf-0005rk...@alioth.debian.org



xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2010-09-07 Thread Julien Viard de Galbert
New branch 'upstream-experimental' available with the following commits:
commit e5bb79d1f24ff18ca4664438a5570a4378e62705
Merge: 2a6e625 3a6b930
Author: Julien Viard de Galbert jul...@vdg.blogsite.org
Date:   Tue Sep 7 10:00:44 2010 +0200

Merge remote branch 'trunk' into upstream-experimental

commit 3a6b93026d3590dbce9ec431dedbb3dc6604d8ac
Author: schlobinux schlobi...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Fri Aug 27 07:42:51 2010 +

fix typo in r857

git-svn-id: http://svn.openchrome.org/svn/tr...@858 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit aad1d231b2b25300bb67d5f2ed69c750837e8bd5
Author: schlobinux schlobi...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Thu Aug 26 19:08:39 2010 +

ECS P4M800PRO-M2 (V2.0) - reported by Jandré le Roux

git-svn-id: http://svn.openchrome.org/svn/tr...@857 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit f669b9bf418f40a558d3b8b85082cc3ca19e0a9e
Author: jnettlet jnett...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Thu Jun 24 17:07:01 2010 +

Fix XV crash on PM800 post VX855 rework

git-svn-id: http://svn.openchrome.org/svn/tr...@856 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 92303af7a862655515242246e39f38aeda1656c2
Author: gang65 gan...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Tue Jun 22 21:37:33 2010 +

Increase bandwidth to handle 1920x1200 resolution with DDR266


git-svn-id: http://svn.openchrome.org/svn/tr...@855 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 7ee8a07a6d28911322edc6c694b6d0219e55e7f6
Author: gang65 gan...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Wed Jun 9 21:37:01 2010 +

Fixed freeze on 64bit system for K8M090 chipset


git-svn-id: http://svn.openchrome.org/svn/tr...@854 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 103e96c281f292c7a7bbd5af5324d899e29b9d58
Author: schlobinux schlobi...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Tue May 4 21:57:20 2010 +

Revert 2 changes that should not have gone into rev 846

git-svn-id: http://svn.openchrome.org/svn/tr...@853 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 24619b76ae33c78b21022666338378dd8c5d1210
Author: schlobinux schlobi...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Tue May 4 21:45:48 2010 +

Disable AGP and DMA by default for VX800 and VX855

git-svn-id: http://svn.openchrome.org/svn/tr...@852 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 7f2bc4bb415b45684d47a0b90986f2c284e970f6
Author: jnettlet jnett...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Tue May 4 15:23:34 2010 +

Re-Enable the VQ for VX800/VX855

git-svn-id: http://svn.openchrome.org/svn/tr...@851 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 65ff94a7ee6327a8a3742a6af333f593b6b5feff
Author: jnettlet jnett...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Tue May 4 14:25:04 2010 +

Disable Hardware Clipping for the VX855

git-svn-id: http://svn.openchrome.org/svn/tr...@850 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 46e0ccbb62ef2f359739057cdb050e120db8707f
Author: jnettlet jnett...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Tue May 4 14:22:31 2010 +

Add option I2CDevices

git-svn-id: http://svn.openchrome.org/svn/tr...@849 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 9935bb6368f80d2c23667fd105273a42686fedd6
Author: jnettlet jnett...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Tue May 4 14:19:26 2010 +

Improve 2d performance on chipsets without AGP/PCIe

git-svn-id: http://svn.openchrome.org/svn/tr...@848 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 010488e395755e50394d87e1cdc42ab47ada010e
Author: jnettlet jnett...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Tue May 4 14:17:22 2010 +

Add timeouts to HQV while loops

git-svn-id: http://svn.openchrome.org/svn/tr...@847 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 787ee39bfe2b1cc7e0e01b1581873cfc2bd1c403
Author: jnettlet jnett...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Tue May 4 14:11:53 2010 +

XVideo support for VX855

git-svn-id: http://svn.openchrome.org/svn/tr...@846 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 0c1d6a901a9e297069fc262b2e5116bf15ccb68a
Author: gang65 gan...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Fri Apr 30 16:43:52 2010 +

set colorkey for 2nd_monitor


git-svn-id: http://svn.openchrome.org/svn/tr...@845 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 0f613b487fb18e1f2293ac25dfc2fb3a5476bf6f
Author: gang65 gan...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Fri Apr 30 05:16:30 2010 +

Manpage update and some minor changes


git-svn-id: http://svn.openchrome.org/svn/tr...@844 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

commit 7815ea13957b6d1cd202978930c464a48ec5a45d
Author: schlobinux schlobi...@e8d65cb0-85f4-0310-8831-c60e2a5ce829
Date:   Thu Apr 22 21:00:42 2010 +

fix DFP parameter description for the ActiveDevice option

git-svn-id: 

xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2008-11-09 Thread Raphael Geissert
 ChangeLog   |   66 +
 src/via_accel.c |  348 
 src/via_bandwidth.c |   23 +++
 src/via_crtc.c  |   28 +++-
 src/via_cursor.c|   18 +-
 src/via_driver.c|   17 +-
 src/via_driver.h|1 
 src/via_id.c|3 
 src/via_id.h|2 
 src/via_mode.c  |   12 +
 src/via_mode.h  |2 
 src/via_panel.c |2 
 src/via_regs.h  |   32 
 src/via_swov.c  |   14 ++
 src/via_video.c |3 
 15 files changed, 449 insertions(+), 122 deletions(-)

New commits:
commit 74ad89c47148dd0261413f7e82535f76fad6c660
Author: jnettlet [EMAIL PROTECTED]
Date:   Tue Nov 4 17:14:15 2008 +

fixed VX800 so ActiveDevice is no longer needed

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/ChangeLog b/ChangeLog
index 046a0fc..ffee4e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-11-04  Jon Nettleton  [EMAIL PROTECTED]
+
+   * src/via_crtc.c: (ViaFirstCRTCSetMode), (ViaSecondCRTCSetMode):
+
+   Found needed register writes that are needed so VX800 doesn't
+   crash when CRT is not enabled.  I also removed NEEDS FIXING
+comments from them as they are obviously needed.
+
 2008-11-03  Jon Nettleton  [EMAIL PROTECTED]
 
* src/via_accel.c: (viaSubsequentMono8x8PatternFillRect),
diff --git a/src/via_crtc.c b/src/via_crtc.c
index 3cf6e21..6b8a385 100644
--- a/src/via_crtc.c
+++ b/src/via_crtc.c
@@ -146,7 +146,6 @@ ViaFirstCRTCSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
 break;
 }
 
-/* FIXME: check if this is really necessary here */
 switch (pVia-ChipId) {
 case VIA_K8M890:
 case VIA_CX700:
@@ -282,7 +281,6 @@ ViaFirstCRTCSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
 hwp-writeSeq(hwp, 0x1C, (temp  1)  0xFF);
 ViaSeqMask(hwp, 0x1D, temp  9, 0x03);
 
-/* FIXME: check if this is really necessary here */
 switch (pVia-ChipId) {
 case VIA_K8M890:
 case VIA_CX700:
@@ -405,6 +403,19 @@ ViaSecondCRTCSetMode(ScrnInfoPtr pScrn, DisplayModePtr 
mode)
 break;
 }
 
+switch (pVia-ChipId) {
+case VIA_K8M890:
+case VIA_CX700:
+case VIA_P4M900:
+break;
+default:
+ViaSeqMask(hwp, 0x16, 0x08, 0xBF);
+ViaSeqMask(hwp, 0x17, 0x1F, 0xFF);
+ViaSeqMask(hwp, 0x18, 0x4E, 0xFF);
+ViaSeqMask(hwp, 0x1A, 0x08, 0xFD);
+break;
+}
+
 /* Crtc registers */
 /* horizontal total : 4096 */
 temp = mode-CrtcHTotal - 1;
@@ -474,6 +485,19 @@ ViaSecondCRTCSetMode(ScrnInfoPtr pScrn, DisplayModePtr 
mode)
 temp = mode-CrtcVSyncEnd;
 ViaCrtcMask(hwp, 0x5F, temp, 0x1F);
 
+switch (pVia-ChipId) {
+case VIA_K8M890:
+case VIA_CX700:
+case VIA_P4M900:
+break;
+default:
+/* some leftovers */
+hwp-writeCrtc(hwp, 0x08, 0x00);
+ViaCrtcMask(hwp, 0x32, 0, 0xFF);  /* ? */
+ViaCrtcMask(hwp, 0x33, 0, 0xC8);
+break;
+}
+
 ViaSecondCRTCHorizontalOffset(pScrn);
 ViaSecondCRTCHorizontalQWCount(pScrn, mode-CrtcHDisplay);
 

commit f4745295ba579cab7d5a463259ab19f03e61902f
Author: jnettlet [EMAIL PROTECTED]
Date:   Tue Nov 4 02:53:37 2008 +

finish acceleration changes for the VX800 chipsets

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/ChangeLog b/ChangeLog
index ad9b010..046a0fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2008-11-03  Jon Nettleton  [EMAIL PROTECTED]
+
+   * src/via_accel.c: (viaSubsequentMono8x8PatternFillRect),
+   (viaSetupForSolidLine), (viaSubsequentSolidHorVertLine),
+   (viaSetupForDashedLine), (viaAccelMarkSync):
+
+   A few more acceleration tweaks for the VX800.  
+   This should fix all the XAA rendering issues.
+   This should also allow 800x480 Panels to work without
+   custom modelines.
+
 2008-11-02  Jon Nettleton  [EMAIL PROTECTED]
 
* src/via_accel.c: (viaFlushPCI), (viaDisableVQ),
diff --git a/src/via_accel.c b/src/via_accel.c
index 7eee90c..47fe9da 100644
--- a/src/via_accel.c
+++ b/src/via_accel.c
@@ -77,7 +77,8 @@ enum VIA_2D_Regs {
MONOPAT0,
MONOPAT1,
COLORPAT,
-   MONOPATFGC
+   MONOPATFGC,
+   MONOPATBGC
 };
 
 /* register offsets for old 2D core */
@@ -104,7 +105,8 @@ static const unsigned via_2d_regs[] = {
 [MONOPAT0]  = VIA_REG_MONOPAT0,
 [MONOPAT1]  = VIA_REG_MONOPAT1,
 [COLORPAT]  = VIA_REG_COLORPAT,
-[MONOPATFGC]= VIA_REG_FGCOLOR
+[MONOPATFGC]= VIA_REG_FGCOLOR,
+[MONOPATBGC]= VIA_REG_BGCOLOR
 };
 
 /* register offsets for new 2D core (M1 in VT3353 == VX800) */
@@ -131,7 +133,8 @@ static const unsigned via_2d_regs_m1[] = {
 

xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2008-10-16 Thread Raphael Geissert
 src/via_driver.c |2 +-
 src/via_id.c |3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 35a6ad9c21ee92c201b8a163eff2b490bad979d6
Author: schlobinux [EMAIL PROTECTED]
Date:   Wed Oct 15 19:58:13 2008 +

minor typo

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_driver.c b/src/via_driver.c
index 439ae2f..f97b699 100644
--- a/src/via_driver.c
+++ b/src/via_driver.c
@@ -1215,7 +1215,7 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags)
 } else {
 from = X_DEFAULT;
 xf86DrvMsg(pScrn-scrnIndex, X_WARNING,
-   No memory-detection done.  Use VideoRAM 
option.\n);
+   No memory-detection done. Use VideoRAM option.\n);
 }
 }
 

commit 013a015708faddd501e6fadd1bd4bdb52ea2640f
Author: schlobinux [EMAIL PROTECTED]
Date:   Wed Oct 15 19:57:28 2008 +

MSI K8M Neo-V (broken pci id, there is already one with a good pci id)

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_id.c b/src/via_id.c
index b314dce..fd21efa 100644
--- a/src/via_id.c
+++ b/src/via_id.c
@@ -87,6 +87,7 @@ static struct ViaCardIdStruct ViaCardId[] = {
 {Asustek K8V-MX,VIA_K8M800,  0x1043, 0x8129, 
VIA_DEVICE_CRT},
 {Mitac 8399,VIA_K8M800,  0x1071, 0x8399, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD | VIA_DEVICE_TV}, /* aka Pogolinux Konabook 
3100 */
 {Mitac 8889,VIA_K8M800,  0x1071, 0x8889, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD | VIA_DEVICE_TV},
+{MSI K8M Neo-V (broken pci id), VIA_K8M800,  0x1106, 0x0204, 
VIA_DEVICE_CRT},
 {VIA VT3108 (K8M800),   VIA_K8M800,  0x1106, 0x3108, 
VIA_DEVICE_CRT}, /* borrowed by Asustek A8V-MX */ 
 {Shuttle FX21,  VIA_K8M800,  0x1297, 0x3052, 
VIA_DEVICE_CRT},
 {Shuttle FX83,  VIA_K8M800,  0x1297, 0xF683, 
VIA_DEVICE_CRT | VIA_DEVICE_TV},

commit bccc9312797407a519ee04a994e5562f9021c780
Author: schlobinux [EMAIL PROTECTED]
Date:   Mon Oct 13 14:53:19 2008 +

VIA VT8454B has a panel

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_id.c b/src/via_id.c
index 12db88f..b314dce 100644
--- a/src/via_id.c
+++ b/src/via_id.c
@@ -191,7 +191,7 @@ static struct ViaCardIdStruct ViaCardId[] = {
 {ASRock P4VM900-SATA2,  VIA_P4M900,  0x1849, 0x3371, 
VIA_DEVICE_CRT},
 
 /*** CX700 ***/
-{VIA VT8454B,   VIA_CX700,   0x0908, 0x1975, 
VIA_DEVICE_CRT}, /* Evaluation board, reference possibly wrong */
+{VIA VT8454B,   VIA_CX700,   0x0908, 0x1975, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD}, /* Evaluation board, reference possibly wrong 
*/
 {VIA VT3324 (CX700),VIA_CX700,   0x1106, 0x3157, 
VIA_DEVICE_CRT},
 {MSI Fuzzy CX700/CX700D,VIA_CX700,   0x1462, 0x8020, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD | VIA_DEVICE_TV},
 {Samsung Q1B,   VIA_CX700,   0x144D, 0xC02C, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2008-10-12 Thread Raphael Geissert
 ChangeLog |   63 +++
 NEWS  |   20 -
 configure.ac  |   25 -
 src/Makefile.am   |6 
 src/via_accel.c   |   89 ++--
 src/via_bios.h|  106 +
 src/via_crtc.c|  612 +++
 src/via_cursor.c  |  532 ++-
 src/via_dga.c |8 
 src/via_display.c |  128 ++
 src/via_driver.c  |  547 +--
 src/via_driver.h  |   61 ++-
 src/via_id.c  |1 
 src/via_lvds.c|  121 ++
 src/via_memory.c  |2 
 src/via_mode.c| 1059 +-
 src/via_mode.h|   40 --
 src/via_panel.c   |  461 +++
 src/via_regs.h|   21 +
 src/via_swov.c|   18 
 src/via_timing.c  |  398 
 src/via_timing.h  |   51 ++
 src/via_vbe.c |6 
 src/via_video.c   |   49 --
 src/via_vt162x.h  |   17 
 src/via_xvmc.c|   18 
 26 files changed, 3200 insertions(+), 1259 deletions(-)

New commits:
commit dff72f55283e60a2fef23a3c71537cfa794592ab
Author: schlobinux [EMAIL PROTECTED]
Date:   Fri Oct 3 10:08:32 2008 +

Allow FullHD with DDR400

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_mode.h b/src/via_mode.h
index d29013b..7475c51 100644
--- a/src/via_mode.h
+++ b/src/via_mode.h
@@ -32,7 +32,7 @@
  */
 #define VIA_BW_MIN   7400 /*  [EMAIL PROTECTED]@32bpp */
 #define VIA_BW_DDR200   39400
-#define VIA_BW_DDR400   46100
+#define VIA_BW_DDR400   49800 /*  [EMAIL PROTECTED]@32bpp */
 #define VIA_BW_DDR667   92200
 
 

commit 87b1e287ef0fb567b4570267869eb9195e3d52bc
Author: schlobinux [EMAIL PROTECTED]
Date:   Mon Sep 29 12:59:45 2008 +

disable ARGB cursor for K8M890

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_cursor.c b/src/via_cursor.c
index 5c45915..64debce 100644
--- a/src/via_cursor.c
+++ b/src/via_cursor.c
@@ -545,6 +545,7 @@ viaCursorRecInit(ScrnInfoPtr pScrn)
 case VIA_CLE266:
 case VIA_KM400:
 case VIA_K8M800:
+case VIA_K8M890:
 cursor-isARGBSupported = FALSE;
 cursor-isARGBEnabled = FALSE;
 cursor-maxWidth = 32;

commit 2ea001e44c78eb1f255d5603413f937978b20bed
Author: schlobinux [EMAIL PROTECTED]
Date:   Thu Sep 25 07:39:35 2008 +

oops, forgot to svn add the new files :-(

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_crtc.c b/src/via_crtc.c
new file mode 100644
index 000..3cf6e21
--- /dev/null
+++ b/src/via_crtc.c
@@ -0,0 +1,612 @@
+/*
+ * Copyright 2005-2007 The Openchrome Project [openchrome.org]
+ * Copyright 2004-2005 The Unichrome Project  [unichrome.sf.net]
+ * Copyright 1998-2003 VIA Technologies, Inc. All Rights Reserved.
+ * Copyright 2001-2003 S3 Graphics, Inc. All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the Software),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sub license,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include config.h
+#endif
+
+#include via.h
+#include via_driver.h
+#include via_vgahw.h
+#include via_id.h
+
+#include via_mode.h
+
+static void
+ViaCRTCSetGraphicsRegisters(ScrnInfoPtr pScrn)
+{
+vgaHWPtr hwp = VGAHWPTR(pScrn);
+
+/* graphics registers */
+hwp-writeGr(hwp, 0x00, 0x00);
+hwp-writeGr(hwp, 0x01, 0x00);
+hwp-writeGr(hwp, 0x02, 0x00);
+hwp-writeGr(hwp, 0x03, 0x00);
+hwp-writeGr(hwp, 0x04, 0x00);
+hwp-writeGr(hwp, 0x05, 0x40);
+hwp-writeGr(hwp, 0x06, 0x05);
+hwp-writeGr(hwp, 0x07, 0x0F);
+hwp-writeGr(hwp, 0x08, 0xFF);
+
+ViaGrMask(hwp, 0x20, 0, 0xFF);
+ViaGrMask(hwp, 0x21, 0, 0xFF);
+ViaGrMask(hwp, 0x22, 0, 0xFF);
+}
+
+static void
+ViaCRTCSetAttributeRegisters(ScrnInfoPtr pScrn)
+{
+vgaHWPtr hwp = VGAHWPTR(pScrn);
+CARD8 i;
+

xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2008-09-14 Thread Julien Cristau
 NEWS |   12 ++--
 configure.ac |2 +-
 src/Makefile.am  |   10 +-
 src/via_driver.c |   19 +--
 src/via_driver.h |2 +-
 src/via_id.c |   17 +++--
 src/via_swov.c   |3 ++-
 7 files changed, 43 insertions(+), 22 deletions(-)

New commits:
commit aceecbbc920016208c3168b35b5ce8c427dfa5cd
Author: schlobinux [EMAIL PROTECTED]
Date:   Mon Jul 14 20:33:32 2008 +

ECS CLE266 (reported by Mohammed Abd El Hameed)

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829
(cherry picked from commit 0e4b70c57b375cf7414052366226febeaf81cd5f)

diff --git a/src/via_id.c b/src/via_id.c
index fafe724..a231385 100644
--- a/src/via_id.c
+++ b/src/via_id.c
@@ -39,6 +39,7 @@
  */
 static struct ViaCardIdStruct ViaCardId[] = {
 /*** CLE266 ***/
+{ECS CLE266 (1.0),  VIA_CLE266,  0x1019, 0x1B43, 
VIA_DEVICE_CRT | VIA_DEVICE_TV},
 {LT21 VA28, VIA_CLE266,  0x1019, 0x1B44, 
VIA_DEVICE_CRT},
 {ECS G320,  VIA_CLE266,  0x1019, 0xB320, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},
 {Asustek Terminator C3V,VIA_CLE266,  0x1043, 0x8155, 
VIA_DEVICE_CRT},

commit 64833f585bf13eb5dd42cc085de27af94e13c338
Author: schlobinux [EMAIL PROTECTED]
Date:   Wed Aug 20 20:44:27 2008 +

Gigabyte M704 / RoverPC A700GQ

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829
(cherry picked from commit adbe20d5b3029f9b5d8f13666e66010d80e077d7)

diff --git a/src/via_id.c b/src/via_id.c
index 99ca16f..fafe724 100644
--- a/src/via_id.c
+++ b/src/via_id.c
@@ -195,6 +195,7 @@ static struct ViaCardIdStruct ViaCardId[] = {
 {Samsung Q1B,   VIA_CX700,   0x144D, 0xC02C, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},
 {FIC CE260, VIA_CX700,   0x1509, 0x2D30, 
VIA_DEVICE_LCD},
 {FIC CE261, VIA_CX700,   0x1509, 0x2F07, 
VIA_DEVICE_LCD},
+{Gigabyte M704 / RoverPC A700GQ,VIA_CX700,   0x161F, 0x2060, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},
 {Packard Bell EasyNote XS,  VIA_CX700,   0x1631, 0xC201, 
VIA_DEVICE_LCD}, /* aka Everex Cloudbook CE1200V */
 
 /*** P4M890, VN890 ***/

commit da3980bd941c882328161bbccf2073a12eb06a53
Author: schlobinux [EMAIL PROTECTED]
Date:   Tue Aug 12 13:14:18 2008 +

MSI K9MM-V

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/src/via_id.c b/src/via_id.c
index 3d378b7..99ca16f 100644
--- a/src/via_id.c
+++ b/src/via_id.c
@@ -94,6 +94,7 @@ static struct ViaCardIdStruct ViaCardId[] = {
 {MSI K8M Neo-V, VIA_K8M800,  0x1462, 0x0320, 
VIA_DEVICE_CRT},
 {MSI K8MM-V,VIA_K8M800,  0x1462, 0x7142, 
VIA_DEVICE_CRT},
 {MSI K8MM3-V,   VIA_K8M800,  0x1462, 0x7181, 
VIA_DEVICE_CRT},
+{MSI K9MM-V,VIA_K8M800,  0x1462, 0x7312, 
VIA_DEVICE_CRT},
 {MSI K8MM-ILSR, VIA_K8M800,  0x1462, 0x7410, 
VIA_DEVICE_CRT},
 {Abit KV-80,VIA_K8M800,  0x147B, 0x1419, 
VIA_DEVICE_CRT},
 {Abit KV-81,VIA_K8M800,  0x147B, 0x141A, 
VIA_DEVICE_CRT},

commit 5bdedaff47ac416b2a970b270e03abe8c193a0cb
Author: schlobinux [EMAIL PROTECTED]
Date:   Wed Jul 23 14:23:49 2008 +

Foxconn P4M9007MB-8RS2H (reported by Stephen Yu)

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829
(cherry picked from commit fa8d2e2fc566d7921a31c3ab4d653a31162ecc82)

diff --git a/src/via_id.c b/src/via_id.c
index cc81923..3d378b7 100644
--- a/src/via_id.c
+++ b/src/via_id.c
@@ -169,6 +169,7 @@ static struct ViaCardIdStruct ViaCardId[] = {
 {Hewlett Packard 2133 Mini-Note,VIA_P4M900,  0x103C, 0x3030, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},
 {Asustek P5VD2-VM,  VIA_P4M900,  0x1043, 0x81CE, 
VIA_DEVICE_CRT},
 {Asustek P5VD2-VM SE,   VIA_P4M900,  0x1043, 0x8252, 
VIA_DEVICE_CRT},
+{Foxconn P4M9007MB-8RS2H,   VIA_P4M900,  0x105B, 0x0C87, 
VIA_DEVICE_CRT},
 {Mitac 8515,VIA_P4M900,  0x1071, 0x8515, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},
 {Medion Notebook MD96483,   VIA_P4M900,  0x1071, 0x8615, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},
 {Mitac 8624,VIA_P4M900,  0x1071, 0x8624, 
VIA_DEVICE_CRT | VIA_DEVICE_LCD},

commit 042283ff97a1365cfede82c262859dc436cab719
Author: schlobinux [EMAIL PROTECTED]
Date:   Mon Jul 7 19:21:30 2008 +

MSI VR321 (reported by Kot Cheshirsky)

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829
(cherry picked from commit 

xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2008-03-19 Thread Raphael Geissert
 ChangeLog   |   12 
 Makefile.am |2 
 NEWS|   48 +
 README  |   67 +
 configure.ac|   25 
 release_notes-0.3.0 |   70 -
 src/Makefile.am |5 
 src/via.h   |   18 
 src/via_accel.c |4 
 src/via_dri.c   |   25 
 src/via_driver.c|  368 --
 src/via_driver.h|   15 
 src/via_id.c|   14 
 src/via_memcpy.c|6 
 src/via_swov.c  |3 
 src/via_video.c | 1846 ++--
 16 files changed, 1424 insertions(+), 1104 deletions(-)

New commits:
commit 21a6bbd9fc25b65d09971abc2d8295b06fdb0148
Author: schlobinux [EMAIL PROTECTED]
Date:   Wed Mar 19 22:51:39 2008 +

Prepare for next release...

git-svn-id: http://svn.openchrome.org/svn/[EMAIL PROTECTED] 
e8d65cb0-85f4-0310-8831-c60e2a5ce829

diff --git a/Makefile.am b/Makefile.am
index 50af7d5..a3c5a91 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,4 +21,4 @@
 AUTOMAKE_OPTIONS = foreign
 SUBDIRS = src man libxvmc
 
-EXTRA_DIST = release_notes-0.3.0 COPYING
+EXTRA_DIST = COPYING NEWS README
diff --git a/NEWS b/NEWS
new file mode 100644
index 000..b6455ac
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,48 @@
+openchrome 0.2.902 (19/03/2008)
+---
+* Enhancements and bug fixes:
+- libpciaccess support.
+- Fix Xv on LCD for VM800/CN700/P4M800pro.
+- Fix P4M900 fifo setting.
+- Various code clean up.
+
+* New boards:
+- ASRock P4VM900-SATA2, Asustek P5VD2-VM SE, Biostar P4M800 Pro-M7,
+  Clevo M54xSR, Clevo M660SR, Medion Notebook MD96483, Mitac 8515,
+  Mitac 8624, MSI Fuzzy CX700/CX700D, Packard Bell EasyNote XS
+  (aka Everex Cloudbook CE1200V), VIA Epia SN.
+
+* Notes:
+- The HWCursor option has been removed. Hardware-accelerated cursor is on by
+  default, so this option was useless. Use the SWCursor option if you want to
+  disable HW cursor.
+- AGPDMA has been disabled for K8M800 and VM800/CN700/P4M800pro in this release
+  because it causes screen repaint and lockup issues. The problem has been
+  tracked down to a bug in kernel drm. All kernel = 2.6.22 are affected. This
+  bug will be fixed in the upcoming 2.6.25-rc7. It is also fixed in current
+  drm git tree. If you're using one of the affected kernels, you'll have to
+  either keep AGPDMA disabled  or build the modules from the fixed drm git
+  tree. This option brings extra performance for some operations. To use it,
+  add 'Option EnableAGPDMA' in the Device section of the xorg configuration.
+
+
+openchrome 0.2.901 (02/01/2008)
+
+* Enhancements :
+- New pci ids : FIC CE260, Hasee F700C, MSI P4M900M / P4M900M2-F/L,
+  PCChips V21G, Biostar P4M900M-M7 SE.
+- Identify the driver as Openchrome, with CHROME as a shorthand.
+- Report chipset too in case of an unknown card id.
+- Improve P4M890 memory detection.
+- Add VT1625 720x480Under, 720x480Fit and 720x480Over NTSC modes.
+- Add VT1625 720x576 PAL mode.
+
+* Fixes :
+- Panel on CX700 needs VBE.
+- K8M890 can use DDR667.
+- Never enable IRQ on KM400, KM400A owner will still need to enable manually.
+- Various code cleanups.
+
+openchrome 0.2.900 (20/10/2007)
+
+- First openchrome official release.
diff --git a/README b/README
new file mode 100644
index 000..027df97
--- /dev/null
+++ b/README
@@ -0,0 +1,67 @@
+xf86-video-openchrome
+-
+(http://www.openchrome.org)
+
+SUPPORTED CHIPSETS :
+
+- CLE266 (VT3122)
+- KM400/P4M800 (VT3205)
+- K8M800 (VT3204)
+- PM800/PM880/CN400 (VT3259)
+- VM800/CN700/P4M800Pro (VT3314)
+- CX700 (VT3324)
+- P4M890 (VT3327)
+- K8M890 (VT3336)
+- P4M900/VN896 (VT3364)
+
+
+SUPPORTED FEATURES :
+
+- Free modesetting for Unichrome and Unichrome Pro chipset.
+- VBE modesetting for everything not natively supported.
+- TV-out support.
+- EXA acceleration.
+- Hardware MPEG2 acceleration.
+
+
+IMPORTANT NOTE :
+
+- The driver name is now 'openchrome', and this is what you need to use in
+  your xorg.conf now (instead of 'via'). The XvMC libraries have also been
+  renamed, to 'libchromeXvMC.so' and 'libchromeXvMCPro.so'.
+
+
+KNOWN BUGS/LIMITATIONS :
+
+* Laptop panel
+- Laptop displays for anything other than CLE266 and KM400/P4M800 are only
+  supported thru VBE calls.
+- Virtual terminal is broken on some laptop displays. Use a vesa framebuffer to
+  work around that (append vga=791 to your kernel command line, for example).
+
+* XvMC
+- The hardware MPEG4 acceleration that is present on some chipsets is not
+  implemented.
+- No XvMC support for CX700 (new, unsupported engine).
+- No XvMC support for K8M890, P4M890 and P4M900/VN896 (need to get dri working
+  for them first).
+
+* TV output
+- TV modes are hardcoded and must be choosen inside a list depending on the TV
+  encoder.
+- Outputs are dependent on each other and will use the least common
+  denominator. If you're using both VGA/LCD output 

xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2008-03-09 Thread Raphael Geissert
New branch 'upstream-experimental' available with the following commits:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



xserver-xorg-video-openchrome: Changes to 'upstream-experimental'

2008-01-28 Thread Raphael Geissert
New branch 'upstream-experimental' available with the following commits:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]