ac/nir: fix lds store for patch outputs.
authorDave Airlie <airlied@redhat.com>
Mon, 18 Dec 2017 06:53:44 +0000 (16:53 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Dec 2017 20:44:24 +0000 (06:44 +1000)
commitdd517ad96d1ca53ba8912c8d6fd78b89e6948f23
tree5cc6f6178f671084bed4c73b9ecda88d235cd6eb
parent0e8e7ccf9dc80588e569e9ff11c880f3d5d57607
ac/nir: fix lds store for patch outputs.

This wasn't calculating the correct value, this along with
a nir patch fixes a regression in:
dEQP-VK.tessellation.shader_input_output.barrier

Fixes: 043d14db30a (ac/nir: don't write tcs outputs to LDS that aren't read back.)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c