On Tuesday, December 29, 2015 9:59:08 AM PST Jason Ekstrand wrote:
> A hugely common case when using nir_builder is to have a shader with a
> single function called main.  This adds a helper that gives you just that.
> This commit also makes us use it in the NIR control-flow unit tests as well
> as tgsi_to_nir and prog_to_nir.
> ---
>  src/gallium/auxiliary/nir/tgsi_to_nir.c   | 12 ++++--------
>  src/glsl/nir/nir_builder.h                | 11 +++++++++++
>  src/glsl/nir/tests/control_flow_tests.cpp | 26 ++++++++++----------------
>  src/mesa/program/prog_to_nir.c            | 13 +++----------
>  4 files changed, 28 insertions(+), 34 deletions(-)

This would have saved me a fair bit of boilerplate in my attempt to
write a passthrough TCS in NIR.  It's a good idea.

Acked-by: Kenneth Graunke <[email protected]>

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to