Mesa (master): i965/fs: Perform CSE on sends-from-GRF rather than textures.
Matt Turner
mattst88 at kemper.freedesktop.org
Tue Jul 15 17:11:39 UTC 2014
Module: Mesa
Branch: master
Commit: 1d97212007ccaea3e98ef5485faeea130776522a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d97212007ccaea3e98ef5485faeea130776522a
Author: Matt Turner <mattst88 at gmail.com>
Date: Thu Jul 10 11:47:44 2014 -0700
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 at whitecape.org>
Tested-by: lu hua <huax.lu at intel.com>
---
src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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();
}
}
More information about the mesa-commit
mailing list