tgsi: skip texture query opcodes when examining texture targets
authorBrian Paul <brianp@vmware.com>
Wed, 30 Mar 2016 15:55:56 +0000 (09:55 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 31 Mar 2016 15:47:40 +0000 (09:47 -0600)
commit9d7cd439880d9334d21ed099efa15ccf8b709748
treef24ba0ee2a5c60af56aef1adb7a96ed0a8ae544e
parentf96a403bc3e1ef45f92621e9ace48cf757db4059
tgsi: skip texture query opcodes when examining texture targets

Should fix the assertion in piglit
spec@arb_gpu_shader5@texturegather@fs-r-none-shadow-2d when the
TXQ instruction specifies a 2D target but the sampler view was
declared as SHADOW2D.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/tgsi/tgsi_scan.c