On Thu, 2002-05-09 at 21:34, Al Tobey wrote:
>
> I downloaded and installed the bleeding radeon driver. I currently
> can't use it because I'm have a Sun/Sony GDM20D10, which requires
> composite sync. I got some help on Xpert a while back. Here is the
> thread containing a patch.
> http://www.xfree86.org/pipermail/xpert/2002-January/015209.html
> I have tried "Composite" and "-CSync" in my Modelines section with no
> success.
> The current Gatos drivers contain this patch, which I have to use in
> order for my monitor to work.
>
> Any chance it might get added to the dri tree?
You are aware that CVS preserves local modifications?
2D driver happens in the XFree86 tree normally. I submitted the attached
patch to Kevin E. Martin (the radeon 2D driver maintainer) and it will
hopefully be in XFree86 4.3.0 and thus eventually in the DRI tree.
--
Earthling Michel D�nzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member / CS student, Free Software enthusiast
Index: radeon_driver.c
===================================================================
RCS file: /cvs/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c,v
retrieving revision 1.51
diff -u -r1.51 radeon_driver.c
--- radeon_driver.c 2002/01/21 18:49:16 1.51
+++ radeon_driver.c 2002/01/27 13:58:01
@@ -3705,6 +3705,9 @@
| ((mode->Flags & V_DBLSCAN)
? RADEON_CRTC_DBL_SCAN_EN
: 0)
+ | ((mode->Flags & V_CSYNC)
+ ? RADEON_CRTC_CSYNC_EN
+ : 0)
| ((mode->Flags & V_INTERLACE)
? RADEON_CRTC_INTERLACE_EN
: 0));
@@ -3715,6 +3718,7 @@
save->crtc_ext_cntl = RADEON_VGA_ATI_LINEAR |
RADEON_XCRT_CNT_EN;
save->crtc_gen_cntl &= ~(RADEON_CRTC_DBL_SCAN_EN |
+ RADEON_CRTC_CSYNC_EN |
RADEON_CRTC_INTERLACE_EN);
}
else
@@ -3837,6 +3841,9 @@
| ((mode->Flags & V_DBLSCAN)
? RADEON_CRTC2_DBL_SCAN_EN
: 0)
+ | ((mode->Flags & V_CSYNC)
+ ? RADEON_CRTC2_CSYNC_EN
+ : 0)
| ((mode->Flags & V_INTERLACE)
? RADEON_CRTC2_INTERLACE_EN
: 0));
@@ -4197,6 +4204,7 @@
pScrn->depth,
pScrn->bitsPerPixel);
if (mode->Flags & V_DBLSCAN) ErrorF(" D");
+ if (mode->Flags & V_CSYNC) ErrorF(" C");
if (mode->Flags & V_INTERLACE) ErrorF(" I");
if (mode->Flags & V_PHSYNC) ErrorF(" +H");
if (mode->Flags & V_NHSYNC) ErrorF(" -H");
@@ -4219,6 +4227,7 @@
pScrn->depth,
pScrn->bitsPerPixel);
if (mode->Flags & V_DBLSCAN) ErrorF(" D");
+ if (mode->Flags & V_CSYNC) ErrorF(" C");
if (mode->Flags & V_INTERLACE) ErrorF(" I");
if (mode->Flags & V_PHSYNC) ErrorF(" +H");
if (mode->Flags & V_NHSYNC) ErrorF(" -H");
Index: radeon_reg.h
===================================================================
RCS file: /cvs/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_reg.h,v
retrieving revision 1.13
diff -u -r1.13 radeon_reg.h
--- radeon_reg.h 2001/09/26 12:49:25 1.13
+++ radeon_reg.h 2002/04/10 13:27:52
@@ -364,6 +364,7 @@
# define RADEON_CRTC2_DISP_DIS (1 << 23)
# define RADEON_CRTC2_EN (1 << 25)
# define RADEON_CRTC2_DISP_REQ_EN_B (1 << 26)
+# define RADEON_CRTC2_CSYNC_EN (1 << 27)
# define RADEON_CRTC2_HSYNC_DIS (1 << 28)
# define RADEON_CRTC2_VSYNC_DIS (1 << 29)
#define RADEON_CRTC_GUI_TRIG_VLINE 0x0218