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

Author: Nicolai Hähnle <[email protected]>
Date:   Wed Sep  6 11:49:12 2017 +0200

st/glsl_to_tgsi: remove unused code in temprename

Reviewed-By: Gert Wollny <[email protected]>
Tested-by: Dieter Nützel <[email protected]>

---

 src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp 
b/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp
index c0c0aaa02f..374393bb86 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp
@@ -107,11 +107,9 @@ public:
    bool is_loop() const;
    bool is_in_loop() const;
    bool is_conditional() const;
-   bool is_conditional_in_loop() const;
 
    bool break_is_for_switchcase() const;
    bool contains_range_of(const prog_scope& other) const;
-   const st_src_reg *switch_register() const;
 
    void set_end(int end);
    void set_loop_break_line(int line);
@@ -124,7 +122,6 @@ private:
    int scope_end;
    int break_loop_line;
    prog_scope *parent_scope;
-   const st_src_reg *switch_reg;
 };
 
 /* Some storage class to encapsulate the prog_scope (de-)allocations */
@@ -201,8 +198,7 @@ prog_scope::prog_scope(prog_scope *parent, prog_scope_type 
type, int id,
    scope_begin(scope_begin),
    scope_end(-1),
    break_loop_line(numeric_limits<int>::max()),
-   parent_scope(parent),
-   switch_reg(nullptr)
+   parent_scope(parent)
 {
 }
 
@@ -237,11 +233,6 @@ bool prog_scope::is_in_loop() const
    return false;
 }
 
-bool prog_scope::is_conditional_in_loop() const
-{
-   return is_conditional() && is_in_loop();
-}
-
 const prog_scope *prog_scope::innermost_loop() const
 {
    if (scope_type == loop_body)
@@ -303,11 +294,6 @@ const prog_scope *prog_scope::in_ifelse_scope() const
    return nullptr;
 }
 
-const st_src_reg *prog_scope::switch_register() const
-{
-   return switch_reg;
-}
-
 const prog_scope *prog_scope::in_switchcase_scope() const
 {
    if (scope_type == switch_case_branch ||

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to