radv/ac: add const_index to fetch index for gs inputs
authorDave Airlie <airlied@redhat.com>
Wed, 1 Feb 2017 00:43:36 +0000 (10:43 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 1 Feb 2017 22:25:04 +0000 (08:25 +1000)
commit230e308ff9a1d6ac6519db70d4e3038c2c948088
treea09764ac94395e2018d8c4c1c34d78402efc39b6
parentdc68b920dfd1adf2616dda99da730e6412fe2e6e
radv/ac: add const_index to fetch index for gs inputs

This fixes clip distance fetches as they are single item loads
with a const_index like float[1].

Fixes:
dEQP-VK.clipping.user_defined.*.vert_geom.[0-6]

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c