Stefan Dirsch
902ef062cc
* likely fixes build on ppc OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=416
24 lines
628 B
Diff
24 lines
628 B
Diff
Author: Andreas Schwab <schwab@suse.de>
|
|
Subject: disable DACDelay on non-vga-hardware users
|
|
Patch-Mainline: To be upstreamed
|
|
Signed-Off-By: Marcus Meissner <meissner@suse.de>
|
|
|
|
--- hw/xfree86/vgahw/vgaHW.h
|
|
+++ hw/xfree86/vgahw/vgaHW.h
|
|
@@ -168,11 +168,15 @@ typedef struct _vgaHWRec {
|
|
#define BITS_PER_GUN 6
|
|
#define COLORMAP_SIZE 256
|
|
|
|
+#if defined(__powerpc__) || defined(__arm__) || defined(__s390__) || defined(__nds32__)
|
|
+#define DACDelay(hw) /* No legacy VGA support */
|
|
+#else
|
|
#define DACDelay(hw) \
|
|
do { \
|
|
(hw)->readST01((hw)); \
|
|
(hw)->readST01((hw)); \
|
|
} while (0)
|
|
+#endif
|
|
|
|
/* Function Prototypes */
|
|
|