tgsi: remove unused tgsi_shader_info.uses_bindless_samplers

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:29 +02:00 committed by Marge Bot
parent 395a2409cb
commit 7d21d1317f
3 changed files with 0 additions and 25 deletions

View file

@ -166,10 +166,6 @@ static void scan_instruction(const struct nir_shader *nir,
if (instr->type == nir_instr_type_tex) {
nir_tex_instr *tex = nir_instr_as_tex(instr);
const nir_variable *texture = tex_get_texture_var(tex);
if (texture && texture->data.bindless)
info->uses_bindless_samplers = true;
switch (tex->op) {
case nir_texop_tex:

View file

@ -247,7 +247,6 @@ scan_instruction(struct tgsi_shader_info *info,
{
unsigned i;
bool is_mem_inst = false;
unsigned sampler_src;
assert(fullinst->Instruction.Opcode < TGSI_OPCODE_LAST);
info->opcode_count[fullinst->Instruction.Opcode]++;
@ -263,25 +262,6 @@ scan_instruction(struct tgsi_shader_info *info,
case TGSI_OPCODE_ENDLOOP:
(*current_depth)--;
break;
case TGSI_OPCODE_TEX:
case TGSI_OPCODE_TEX_LZ:
case TGSI_OPCODE_TXB:
case TGSI_OPCODE_TXD:
case TGSI_OPCODE_TXL:
case TGSI_OPCODE_TXP:
case TGSI_OPCODE_TXQ:
case TGSI_OPCODE_TXQS:
case TGSI_OPCODE_TXF:
case TGSI_OPCODE_TXF_LZ:
case TGSI_OPCODE_TEX2:
case TGSI_OPCODE_TXB2:
case TGSI_OPCODE_TXL2:
case TGSI_OPCODE_TG4:
case TGSI_OPCODE_LODQ:
sampler_src = fullinst->Instruction.NumSrcRegs - 1;
if (fullinst->Src[sampler_src].Register.File != TGSI_FILE_SAMPLER)
info->uses_bindless_samplers = true;
break;
case TGSI_OPCODE_RESQ:
if (tgsi_is_bindless_image_file(fullinst->Src[0].Register.File))
info->uses_bindless_images = true;

View file

@ -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_samplers;
bool uses_bindless_images;
bool uses_fbfetch;
unsigned clipdist_writemask;