aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2013-08-30 16:35:40 +0200
committerRoland Scheidegger <[email protected]>2013-08-30 23:20:03 +0200
commitbb7dc1b2f68bd9b8dc267a6314cea336cb36e1b7 (patch)
treee62e19db639fff60422d4dd9a15d35a18e1c95e2 /src/gallium/auxiliary/tgsi
parent81ab3e57bc049b280f9d41bdcbfd0a9f327f6bde (diff)
softpipe: handle NULL sampler views for texture sampling / queries
Instead of crashing just return all zero. Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Zack Rusin <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 1ffd9e94e54..0750a502f16 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -2076,6 +2076,7 @@ exec_txq(struct tgsi_exec_machine *mach,
fetch_source(mach, &src, &inst->Src[0], TGSI_CHAN_X, TGSI_EXEC_DATA_INT);
+ /* XXX: This interface can't return per-pixel values */
mach->Sampler->get_dims(mach->Sampler, unit, src.i[0], result);
for (i = 0; i < TGSI_QUAD_SIZE; i++) {