gallivm/nir: add load push constant support
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 06:51:50 +0000 (16:51 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 17 Aug 2020 04:30:49 +0000 (14:30 +1000)
commit3abf548270bbe92aea17b976397813ba763f4ea0
treeb33e9a8700c0504c51fc71225e3d62684365badb
parent94e4a17f29b5f487213b37e8376eadd87308856a
gallivm/nir: add load push constant support

This convets the push constant load to a ubo load against the 0 constant buffer,
which is where the vallium layer will bind things.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6082>
src/gallium/auxiliary/gallivm/lp_bld_nir.c