aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1999-10-06 09:00:24 +0800
committerjmz <jmz@FreeBSD.org>1999-10-06 09:00:24 +0800
commit2eef8b6c2e634cf2b89f3972b6aa97d11ee1d14e (patch)
treef325a023d35311e51a62f746cbb3896dbe2eabe3
parent3d30734604c70738e3e637d64fd9c00bd7ad7ba6 (diff)
downloadfreebsd-ports-gnome-2eef8b6c2e634cf2b89f3972b6aa97d11ee1d14e.tar.gz
freebsd-ports-gnome-2eef8b6c2e634cf2b89f3972b6aa97d11ee1d14e.tar.zst
freebsd-ports-gnome-2eef8b6c2e634cf2b89f3972b6aa97d11ee1d14e.zip
Fix for problem with S3 Trio3D/2X chipset based video cards.
Submitted by: BoB Savage <bob@savage.kiev.ua>
-rw-r--r--x11/XFree86-4-libraries/files/patch-911
-rw-r--r--x11/XFree86-4/files/patch-911
-rw-r--r--x11/XFree86/files/patch-911
3 files changed, 33 insertions, 0 deletions
diff --git a/x11/XFree86-4-libraries/files/patch-9 b/x11/XFree86-4-libraries/files/patch-9
new file mode 100644
index 000000000000..1cca9510c9b4
--- /dev/null
+++ b/x11/XFree86-4-libraries/files/patch-9
@@ -0,0 +1,11 @@
+--- programs/Xserver/hw/xfree86/vga256/drivers/s3v/regs3v.h~ Mon Sep 6 10:47:18 1999
++++ programs/Xserver/hw/xfree86/vga256/drivers/s3v/regs3v.h Fri Sep 24 14:39:18 1999
+@@ -421,7 +421,7 @@
+
+ /* Wait until Command FIFO is empty */
+ #define WaitCommandEmpty() do { int loop=0; mem_barrier(); \
+- if (s3vPriv.chip == S3_ViRGE_GX2 || s3vPriv.chip == S3_ViRGE_MX || s3vPriv.chip == S3_ViRGE_MXP) \
++ if (S3_ViRGE_GX2_SERIES(s3vPriv.chip) || S3_ViRGE_MX_SERIES(s3vPriv.chip)) \
+ while ((!(((((mmtr)s3vMmioMem)->subsys_regs.regs.adv_func_cntl)) & 0x400)) && (loop++<MAXLOOP)); \
+ else if (S3_TRIO_3D_SERIES(s3vPriv.chip)) \
+ while (((IN_SUBSYS_STAT() & 0x5f00) != 0x5f00) && (loop++<MAXLOOP)); \
diff --git a/x11/XFree86-4/files/patch-9 b/x11/XFree86-4/files/patch-9
new file mode 100644
index 000000000000..1cca9510c9b4
--- /dev/null
+++ b/x11/XFree86-4/files/patch-9
@@ -0,0 +1,11 @@
+--- programs/Xserver/hw/xfree86/vga256/drivers/s3v/regs3v.h~ Mon Sep 6 10:47:18 1999
++++ programs/Xserver/hw/xfree86/vga256/drivers/s3v/regs3v.h Fri Sep 24 14:39:18 1999
+@@ -421,7 +421,7 @@
+
+ /* Wait until Command FIFO is empty */
+ #define WaitCommandEmpty() do { int loop=0; mem_barrier(); \
+- if (s3vPriv.chip == S3_ViRGE_GX2 || s3vPriv.chip == S3_ViRGE_MX || s3vPriv.chip == S3_ViRGE_MXP) \
++ if (S3_ViRGE_GX2_SERIES(s3vPriv.chip) || S3_ViRGE_MX_SERIES(s3vPriv.chip)) \
+ while ((!(((((mmtr)s3vMmioMem)->subsys_regs.regs.adv_func_cntl)) & 0x400)) && (loop++<MAXLOOP)); \
+ else if (S3_TRIO_3D_SERIES(s3vPriv.chip)) \
+ while (((IN_SUBSYS_STAT() & 0x5f00) != 0x5f00) && (loop++<MAXLOOP)); \
diff --git a/x11/XFree86/files/patch-9 b/x11/XFree86/files/patch-9
new file mode 100644
index 000000000000..1cca9510c9b4
--- /dev/null
+++ b/x11/XFree86/files/patch-9
@@ -0,0 +1,11 @@
+--- programs/Xserver/hw/xfree86/vga256/drivers/s3v/regs3v.h~ Mon Sep 6 10:47:18 1999
++++ programs/Xserver/hw/xfree86/vga256/drivers/s3v/regs3v.h Fri Sep 24 14:39:18 1999
+@@ -421,7 +421,7 @@
+
+ /* Wait until Command FIFO is empty */
+ #define WaitCommandEmpty() do { int loop=0; mem_barrier(); \
+- if (s3vPriv.chip == S3_ViRGE_GX2 || s3vPriv.chip == S3_ViRGE_MX || s3vPriv.chip == S3_ViRGE_MXP) \
++ if (S3_ViRGE_GX2_SERIES(s3vPriv.chip) || S3_ViRGE_MX_SERIES(s3vPriv.chip)) \
+ while ((!(((((mmtr)s3vMmioMem)->subsys_regs.regs.adv_func_cntl)) & 0x400)) && (loop++<MAXLOOP)); \
+ else if (S3_TRIO_3D_SERIES(s3vPriv.chip)) \
+ while (((IN_SUBSYS_STAT() & 0x5f00) != 0x5f00) && (loop++<MAXLOOP)); \