<div dir="ltr"><div>Yes, please!  I can't really comment on patch 1, but 2 and 3 are<br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 12:05 PM, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Last use was in shader_time.<br>
---<br>
 src/mesa/drivers/dri/i965/brw_fs.cpp         | 17 -----------------<br>
 src/mesa/drivers/dri/i965/brw_fs.h           |  5 -----<br>
 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp |  5 -----<br>
 3 files changed, 27 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp<br>
index e6b284b..500484c 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp<br>
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp<br>
@@ -742,7 +742,6 @@ fs_visitor::emit_shader_time_end()<br>
    test->conditional_mod = BRW_CONDITIONAL_Z;<br>
    emit(IF(BRW_PREDICATE_NORMAL));<br>
<br>
-   push_force_uncompressed();<br>
    fs_reg start = shader_start_time;<br>
    start.negate = true;<br>
    fs_reg diff = fs_reg(GRF, virtual_grf_alloc(1), BRW_REGISTER_TYPE_UD, 1);<br>
@@ -759,8 +758,6 @@ fs_visitor::emit_shader_time_end()<br>
    emit(BRW_OPCODE_ELSE);<br>
    emit_shader_time_write(reset_type, fs_reg(1u));<br>
    emit(BRW_OPCODE_ENDIF);<br>
-<br>
-   pop_force_uncompressed();<br>
 }<br>
<br>
 void<br>
@@ -882,19 +879,6 @@ fs_visitor::emit(enum opcode opcode, const fs_reg &dst,<br>
    return emit(new(mem_ctx) fs_inst(opcode, dst, src, sources));<br>
 }<br>
<br>
-void<br>
-fs_visitor::push_force_uncompressed()<br>
-{<br>
-   force_uncompressed_stack++;<br>
-}<br>
-<br>
-void<br>
-fs_visitor::pop_force_uncompressed()<br>
-{<br>
-   force_uncompressed_stack--;<br>
-   assert(force_uncompressed_stack >= 0);<br>
-}<br>
-<br>
 /**<br>
  * Returns true if the instruction has a flag that means it won't<br>
  * update an entire destination register.<br>
@@ -3637,7 +3621,6 @@ fs_visitor::run()<br>
          }<br>
       }<br>
    }<br>
-   assert(force_uncompressed_stack == 0);<br>
<br>
    /* This must come after all optimization and register allocation, since<br>
     * it inserts dead code that happens to have side effects, and it does<br>
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h<br>
index 67956bc..d9150c3 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_fs.h<br>
+++ b/src/mesa/drivers/dri/i965/brw_fs.h<br>
@@ -453,9 +453,6 @@ public:<br>
    void lower_uniform_pull_constant_loads();<br>
    bool lower_load_payload();<br>
<br>
-   void push_force_uncompressed();<br>
-   void pop_force_uncompressed();<br>
-<br>
    void emit_dummy_fs();<br>
    void emit_repclear_shader();<br>
    fs_reg *emit_fragcoord_interpolation(ir_variable *ir);<br>
@@ -680,8 +677,6 @@ public:<br>
    bool spilled_any_registers;<br>
<br>
    const unsigned dispatch_width; /**< 8 or 16 */<br>
-<br>
-   int force_uncompressed_stack;<br>
 };<br>
<br>
 /**<br>
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp<br>
index 3fc9e39..4e1badd 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp<br>
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp<br>
@@ -2921,9 +2921,6 @@ fs_visitor::emit_untyped_surface_read(unsigned surf_index, fs_reg dst,<br>
 fs_inst *<br>
 fs_visitor::emit(fs_inst *inst)<br>
 {<br>
-   if (force_uncompressed_stack > 0)<br>
-      inst->exec_size = 8;<br>
-<br>
    if (dispatch_width == 16 && inst->exec_size == 8)<br>
       inst->force_uncompressed = true;<br>
<br>
@@ -3469,8 +3466,6 @@ fs_visitor::init()<br>
    this->pull_constant_loc = NULL;<br>
    this->push_constant_loc = NULL;<br>
<br>
-   this->force_uncompressed_stack = 0;<br>
-<br>
    this->spilled_any_registers = false;<br>
    this->do_dual_src = false;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.0.4<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>