[openchrome-devel] xf86-video-openchrome: src/via_driver.c
Kevin Brace
kevinbrace at kemper.freedesktop.org
Wed Dec 18 02:10:03 UTC 2019
src/via_driver.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 012423d1871427244a920c9fafa6e235ecf985dd
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Tue Dec 17 20:07:57 2019 -0600
Call miSetPixmapDepths() inside VIAScreenInit() only at one location
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_driver.c b/src/via_driver.c
index 8c360f7..94fc90a 100644
--- a/src/via_driver.c
+++ b/src/via_driver.c
@@ -1851,15 +1851,15 @@ VIAScreenInit(SCREEN_INIT_ARGS_DECL)
if (!miSetVisualTypes(pScrn->depth, TrueColorMask,
pScrn->rgbBits, pScrn->defaultVisual))
return FALSE;
- if (!miSetPixmapDepths())
- return FALSE;
} else {
if (!miSetVisualTypes(pScrn->depth,
miGetDefaultVisualMask(pScrn->depth),
pScrn->rgbBits, pScrn->defaultVisual))
return FALSE;
- if (!miSetPixmapDepths())
- return FALSE;
+ }
+
+ if (!miSetPixmapDepths()) {
+ return FALSE;
}
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "- Visuals set up\n"));
More information about the openchrome-devel
mailing list