ac/nir: Fix TCS output LDS offsets.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 19 Jan 2018 00:20:12 +0000 (01:20 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 19 Jan 2018 00:54:59 +0000 (01:54 +0100)
commit4a9fd90e1e7ebbb8015d964474d476093ed9c3a4
tree62704ad129ffcad991139aa4d4af7f000c728024
parentbd5c942cefc9f58aa6e8f6a9452f65e9d0d9d93a
ac/nir: Fix TCS output LDS offsets.

When a channel was not set we also did not increase the LDS address,
while that obviously should happen.

The output loading code was inadvertently fixed which resulted in a
mismatch causing the SaschaWillems tessellation demo to result
in corrupt rendering.

Fixes: 7898eb9a60 "ac: rework load_tcs_{inputs,outputs}"
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c