llvmpipe: add initial nir support

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

This adds the hooks between llvmpipe and the gallivm NIR code, for compute and fragment shaders.

NIR support is hidden behind LP_DEBUG=nir for now until all the intergration issues are solved

18f896e55d9 llvmpipe: add initial nir support
src/gallium/auxiliary/gallivm/lp_bld_limits.h | 2 +-
src/gallium/auxiliary/gallivm/lp_bld_nir.c | 12 ++++++
src/gallium/auxiliary/gallivm/lp_bld_nir.h | 2 +
src/gallium/drivers/llvmpipe/SConscript | 3 ++
src/gallium/drivers/llvmpipe/lp_debug.h | 1 +
src/gallium/drivers/llvmpipe/lp_screen.c | 61 ++++++++++++++++++++++++++-
src/gallium/drivers/llvmpipe/lp_state_cs.c | 28 +++++++++---
src/gallium/drivers/llvmpipe/lp_state_fs.c | 32 ++++++++++----
src/gallium/drivers/llvmpipe/lp_state_gs.c | 2 +-
src/gallium/drivers/llvmpipe/meson.build | 2 +-
10 files changed, 125 insertions(+), 20 deletions(-)

Upstream: cgit.freedesktop.org


  • Share