draw/so: Fix overflow calculations
authorZack Rusin <zackr@vmware.com>
Tue, 23 Apr 2013 22:56:47 +0000 (18:56 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 03:04:26 +0000 (23:04 -0400)
commit53d36d5fb09cda39c8d3646cbccbd343b34bfb54
treed132cc677df63d4063163ca241a8dda2cbf21488
parentd996622cfad484817c1038caded20032759ec93b
draw/so: Fix overflow calculations

We weren't taking the buffer offset, destination offset or the
stride into consideration so we were frequently writing into
an overflown buffer.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_pt_so_emit.c