Mesa (master): i965/vec4: Don' t attempt to reduce swizzles of send from GRF instructions.

Francisco Jerez currojerez at kemper.freedesktop.org
Thu Feb 19 12:20:11 UTC 2015


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

Author: Francisco Jerez <currojerez at riseup.net>
Date:   Tue Feb  3 20:34:17 2015 +0200

i965/vec4: Don't attempt to reduce swizzles of send from GRF instructions.

Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/mesa/drivers/dri/i965/brw_vec4.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 58828c3..0a68413 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -455,7 +455,8 @@ vec4_visitor::opt_reduce_swizzle()
    bool progress = false;
 
    foreach_block_and_inst_safe(block, vec4_instruction, inst, cfg) {
-      if (inst->dst.file == BAD_FILE || inst->dst.file == HW_REG)
+      if (inst->dst.file == BAD_FILE || inst->dst.file == HW_REG ||
+          inst->is_send_from_grf())
          continue;
 
       int swizzle[4];




More information about the mesa-commit mailing list