nir/linker: Add a pure NIR implementation of the atomic counter linker
authorNeil Roberts <nroberts@igalia.com>
Tue, 28 Nov 2017 12:39:44 +0000 (13:39 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 3 Jul 2018 10:41:46 +0000 (12:41 +0200)
commit6677e131b806b10754adcb7cf3f427a7fcc2aa09
tree90de6bec0f602da1534a0cc4089e2b3041821dba
parent1fb9984d7e6d93fb174ff1fb57d2b3b8eda45515
nir/linker: Add a pure NIR implementation of the atomic counter linker

This is mostly just a straight-forward conversion of
link_assign_atomic_counter_resources to C directly using nir variables
instead of GLSL IR variables.

It is based on the version of link_assign_atomic_counter_resources in
6b8909f2d1906. I’m noting this here to make it easier to track changes
and keep the NIR version up-to-date.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/Makefile.sources
src/compiler/glsl/gl_nir_link_atomics.c [new file with mode: 0644]
src/compiler/glsl/gl_nir_linker.h
src/compiler/glsl/meson.build