llvmpipe: add some null pointer checks
authorBrian Paul <brianp@vmware.com>
Fri, 9 Sep 2011 19:59:20 +0000 (13:59 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 9 Sep 2011 20:00:55 +0000 (14:00 -0600)
commit023ca40d80670ac0eee8c755ca5f54b1e7c2712e
tree60d74f33b72ddc79e742e39719f93b331ab91301
parente12b4752ef3cbc181d84c1eba672760f120ad346
llvmpipe: add some null pointer checks

It's not clear if these are acceptable cases so issue a one-time warning
in debug builds when we hit them.

Fixes segfault in piglit fbo-mipmap-copypix test.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_rast_debug.c