Module: Mesa
Branch: main
Commit: a9d8d606ccf3d809a9adfd529be8d1ceaf1dd799
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9d8d606ccf3d809a9adfd529be8d1ceaf1dd799

Author: Dave Airlie <[email protected]>
Date:   Thu Jul 28 13:18:47 2022 +1000

llvmpipe/gallivm/draw: introduce a buffer type.

In order to do vulkan properly we need to move towards proper descriptor
based operations for the shader.

This is a bit of a precursor, this consolidates the ubo/ssbo stuff into
a buffer type and uses that in the backend.

Reviewed-by: Roland Scheidegger <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17783>

---

 src/gallium/auxiliary/draw/draw_llvm.c             | 113 +++++++-------------
 src/gallium/auxiliary/draw/draw_llvm.h             | 115 +++++++--------------
 .../draw/draw_pt_fetch_shade_pipeline_llvm.c       |  52 +++++-----
 src/gallium/auxiliary/gallivm/lp_bld_jit_types.c   | 105 +++++++++++++++++++
 src/gallium/auxiliary/gallivm/lp_bld_jit_types.h   |  56 ++++++++++
 src/gallium/auxiliary/gallivm/lp_bld_nir.h         |   2 -
 src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c     |  15 ++-
 src/gallium/auxiliary/gallivm/lp_bld_tgsi.h        |   2 -
 src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c    |  18 ++--
 src/gallium/auxiliary/meson.build                  |   2 +
 src/gallium/drivers/llvmpipe/lp_jit.c              |  36 ++-----
 src/gallium/drivers/llvmpipe/lp_jit.h              |  29 +-----
 src/gallium/drivers/llvmpipe/lp_linear.c           |   4 +-
 src/gallium/drivers/llvmpipe/lp_setup.c            |  14 +--
 src/gallium/drivers/llvmpipe/lp_setup_tri.c        |   2 +-
 src/gallium/drivers/llvmpipe/lp_state_cs.c         |  24 ++---
 src/gallium/drivers/llvmpipe/lp_state_fs.c         |   5 -
 17 files changed, 313 insertions(+), 281 deletions(-)

Diff:   
http://cgit.freedesktop.org/mesa/mesa/diff/?id=a9d8d606ccf3d809a9adfd529be8d1ceaf1dd799

Reply via email to