From: Andre Maasikas Date: Wed, 7 Jul 2010 18:32:07 +0000 (+0300) Subject: r600: workaround 3 comp GL_SHORT vertex attribute format on r700 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51c438feb765cf03d1a6448295e6c62be61a5e56;p=mesa.git r600: workaround 3 comp GL_SHORT vertex attribute format on r700 guess it's a hw errata? --- diff --git a/src/mesa/drivers/dri/r600/r700_assembler.c b/src/mesa/drivers/dri/r600/r700_assembler.c index 88d6b06df56..ffc2d1458a5 100644 --- a/src/mesa/drivers/dri/r600/r700_assembler.c +++ b/src/mesa/drivers/dri/r600/r700_assembler.c @@ -293,7 +293,9 @@ GLuint GetSurfaceFormat(GLenum eType, GLuint nChannels, GLuint * pClient_size) case 2: format = FMT_16_16; break; case 3: - format = FMT_16_16_16; break; + /* 3 comp GL_SHORT vertex format doesnt work on r700 + 4 somehow works, test - sauerbraten */ + format = FMT_16_16_16_16; break; case 4: format = FMT_16_16_16_16; break; default: