mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 23:18:20 +02:00
tgsi: remove unused tgsi_shader_info.uses_bindless_buffer_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:
parent
33e9189aa1
commit
aa6a3faf75
3 changed files with 2 additions and 7 deletions
|
|
@ -218,9 +218,7 @@ 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_buffer_atomic = true;
|
||||
else
|
||||
if (nir_intrinsic_image_dim(intr) != GLSL_SAMPLER_DIM_BUF)
|
||||
info->uses_bindless_image_atomic = true;
|
||||
|
||||
info->writes_memory = true;
|
||||
|
|
|
|||
|
|
@ -272,9 +272,7 @@ scan_instruction(struct tgsi_shader_info *info,
|
|||
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_buffer_atomic = true;
|
||||
else
|
||||
if (fullinst->Memory.Texture != TGSI_TEXTURE_BUFFER)
|
||||
info->uses_bindless_image_atomic = true;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -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_buffer_atomic;
|
||||
bool uses_bindless_image_load;
|
||||
bool uses_bindless_image_store;
|
||||
bool uses_bindless_image_atomic;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue