tgsi: Add hw_atomic_declared in tgsi_info

This patch also adds hw_atomic_declared info in tgsi_info.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14270>
This commit is contained in:
Neha Bhende 2021-12-15 17:01:56 -08:00 committed by Marge Bot
parent dc512f11ea
commit 533a09541d
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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.