Re: [Mesa-dev] [PATCH] st/mesa: rewrite the primitive restart fallback code

2011-11-18 Thread Jose Fonseca
- Original Message - > Previously we were mapping/unmapping the index buffer each time we > found the restart index in the buffer. This is bad when the restart > index is frequently used. Now just map the index buffer once, scan > it to produce a list of sub-primitives, unmap the buffer,

[Mesa-dev] [PATCH] st/mesa: rewrite the primitive restart fallback code

2011-11-17 Thread Brian Paul
Previously we were mapping/unmapping the index buffer each time we found the restart index in the buffer. This is bad when the restart index is frequently used. Now just map the index buffer once, scan it to produce a list of sub-primitives, unmap the buffer, then draw the sub-primitives. Also,

[Mesa-dev] [PATCH] st/mesa: rewrite the primitive restart fallback code

2011-11-16 Thread Brian Paul
Previously we were mapping/unmapping the index buffer each time we found the restart index in the buffer. This is bad when the restart index is frequently used. Now just map the index buffer once, scan it to produce a list of sub-primitives, unmap the buffer, then draw the sub-primitives. Also,