nir/linking: always set the used_across_stages/outputs_read bits
authorDave Airlie <airlied@redhat.com>
Mon, 18 Dec 2017 06:49:43 +0000 (16:49 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Dec 2017 20:44:11 +0000 (06:44 +1000)
commit0e8e7ccf9dc80588e569e9ff11c880f3d5d57607
tree4bf3af41d817ae74bf370dd8666ef556585698f7
parent3be382cd7cb637f463a4618dc19d87d66a644b0e
nir/linking: always set the used_across_stages/outputs_read bits

If we don't remap and output this code would trample the outputs
read bits.

This fixes a regression in
dEQP-VK.tessellation.shader_input_output.barrier

Fixes: 1c9c42d16b4c (nir: add varying component packing helpers)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/compiler/nir/nir_linking_helpers.c