From 908441e0ee97ddb8a934343dc6a706bb3b867c58 Mon Sep 17 00:00:00 2001 From: "Thomas H.P. Andersen" Date: Tue, 11 Jul 2023 18:22:28 +0200 Subject: [PATCH] tgsi: remove unused tgsi_shader_info.uses_doubles Reviewed-by: Charmaine Lee Reviewed-by: Christian Gmeiner Part-of: --- src/gallium/auxiliary/tgsi/tgsi_scan.c | 10 ---------- src/gallium/auxiliary/tgsi/tgsi_scan.h | 1 - 2 files changed, 11 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 459b868..6629753 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -362,16 +362,6 @@ scan_instruction(struct tgsi_shader_info *info, break; } - if ((fullinst->Instruction.Opcode >= TGSI_OPCODE_F2D && - fullinst->Instruction.Opcode <= TGSI_OPCODE_DSSG) || - fullinst->Instruction.Opcode == TGSI_OPCODE_DFMA || - fullinst->Instruction.Opcode == TGSI_OPCODE_DDIV || - fullinst->Instruction.Opcode == TGSI_OPCODE_D2U64 || - fullinst->Instruction.Opcode == TGSI_OPCODE_D2I64 || - fullinst->Instruction.Opcode == TGSI_OPCODE_U642D || - fullinst->Instruction.Opcode == TGSI_OPCODE_I642D) - info->uses_doubles = true; - for (i = 0; i < fullinst->Instruction.NumSrcRegs; i++) { scan_src_operand(info, fullinst, &fullinst->Src[i], i, tgsi_util_get_inst_usage_mask(fullinst, i), diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h index 131cc5a..80d67e4 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h @@ -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_doubles; /**< uses any of the double instructions */ bool uses_derivatives; bool uses_bindless_samplers; bool uses_bindless_images; -- 2.7.4