summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-07-10 11:47:44 -0700
committerMatt Turner <mattst88@gmail.com>2014-07-15 10:12:29 -0700
commit1d97212007ccaea3e98ef5485faeea130776522a (patch)
tree9f27699636ec75503683766436f915ec24e486d1 /src
parent103716a8629858f6af32a3a6b195a4dc78c356d2 (diff)
downloadexternal_mesa3d-1d97212007ccaea3e98ef5485faeea130776522a.zip
external_mesa3d-1d97212007ccaea3e98ef5485faeea130776522a.tar.gz
external_mesa3d-1d97212007ccaea3e98ef5485faeea130776522a.tar.bz2
i965/fs: Perform CSE on sends-from-GRF rather than textures.
Should potentially allow a few more cases, while avoiding doing CSE on texture operations on Gen <= 6 with the MRF. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80211 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: lu hua <huax.lu@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_cse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
index 92c7495..d435d84 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -103,7 +103,7 @@ is_expression(const fs_inst *const inst)
case SHADER_OPCODE_LOAD_PAYLOAD:
return !is_copy_payload(inst);
default:
- return inst->is_tex();
+ return inst->is_send_from_grf();
}
}