--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/open-src/driver/xf86-video-ast/21767820.patch Mon Mar 06 15:06:15 2017 -0800
@@ -0,0 +1,18 @@
+--- a/src/ast_vgatool.c 2017-03-06 14:17:58.725833327 -0800
++++ b/src/ast_vgatool.c 2017-03-06 14:20:26.302802909 -0800
+@@ -233,6 +233,7 @@
+ break;
+ }
+
++#if !defined(__sparc__)
+ /* Adjust VRAMSize from Scratch */
+ GetIndexRegMask(CRTC_PORT, 0x99, 0xFF, jReg);
+ switch (jReg & 0x03)
+@@ -247,6 +248,7 @@
+ ulVRAMSize -= 0x400000;
+ break;
+ }
++#endif
+
+ return (ulVRAMSize);
+ }
--- a/open-src/driver/xf86-video-ast/Makefile Thu Feb 23 16:08:33 2017 -0800
+++ b/open-src/driver/xf86-video-ast/Makefile Mon Mar 06 15:06:15 2017 -0800
@@ -3,7 +3,7 @@
# xf86-video-ast - Xorg driver for ASpeed Technologies graphics devices
# (such as found in some Sun/Oracle server ILOMs)
#
-# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 2017, Oracle and/or its affiliates. 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"),
@@ -43,7 +43,8 @@
16027951.patch,-p1 \
17907916.patch,-p1 \
20816358-disable-DP501.patch,-p1 \
- 22087975.patch,-p1
+ 22087975.patch,-p1 \
+ 21767820.patch,-p1
# Link in additional source files from sun-src directory
ADDITIONAL_SOURCE_DIR=sun-src