v3dv/pipeline: adding some nir-based linking
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 17 Jan 2020 12:36:22 +0000 (13:36 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:26 +0000 (21:21 +0000)
commit1ae844c1c899d7fa7bb2a20a5dfa733bc2450f6a
treea45327d63141f4e80d3c5781fe825ab36a50b46f
parentdc45d57c386fec2d3c5efae91242a891fd66d4d0
v3dv/pipeline: adding some nir-based linking

Among other things, gets a constants output from a vs, used as input
to a fs, to get lowered and moved as a load const on the fs.

Heavily based on st_glsl_to_nir, already used by the v3d
driver. Slightly adapted to our needs, but there are still room for
customization.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_pipeline.c