glsl: add support for named varyings in nir_build_program_resource_list()
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 22 Oct 2019 03:59:27 +0000 (14:59 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 13 Dec 2019 00:07:19 +0000 (00:07 +0000)
commit46f9f74c574abfdecea6a789380d7a00540e69d7
treec17a6d7957238d1a76e0e895b73fc50c6a3e0864
parent3c364f90fd0a33004faba46ecc100983cda64cb9
glsl: add support for named varyings in nir_build_program_resource_list()

This adds support for adding names of varying to the resource list
which is required for us to use this function with the glsl linker.
Support for names is optional for spirv which is why it had not been
added yet.

This is mostly a copy of the GLSL IR code adapted to nir.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/gl_nir_linker.c