tgsi: remove unused tgsi_shader_info.uses_bindless_image_atomic

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24100>
This commit is contained in:
Thomas H.P. Andersen 2023-07-11 18:22:32 +02:00 committed by Marge Bot
parent 67f85d3f45
commit 606db8cc40
3 changed files with 0 additions and 22 deletions

View file

@ -211,9 +211,6 @@ static void scan_instruction(const struct nir_shader *nir,
break;
case nir_intrinsic_bindless_image_atomic:
case nir_intrinsic_bindless_image_atomic_swap:
if (nir_intrinsic_image_dim(intr) != GLSL_SAMPLER_DIM_BUF)
info->uses_bindless_image_atomic = true;
info->writes_memory = true;
break;
case nir_intrinsic_image_deref_atomic:

View file

@ -252,24 +252,6 @@ scan_instruction(struct tgsi_shader_info *info,
case TGSI_OPCODE_ENDLOOP:
(*current_depth)--;
break;
case TGSI_OPCODE_ATOMUADD:
case TGSI_OPCODE_ATOMXCHG:
case TGSI_OPCODE_ATOMCAS:
case TGSI_OPCODE_ATOMAND:
case TGSI_OPCODE_ATOMOR:
case TGSI_OPCODE_ATOMXOR:
case TGSI_OPCODE_ATOMUMIN:
case TGSI_OPCODE_ATOMUMAX:
case TGSI_OPCODE_ATOMIMIN:
case TGSI_OPCODE_ATOMIMAX:
case TGSI_OPCODE_ATOMFADD:
case TGSI_OPCODE_ATOMINC_WRAP:
case TGSI_OPCODE_ATOMDEC_WRAP:
if (tgsi_is_bindless_image_file(fullinst->Src[0].Register.File)) {
if (fullinst->Memory.Texture != TGSI_TEXTURE_BUFFER)
info->uses_bindless_image_atomic = true;
}
break;
case TGSI_OPCODE_FBFETCH:
info->uses_fbfetch = true;
break;

View file

@ -119,7 +119,6 @@ struct tgsi_shader_info
unsigned shader_buffers_load; /**< bitmask of shader buffers using loads */
unsigned shader_buffers_store; /**< bitmask of shader buffers using stores */
unsigned shader_buffers_atomic; /**< bitmask of shader buffers using atomics */
bool uses_bindless_image_atomic;
unsigned hw_atomic_declared; /**< bitmask of declared atomic_counter */
/**