mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 06:10:12 +01:00
tgsi: remove unused tgsi_shader_info.uses_bindless_images
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
7d21d1317f
commit
a481db8f3e
3 changed files with 0 additions and 21 deletions
|
|
@ -203,20 +203,12 @@ static void scan_instruction(const struct nir_shader *nir,
|
|||
info->uses_primid = 1;
|
||||
break;
|
||||
case nir_intrinsic_bindless_image_load:
|
||||
info->uses_bindless_images = true;
|
||||
|
||||
if (nir_intrinsic_image_dim(intr) == GLSL_SAMPLER_DIM_BUF)
|
||||
info->uses_bindless_buffer_load = true;
|
||||
else
|
||||
info->uses_bindless_image_load = true;
|
||||
break;
|
||||
case nir_intrinsic_bindless_image_size:
|
||||
case nir_intrinsic_bindless_image_samples:
|
||||
info->uses_bindless_images = true;
|
||||
break;
|
||||
case nir_intrinsic_bindless_image_store:
|
||||
info->uses_bindless_images = true;
|
||||
|
||||
if (nir_intrinsic_image_dim(intr) == GLSL_SAMPLER_DIM_BUF)
|
||||
info->uses_bindless_buffer_store = true;
|
||||
else
|
||||
|
|
@ -230,8 +222,6 @@ static void scan_instruction(const struct nir_shader *nir,
|
|||
break;
|
||||
case nir_intrinsic_bindless_image_atomic:
|
||||
case nir_intrinsic_bindless_image_atomic_swap:
|
||||
info->uses_bindless_images = true;
|
||||
|
||||
if (nir_intrinsic_image_dim(intr) == GLSL_SAMPLER_DIM_BUF)
|
||||
info->uses_bindless_buffer_atomic = true;
|
||||
else
|
||||
|
|
|
|||
|
|
@ -262,14 +262,8 @@ scan_instruction(struct tgsi_shader_info *info,
|
|||
case TGSI_OPCODE_ENDLOOP:
|
||||
(*current_depth)--;
|
||||
break;
|
||||
case TGSI_OPCODE_RESQ:
|
||||
if (tgsi_is_bindless_image_file(fullinst->Src[0].Register.File))
|
||||
info->uses_bindless_images = true;
|
||||
break;
|
||||
case TGSI_OPCODE_LOAD:
|
||||
if (tgsi_is_bindless_image_file(fullinst->Src[0].Register.File)) {
|
||||
info->uses_bindless_images = true;
|
||||
|
||||
if (fullinst->Memory.Texture == TGSI_TEXTURE_BUFFER)
|
||||
info->uses_bindless_buffer_load = true;
|
||||
else
|
||||
|
|
@ -290,8 +284,6 @@ 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)) {
|
||||
info->uses_bindless_images = true;
|
||||
|
||||
if (fullinst->Memory.Texture == TGSI_TEXTURE_BUFFER)
|
||||
info->uses_bindless_buffer_atomic = true;
|
||||
else
|
||||
|
|
@ -300,8 +292,6 @@ scan_instruction(struct tgsi_shader_info *info,
|
|||
break;
|
||||
case TGSI_OPCODE_STORE:
|
||||
if (tgsi_is_bindless_image_file(fullinst->Dst[0].Register.File)) {
|
||||
info->uses_bindless_images = true;
|
||||
|
||||
if (fullinst->Memory.Texture == TGSI_TEXTURE_BUFFER)
|
||||
info->uses_bindless_buffer_store = true;
|
||||
else
|
||||
|
|
|
|||
|
|
@ -104,7 +104,6 @@ struct tgsi_shader_info
|
|||
bool writes_viewport_index;
|
||||
bool writes_layer;
|
||||
bool writes_memory; /**< contains stores or atomics to buffers or images */
|
||||
bool uses_bindless_images;
|
||||
bool uses_fbfetch;
|
||||
unsigned clipdist_writemask;
|
||||
unsigned culldist_writemask;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue