draw/so: indicate overflow when buffer is missing
authorZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 04:49:23 +0000 (00:49 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 05:19:07 +0000 (01:19 -0400)
commit0031cde1e199a82dfe4b754931fb0a5bdf5582f9
tree7d8d6bcc27f52e3e1a1d8880a25d3a69275e4611
parentf9f57312de863dd058a595c69ef3f42a5d90bce5
draw/so: indicate overflow when buffer is missing

We were crashing if one of the buffers wasn't set, we should
just treat it as an overflow. It's useful when using so
statistics because it allows one to figure out how much data
would be generated by so without actually writing any of it.

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