diff options
author | Roland Scheidegger <[email protected]> | 2013-08-30 16:35:40 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-08-30 23:20:03 +0200 |
commit | bb7dc1b2f68bd9b8dc267a6314cea336cb36e1b7 (patch) | |
tree | e62e19db639fff60422d4dd9a15d35a18e1c95e2 /src/gallium/auxiliary/tgsi | |
parent | 81ab3e57bc049b280f9d41bdcbfd0a9f327f6bde (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.c | 1 |
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++) { |