summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/amd_gx_driver.c12
-rw-r--r--src/amd_lx_driver.c12
2 files changed, 24 insertions, 0 deletions
diff --git a/src/amd_gx_driver.c b/src/amd_gx_driver.c
index 177b111..49678f3 100644
--- a/src/amd_gx_driver.c
+++ b/src/amd_gx_driver.c
@@ -467,6 +467,18 @@ GXPreInit(ScrnInfoPtr pScrni, int flags)
if (!xf86SetDefaultVisual(pScrni, -1))
return FALSE;
+ /*
+ * If the driver can do gamma correction, it should call xf86SetGamma()
+ * here.
+ */
+ {
+ Gamma zeros = { 0.0, 0.0, 0.0 };
+
+ if (!xf86SetGamma(pScrn, zeros)) {
+ return FALSE;
+ }
+ }
+
pScrni->progClock = TRUE;
xf86CollectOptions(pScrni, NULL);
xf86ProcessOptions(pScrni->scrnIndex, pScrni->options, GeodeOptions);
diff --git a/src/amd_lx_driver.c b/src/amd_lx_driver.c
index 9abbd5f..34f220a 100644
--- a/src/amd_lx_driver.c
+++ b/src/amd_lx_driver.c
@@ -551,6 +551,18 @@ LXPreInit(ScrnInfoPtr pScrni, int flags)
if (!xf86SetDefaultVisual(pScrni, -1))
return FALSE;
+ /*
+ * If the driver can do gamma correction, it should call xf86SetGamma()
+ * here.
+ */
+ {
+ Gamma zeros = { 0.0, 0.0, 0.0 };
+
+ if (!xf86SetGamma(pScrn, zeros)) {
+ return FALSE;
+ }
+ }
+
pScrni->progClock = TRUE;
xf86CollectOptions(pScrni, NULL);
xf86ProcessOptions(pScrni->scrnIndex, pScrni->options, GeodeOptions);