i965/vec4: Make vec4_visitor::implied_mrf_writes() return zero for sends from GRF.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 5 Feb 2015 20:58:03 +0000 (22:58 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 10 Feb 2015 17:09:24 +0000 (19:09 +0200)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index 5ad9da2..48b2a69 100644 (file)
@@ -287,7 +287,7 @@ vec4_instruction::can_do_source_mods(struct brw_context *brw)
 int
 vec4_visitor::implied_mrf_writes(vec4_instruction *inst)
 {
-   if (inst->mlen == 0)
+   if (inst->mlen == 0 || inst->is_send_from_grf())
       return 0;
 
    switch (inst->opcode) {