From 51c438feb765cf03d1a6448295e6c62be61a5e56 Mon Sep 17 00:00:00 2001 From: Andre Maasikas Date: Wed, 7 Jul 2010 21:32:07 +0300 Subject: r600: workaround 3 comp GL_SHORT vertex attribute format on r700 guess it's a hw errata? --- src/mesa/drivers/dri/r600/r700_assembler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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: -- cgit v1.2.3