st/glsl_to_nir: call post opt functions after opts have finished
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 14 Dec 2017 03:48:49 +0000 (14:48 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 27 Dec 2017 00:26:08 +0000 (11:26 +1100)
commit351eee05d346a8d226ecb6a5ab0a0e7d5b49aa66
tree431e639eb99a576f7953023a4d7f56b3f43724f6
parentddc0e7941f688346b5ef4aa5ac630b904f28dcf6
st/glsl_to_nir: call post opt functions after opts have finished

We need to move this to a separate loop because
nir_compact_varyings() can alter the IR of a previous stage.

Fixes: 6648bd68fd27 "st/glsl_to_nir: enable NIR link time opts"
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp