[Mesa-dev] [PATCH] i965/fs: Remove dead code from generate_uniform_pull_constant_load_gen7.

Kenneth Graunke kenneth at whitecape.org
Sun Jan 6 23:40:45 PST 2013


generate_uniform_pull_constant_load_gen7() is only called on Gen7+, so
the gen < 6 code is dead.
---
 src/mesa/drivers/dri/i965/brw_fs_emit.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
index 63f09fe..3059934 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
@@ -687,8 +687,6 @@ fs_generator::generate_uniform_pull_constant_load_gen7(fs_inst *inst,
 
    brw_set_dest(p, send, dst);
    brw_set_src0(p, send, offset);
-   if (intel->gen < 6)
-      send->header.destreg__conditionalmod = inst->base_mrf;
 
    uint32_t msg_control = BRW_DATAPORT_OWORD_BLOCK_2_OWORDS;
    uint32_t msg_type = BRW_DATAPORT_READ_MESSAGE_OWORD_BLOCK_READ;
-- 
1.8.1



More information about the mesa-dev mailing list