softpipe: check if so_target is NULL before accessing it
authorRoland Scheidegger <sroland@vmware.com>
Fri, 30 Aug 2013 14:34:26 +0000 (16:34 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 30 Aug 2013 21:20:03 +0000 (23:20 +0200)
commit81ab3e57bc049b280f9d41bdcbfd0a9f327f6bde
tree863173a9e59354af88e2af108732d1987da1627d
parent289faa7e23cdac352b4936d743a477db5c5a97b9
softpipe: check if so_target is NULL before accessing it

No idea if this is working right but copied straight from llvmpipe.
(Not only does this check the so_target but also use buffer->data instead
of buffer for the mapping.)
Just trying to get rid of a segfault testing something else...

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
src/gallium/drivers/softpipe/sp_draw_arrays.c