Mesa (master): i965/fs: Get rid of an unused variable in emit_barrier()

Jason Ekstrand jekstrand at kemper.freedesktop.org
Wed Jun 24 00:06:41 UTC 2015


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

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue Jun 23 15:39:42 2015 -0700

i965/fs: Get rid of an unused variable in emit_barrier()

Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

---

 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index ea29341..9a4bad6 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -1963,11 +1963,11 @@ fs_visitor::emit_barrier()
    fs_reg payload = fs_reg(GRF, alloc.allocate(1), BRW_REGISTER_TYPE_UD);
 
    /* Clear the message payload */
-   fs_inst *inst = bld.exec_all().MOV(payload, fs_reg(0u));
+   bld.exec_all().MOV(payload, fs_reg(0u));
 
    /* Copy bits 27:24 of r0.2 (barrier id) to the message payload reg.2 */
    fs_reg r0_2 = fs_reg(retype(brw_vec1_grf(0, 2), BRW_REGISTER_TYPE_UD));
-   inst = bld.exec_all().AND(component(payload, 2), r0_2, fs_reg(0x0f000000u));
+   bld.exec_all().AND(component(payload, 2), r0_2, fs_reg(0x0f000000u));
 
    /* Emit a gateway "barrier" message using the payload we set up, followed
     * by a wait instruction.




More information about the mesa-commit mailing list