diff options
author | Brian Paul <[email protected]> | 2013-11-13 11:26:15 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-11-15 10:23:48 -0700 |
commit | 79984b9928d4444665ce617a1e4551e53d415bd4 (patch) | |
tree | 0cd60d2e0db97b4a9b0abe47397e1c01bfe77052 /src/gallium/drivers/identity | |
parent | 491d6397fcbe8eabfdd69500b91dbc6efc4dd894 (diff) |
svga: do primitive trimming in translate_indices()
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-restart-draw-mode test.
Cc: "10.0" <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/identity')
0 files changed, 0 insertions, 0 deletions