radeonsi: remove unused si_shader_context members
authorMarek Olšák <marek.olsak@amd.com>
Tue, 30 Jan 2018 16:58:14 +0000 (17:58 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 1 Feb 2018 15:20:19 +0000 (16:20 +0100)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/radeonsi/si_shader_internal.h
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c

index 489c468f0307d97d02f117db81a75e1e19a67534..00b9b8d16a59dbca3cb66d509469b1bcab13ffd8 100644 (file)
@@ -191,10 +191,6 @@ struct si_shader_context {
 
        LLVMTargetMachineRef tm;
 
-       unsigned range_md_kind;
-       unsigned fpmath_md_kind;
-       LLVMValueRef fpmath_md_2p5_ulp;
-
        /* Preloaded descriptors. */
        LLVMValueRef esgs_ring;
        LLVMValueRef gsvs_ring[4];
index fc141ca1e03cc68be298f4a02d4d450f87190a97..f70e2bdde876ba4d9f4e8d92c79e1cdd9a796c46 100644 (file)
@@ -1194,13 +1194,6 @@ void si_llvm_context_init(struct si_shader_context *ctx,
        bld_base->emit_declaration = emit_declaration;
        bld_base->emit_immediate = emit_immediate;
 
-       /* metadata allowing 2.5 ULP */
-       ctx->fpmath_md_kind = LLVMGetMDKindIDInContext(ctx->ac.context,
-                                                      "fpmath", 6);
-       LLVMValueRef arg = LLVMConstReal(ctx->ac.f32, 2.5);
-       ctx->fpmath_md_2p5_ulp = LLVMMDNodeInContext(ctx->ac.context,
-                                                    &arg, 1);
-
        bld_base->op_actions[TGSI_OPCODE_BGNLOOP].emit = bgnloop_emit;
        bld_base->op_actions[TGSI_OPCODE_BRK].emit = brk_emit;
        bld_base->op_actions[TGSI_OPCODE_CONT].emit = cont_emit;