gallium: add nir lowering passes for the draw pipe stages. (v2)

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [redhat.com] - 28 November 2019 04:49 EST

This transforms the NIR shaders like the TGSI transforms worked.

v2: fix some nir info requirements, use 32-bit bools

3eb27cfccdd gallium: add nir lowering passes for the draw pipe stages. (v2)
src/gallium/auxiliary/Makefile.sources | 4 +-
src/gallium/auxiliary/draw/draw_pipe_aaline.c | 58 +++-
src/gallium/auxiliary/draw/draw_pipe_aapoint.c | 65 ++++-
src/gallium/auxiliary/draw/draw_pipe_pstipple.c | 33 ++-
src/gallium/auxiliary/meson.build | 2 +
src/gallium/auxiliary/nir/nir_draw_helpers.c | 372 ++++++++++++++++++++++++
src/gallium/auxiliary/nir/nir_draw_helpers.h | 40 +++
7 files changed, 547 insertions(+), 27 deletions(-)

Upstream: cgit.freedesktop.org


  • Share