radeon/llvm: fix sampler index in llvm_emit_tex
authorVadim Girlin <vadimgirlin@gmail.com>
Fri, 25 May 2012 13:27:23 +0000 (17:27 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Fri, 25 May 2012 13:27:23 +0000 (17:27 +0400)
commit7fa7c608cb3cb1105587eab793aaf4ff647a565b
tree411c72b32286bf303c7f136a2980c27409fac7ed
parent029776753b69dc6054cabd8c2cc07c981ab20616
radeon/llvm: fix sampler index in llvm_emit_tex

Sampler index isn't a second source operand for some tgsi texture
instructions. Let's assume it's always the last.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=50230

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r600/r600_llvm.c