From: Jon Smirl Date: Fri, 6 May 2005 05:50:41 +0000 (+0000) Subject: Fix problem generating mode db. Miniglxtest works now. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd8162aaac225fdbdc228c4419d08fa3751b9af6;p=mesa.git Fix problem generating mode db. Miniglxtest works now. Miniglxsample is still broken with double buffering issues. --- diff --git a/src/mesa/drivers/dri/fb/fb_dri.c b/src/mesa/drivers/dri/fb/fb_dri.c index 93a6d9ddfe9..992b330c59e 100644 --- a/src/mesa/drivers/dri/fb/fb_dri.c +++ b/src/mesa/drivers/dri/fb/fb_dri.c @@ -500,7 +500,7 @@ fbCreateBuffer( __DRIscreenPrivate *driScrnPriv, /* XXX double-check these parameters (bpp vs cpp, etc) */ { - driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, driScrnPriv->fbBPP, + driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, driScrnPriv->fbBPP / 8, driScrnPriv->fbOrigin, driScrnPriv->fbStride); fbSetSpanFunctions(drb, mesaVis); @@ -509,7 +509,7 @@ fbCreateBuffer( __DRIscreenPrivate *driScrnPriv, } if (mesaVis->doubleBufferMode) { /* XXX what are the correct origin/stride values? */ - driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, driScrnPriv->fbBPP, + driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, driScrnPriv->fbBPP /8, driScrnPriv->fbOrigin, driScrnPriv->fbStride); fbSetSpanFunctions(drb, mesaVis); @@ -767,7 +767,7 @@ fbFillInModes( unsigned pixel_bits, unsigned depth_bits, fb_type = GL_UNSIGNED_SHORT_5_6_5; } else { - fb_format = GL_BGR; + fb_format = GL_RGBA; fb_type = GL_UNSIGNED_INT_8_8_8_8_REV; }