nir: Use nir_shader_get_entrypoint in TCS quad workaround code.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Aug 2016 17:56:48 +0000 (10:56 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Aug 2016 02:18:24 +0000 (19:18 -0700)
commit3203fe3d509b6a0e44c82384fba1dcc4c8c43dc6
treedf2e4ce0edf30879f31f3ef2d260c6bddb8461fc
parent93bfa1d7a2e70a72a01c48a04c208845c22f9376
nir: Use nir_shader_get_entrypoint in TCS quad workaround code.

We want to insert the code at the end of the program.  Looping over
all the functions (of which there was only one) was the old way of doing
this, but now we have nir_shader_get_entrypoint(), so let's use it.

Suggested by Connor Abbott.

v2: Update for nir_shader_get_entrypoint API change.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/mesa/drivers/dri/i965/brw_nir_tcs_workarounds.c