Re: [Mesa-dev] [PATCH] svga: do primitive trimming in translate_indices()

2013-11-15 Thread Jose Fonseca
- Original Message - > The index translation code expects the number of indexes to be > consistent with the primitive type (ex: a multiple of 3 for > PIPE_PRIM_TRIANGLES). If it's not, we can write out of bounds > in the destination buffer. > > Fixes failed assertions in the pipebuffer

[Mesa-dev] [PATCH] svga: do primitive trimming in translate_indices()

2013-11-13 Thread Brian Paul
The index translation code expects the number of indexes to be consistent with the primitive type (ex: a multiple of 3 for PIPE_PRIM_TRIANGLES). If it's not, we can write out of bounds in the destination buffer. Fixes failed assertions in the pipebuffer debug code found with Piglit primitive-rest