nir/linker: update already processed uniforms search for UBOs/SSBOs
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 1 Sep 2018 11:18:24 +0000 (13:18 +0200)
committerArcady Goldmints-Orlov <agoldmints@igalia.com>
Sun, 30 Jun 2019 21:58:27 +0000 (16:58 -0500)
commita69a48d65a60f48ef7b0d5aa056d6a57c8cf71ed
treec0efc25ee80b50be4b7bcecbda61bf740199bd25
parentde05a6ccf59b429629a4e7b93fbe2eaf5960325d
nir/linker: update already processed uniforms search for UBOs/SSBOs

Until now, we were using the uniform explicit location to check if the
current nir variable was already processed while adding entries on the
uniform storage. But for UBOs/SSBOs, entries are added too but we lack
a explicit location.

For those we need to rely on the UBO/SSBO binding and the unifor
storage block_index. In that case several uniforms would need to be
updated at once.

v2: (from Timothy review)
   * Improve wording and fix typos of some long comments.
   * Rename update_uniform_storage for mark_stage_as_active

v3: (from cmarcelo review)
   * Fixed some comment typos

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/gl_nir_link_uniforms.c