swr: add streamout buffer offset into pBuffer pointer
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 27 Nov 2016 06:15:03 +0000 (01:15 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 1 Dec 2016 01:36:03 +0000 (20:36 -0500)
commitef59cb0820c5542af9d62721a51c7f7256155069
tree63a65c5d5afaca5bf19a8d125bf2857ffc4c62f4
parent3d837a8871e83e86da7e76ef855e8a877e8c971c
swr: add streamout buffer offset into pBuffer pointer

The buffer_size does not take the offset into account. Just add the
offset into the pointer which lines up the structures much better.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_state.cpp