i965/link: Use prog->nir instead of creating a temporary
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Sep 2017 16:58:59 +0000 (09:58 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 28 Sep 2017 23:20:41 +0000 (16:20 -0700)
commit2df897cf1ffd5ae01ecdbb66195d292a2a15df91
tree7fac4ae95f494e55f9f44d2dc2b33a933b5c020c
parent006533d5ef0914ae7be258dc5b7d47ba5339ca20
i965/link: Use prog->nir instead of creating a temporary

This way, when NIR_PASS_V makes a clone of the shader (for testing
nir_clone), the new and lowered version gets re-assigned to prog->nir.

[jordan.l.justen@intel.com: Tested NIR_TEST_CLONE=1 with valgrind]
Tested-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_link.cpp