diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index ecb3706edda..5fab72eb626 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -663,6 +663,10 @@ scan_declaration(struct tgsi_shader_info *info, info->shader_buffers_declared |= 1u << reg; break; + case TGSI_FILE_HW_ATOMIC: + info->hw_atomic_declared |= 1u << reg; + break; + case TGSI_FILE_INPUT: info->input_semantic_name[reg] = (ubyte) semName; info->input_semantic_index[reg] = (ubyte) semIndex; diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h index ace5b08872d..076c138e4a0 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h @@ -164,6 +164,7 @@ struct tgsi_shader_info bool uses_bindless_image_store; bool uses_bindless_image_atomic; + unsigned hw_atomic_declared; /**< bitmask of declared atomic_counter */ /** * Bitmask indicating which register files are accessed with * indirect addressing. The bits are (1 << TGSI_FILE_x), etc.