softpipe: handle NULL sampler views for texture sampling / queries
authorRoland Scheidegger <sroland@vmware.com>
Fri, 30 Aug 2013 14:35:40 +0000 (16:35 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 30 Aug 2013 21:20:03 +0000 (23:20 +0200)
commitbb7dc1b2f68bd9b8dc267a6314cea336cb36e1b7
treee62e19db639fff60422d4dd9a15d35a18e1c95e2
parent81ab3e57bc049b280f9d41bdcbfd0a9f327f6bde
softpipe: handle NULL sampler views for texture sampling / queries

Instead of crashing just return all zero.

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