Mesa (master): intel: Correct FBconfig color masks with DRI2. Fail at copy and paste.
Eric Anholt
anholt at kemper.freedesktop.org
Sat Jan 31 20:23:01 UTC 2009
Module: Mesa
Branch: master
Commit: 24ff169486e315671c09cd8a57a311a935ccfff5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=24ff169486e315671c09cd8a57a311a935ccfff5
Author: Eric Anholt <eric at anholt.net>
Date: Sat Jan 31 10:32:34 2009 -0800
intel: Correct FBconfig color masks with DRI2. Fail at copy and paste.
This still leaves us with a broken depth 32 visual, but now it's the server's
visual setup that's at fault.
---
src/mesa/drivers/dri/intel/intel_screen.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index aad53fb..e17f18a 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -733,10 +733,10 @@ __DRIconfig **intelInitScreen2(__DRIscreenPrivate *psp)
fb_format[0] = GL_RGB;
fb_type[0] = GL_UNSIGNED_SHORT_5_6_5;
- fb_format[1] = GL_RGB;
+ fb_format[1] = GL_BGR;
fb_type[1] = GL_UNSIGNED_INT_8_8_8_8_REV;
- fb_format[2] = GL_RGBA;
+ fb_format[2] = GL_BGRA;
fb_type[2] = GL_UNSIGNED_INT_8_8_8_8_REV;
for (color = 0; color < ARRAY_SIZE(fb_format); color++) {
More information about the mesa-commit
mailing list