draw/pt: adjust overflow calculations
authorZack Rusin <zackr@vmware.com>
Fri, 3 May 2013 03:38:28 +0000 (23:38 -0400)
committerZack Rusin <zackr@vmware.com>
Fri, 3 May 2013 11:07:33 +0000 (07:07 -0400)
commita232afdbfbaac156e981f55b8bdeb305026cde84
tree89708448d7c35a30ebb99628501066c7032539b5
parent8490d21cbe9cce4ceb5c1908b42672f5160fd013
draw/pt: adjust overflow calculations

gallium lies. buffer_size is not actually buffer_size but available
size, which is 'buffer_size - buffer_offset' so by adding buffer
offset we'd incorrectly compute overflow.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_pt_so_emit.c
src/gallium/include/pipe/p_state.h