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>
/*
* These are not considered tex opcodes here (no additional
* target argument) however we're required to set the Texture
- * bit so we can set the number of tex offsets (offsets aren't
- * actually handled here yet in any case).
+ * bit so we can set the number of tex offsets.
*/
inst.Instruction.Texture = 1;
inst.Texture.Texture = TGSI_TEXTURE_UNKNOWN;
cur = ctx->cur;
eat_opt_white( &cur );
- for (i = 0; info->is_tex && *cur == ','; i++) {
+ for (i = 0; inst.Instruction.Texture && *cur == ','; i++) {
cur++;
eat_opt_white( &cur );
ctx->cur = cur;