st/glsl_to_tgsi: fix indirect access to 64-bit integer
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 6 Oct 2017 15:14:46 +0000 (17:14 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 11 Oct 2017 21:16:56 +0000 (23:16 +0200)
commit541208cf138deb59204b28c56b3d37fec399778b
tree16718c3a4826a5fef737c3580bef6cd7088ca095
parent2991c0d7df898c6c3b5f5fdb66be07e63f8313e8
st/glsl_to_tgsi: fix indirect access to 64-bit integer

Make sure we actually allocate two adjacent TGSI temporaries. The
current code fails e.g. when an arithmetic operation has two
operands with indirect accesses.

I will send out a new piglit test
(arb_gpu_shader_int64/execution/indirect-array-two-accesses.shader_test)

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp