From: Brian Paul Date: Sun, 23 Oct 2011 16:44:47 +0000 (-0600) Subject: swrast: update renderbuffer format assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7f670655dc57ea90963888f95e22773ce0ad131;p=mesa.git swrast: update renderbuffer format assertion Failed when exercising i965 swrast fallback rendering. --- diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index e517c9ae146..4124e444e00 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1251,7 +1251,10 @@ _swrast_write_rgba_span( struct gl_context *ctx, SWspan *span) 4 * span->end * sizeof(GLchan)); } - ASSERT(rb->_BaseFormat == GL_RGBA || rb->_BaseFormat == GL_RGB || + ASSERT(rb->_BaseFormat == GL_RGBA || + rb->_BaseFormat == GL_RGB || + rb->_BaseFormat == GL_RED || + rb->_BaseFormat == GL_RG || rb->_BaseFormat == GL_ALPHA); if (ctx->Color.ColorLogicOpEnabled) {