r300g/swtcl: fix geometry corruption by uploading indices to a buffer 00/7500/1
authorMarek Olšák <maraeo@gmail.com>
Mon, 15 Jul 2013 00:42:44 +0000 (02:42 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 15 Jul 2013 21:45:16 +0000 (23:45 +0200)
commit22427640b248aeb9875b40b216d27bedb13a1db8
tree4f252a192c1885752e55616886e2727f0f1f514e
parentc889df3fbed64be8669d21e3d3c5d6db913255da
r300g/swtcl: fix geometry corruption by uploading indices to a buffer

The splitting of a draw call into several draw commands was broken, because
the split sometimes took place in the middle of a primitive. The splitting
was supposed to be dealing with the case when there are more indices than
the maximum size of a CS.

This commit throws that code away and uses a real index buffer instead.

https://bugs.freedesktop.org/show_bug.cgi?id=66558

Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_screen_buffer.c