radeonsi: properly implement texture opcodes that take an offset
authorMarek Olšák <marek.olsak@amd.com>
Wed, 25 Jun 2014 01:12:46 +0000 (03:12 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 11 Jul 2014 17:36:29 +0000 (19:36 +0200)
commit877bb52dc95c8504935d48fffe93b5c52bfc7e16
treec87087e96cf45965262595f77b18f54051eec7c6
parent04aa2bd724157b8d9e5748b17de10c7517e2c388
radeonsi: properly implement texture opcodes that take an offset

Instead of using intr_name in lp_build_tgsi_action, this selects the names
with a switch statement in the emit function. This allows emitting
llvm.SI.sample for instructions without offsets and llvm.SI.image.sample.*.o
otherwise.

This depends on my LLVM changes.

When LLVM 3.5 is released, I'll switch all texture instructions to the new
intrinsics.
src/gallium/drivers/radeonsi/si_shader.c