st/glsl_to_nir: add basic NIR opt loop helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 13 Nov 2017 23:13:58 +0000 (10:13 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 3 Dec 2017 22:10:30 +0000 (09:10 +1100)
commitbd98b8c74ef9d404f98b77519eaf327b938a150a
treeb9d0a0d2ea2b4b4b0c16d705fc924b583b7b4749
parenta9ac01b96f265af10fe4de58699c75ec6e0b6238
st/glsl_to_nir: add basic NIR opt loop helper

We need to be able to do these NIR opts in the state tracker
rather than the driver in order for the NIR linking opts to
be useful.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp