gallivm/tgsi: fix issues with sample opcodes
authorRoland Scheidegger <sroland@vmware.com>
Fri, 15 Feb 2013 02:15:43 +0000 (03:15 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 16 Feb 2013 01:40:59 +0000 (02:40 +0100)
commitf1ab67c13ab97f19c08d99c6ba101edc7d7b80e6
treef6f4833be3ab74527a90daa15893b6fff716b582
parentcb2e6782945d5ea6cc26f3f47d6ee04f48caf529
gallivm/tgsi: fix issues with sample opcodes

We need to encode them as Texture instructions since the NumOffsets field
is encoded there. However, we don't encode the actual target in there, this
is derived from the sampler view src later.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
src/gallium/auxiliary/tgsi/tgsi_info.c
src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h
src/gallium/auxiliary/tgsi/tgsi_text.c
src/gallium/auxiliary/tgsi/tgsi_ureg.h