radv: get correct offset into LDS for indexed vars.
authorDave Airlie <airlied@redhat.com>
Tue, 13 Mar 2018 19:41:53 +0000 (05:41 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 14 Mar 2018 01:18:54 +0000 (11:18 +1000)
commitf9de2d409bf4f068a99d358d592d96ab4803f7fb
tree29a6d19f17703fbea7c74222c377f680dd74cb89
parent4e4428482e5eddd0427b9dcee39b60e0211d45b9
radv: get correct offset into LDS for indexed vars.

This seems more correct to me, since if we have an array
of floats they'll be vec4 aligned, and if we do af[2],
we want the const index to increase by 2 slots in the non
compact case.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105464
Fixes: 94f9591995 (radv/ac: add support for TCS/TES inputs/outputs.)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_nir_to_llvm.c