diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2007-01-12 10:30:19 -0700 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2007-01-12 10:32:59 -0700 |
commit | edbd744b31eb7996b521eca4a42e0e20700ffa78 (patch) | |
tree | 8a7b1002cf29edb840f876112de2930d7493dac1 | |
parent | 461c5fb1ed00101e9832b4a0236bbb51d092ddb6 (diff) |
Correctly program the sync polarity taking into account the GX wierdness
-rw-r--r-- | src/gfx/vid_rdcl.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gfx/vid_rdcl.c b/src/gfx/vid_rdcl.c index 06e1925..7c98d2d 100644 --- a/src/gfx/vid_rdcl.c +++ b/src/gfx/vid_rdcl.c @@ -221,10 +221,17 @@ gfx_set_display_control(int sync_polarities) /* SET APPROPRIATE SYNC POLARITIES */ + if (PanelEnable) { + unsigned int pt2 = READ_VID32(0x408); + + pt2 &= ~((1 << 22) | (1 << 23)); + WRITE_VID32(0x408, pt2); + } + if (sync_polarities & 0x1) - dcfg |= RCDF_DCFG_CRT_HSYNC_POL; - if (sync_polarities & 0x2) - dcfg |= RCDF_DCFG_CRT_VSYNC_POL; + dcfg |= RCDF_DCFG_CRT_HSYNC_POL; + if (sync_polarities & 0x2) + dcfg |= RCDF_DCFG_CRT_VSYNC_POL; WRITE_VID32(RCDF_DISPLAY_CONFIG, dcfg); |