radv/ac/llvm: trim texture return values
authorDave Airlie <airlied@redhat.com>
Mon, 24 Oct 2016 20:53:03 +0000 (06:53 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Oct 2016 01:42:03 +0000 (11:42 +1000)
commitd548fa882b865b8e5052954b872e392312c38ab8
treee9912cbbda035fca5fced76c0f495e10c7bc9695
parent5c73ecaac487eba36e15f22be2e9396c4a0ffe46
radv/ac/llvm: trim texture return values

The intrinsic engine asserts in llvm due to this,
as we put a vec4 into a vec1, and the next instruction
isn't expecting it.

So trim the vector at the end before inserting it.

Reported-by: Christoph Haag <haagch+mesadev@frickel.club>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c