Module: Mesa
Branch: master
Commit: 472361dd7e2f82e3697047776967544348b4012a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=472361dd7e2f82e3697047776967544348b4012a

Author: Marek Olšák <marek.ol...@amd.com>
Date:   Tue Jan 30 17:58:14 2018 +0100

radeonsi: remove unused si_shader_context members

Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>

---

 src/gallium/drivers/radeonsi/si_shader_internal.h   | 4 ----
 src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 7 -------
 2 files changed, 11 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader_internal.h 
b/src/gallium/drivers/radeonsi/si_shader_internal.h
index 489c468f03..00b9b8d16a 100644
--- a/src/gallium/drivers/radeonsi/si_shader_internal.h
+++ b/src/gallium/drivers/radeonsi/si_shader_internal.h
@@ -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];
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c 
b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
index fc141ca1e0..f70e2bdde8 100644
--- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
+++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
@@ -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;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to