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 <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6060>
This commit is contained in:

committed by
Marge Bot

parent
6cbdffd79c
commit
63cf8adb12
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user