tgsi: accept offsets for sample opcodes too in the text parser
authorRoland Scheidegger <sroland@vmware.com>
Mon, 15 Sep 2014 16:44:57 +0000 (18:44 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 16 Sep 2014 01:50:31 +0000 (03:50 +0200)
commit02595c55b077e5422a2f2cafc7b53df2ddaf6ce3
treea74aa01c77fcf7e64f1d3667e932e1e96a97d9c1
parent3a9eb40ee16eedb6caff90a8c0c24b7d801063f3
tgsi: accept offsets for sample opcodes too in the text parser

sample opcodes are a little oddly represented in the opcode_info, since
they don't count as texture instructions - they don't have valid target
information, but they may have offsets (unlike "ordinary" texture
instructions, the texture token may be optional for them).
So just make sure with these opcodes the optional offsets are accepted.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_text.c