r600: workaround 3 comp GL_SHORT vertex attribute format on r700
authorAndre Maasikas <amaasikas@gmail.com>
Wed, 7 Jul 2010 18:32:07 +0000 (21:32 +0300)
committerAndre Maasikas <amaasikas@gmail.com>
Wed, 7 Jul 2010 18:32:07 +0000 (21:32 +0300)
guess it's a hw errata?

src/mesa/drivers/dri/r600/r700_assembler.c

index 88d6b06df5682e5295afc40e98becda53d7852b3..ffc2d1458a54889dffaeceab5155b3086775053b 100644 (file)
@@ -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: