From: Jason Ekstrand Date: Fri, 24 Jul 2020 15:04:48 +0000 (-0500) Subject: spirv: Also copy over binding information for atomic counters X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63cf8adb12440512226dddbe3e233bcba87c7c18;p=mesa.git spirv: Also copy over binding information for atomic counters I missed this if statement so atomic counters weren't getting bindings and, when you have more than one of them, that meant they were all getting combined into one. Fixes: 3584cb09bc15 "spirv: Give atomic counters their own variable mode" Reviewed-by: Caio Marcelo de Oliveira Filho Part-of: --- diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index e4013e940ac..2100b481cce 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -2341,7 +2341,8 @@ vtn_create_variable(struct vtn_builder *b, struct vtn_value *val, if (var->mode == vtn_variable_mode_uniform || var->mode == vtn_variable_mode_ubo || - var->mode == vtn_variable_mode_ssbo) { + var->mode == vtn_variable_mode_ssbo || + var->mode == vtn_variable_mode_atomic_counter) { /* XXX: We still need the binding information in the nir_variable * for these. We should fix that. */