st/nir: Unify inputs_read/outputs_written before serializing NIR
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Wed, 12 Feb 2020 10:45:55 +0000 (12:45 +0200)
committerDanylo Piliaiev <danylo.piliaiev@gmail.com>
Tue, 18 Feb 2020 09:18:37 +0000 (09:18 +0000)
commitb684ba6ce7fc6cabf42132559192e1065891e67a
tree6f2735de351a141193e6cf364b32a124d9a73209
parent9903f10636566834a7563b6828c52fe40c5b0d71
st/nir: Unify inputs_read/outputs_written before serializing NIR

Otherwise input/output interfaces won't be unified when reading
NIR from a cache.

Fixes piglit test on iris:
  clip-distance-vs-gs-out.shader_test

Fixes: 19ed12af
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3787>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3787>
src/mesa/state_tracker/st_glsl_to_nir.cpp