aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2016-05-18 22:40:40 -0700
committerFrancisco Jerez <[email protected]>2016-05-27 23:29:05 -0700
commit7d430fc05e8f0a6211fb587f1bc7b2a76ed7de10 (patch)
tree4b4e588d9f0ca803f8b74e5f42d068b88fabe888 /src/mesa/drivers/dri/i965/brw_fs_cse.cpp
parentecd7a7255aa1d6c313ead14e1b472c073c7111ac (diff)
i965/fs: Clean up remaining uses of fs_inst::reads_flag and ::writes_flag.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_cse.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_cse.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
index 159bf5dd6e0..83444b6d615 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -303,10 +303,10 @@ fs_visitor::opt_cse_local(bblock_t *block)
/* Kill all AEB entries that write a different value to or read from
* the flag register if we just wrote it.
*/
- if (inst->writes_flag()) {
+ if (inst->flags_written()) {
bool negate; /* dummy */
- if (entry->generator->reads_flag() ||
- (entry->generator->writes_flag() &&
+ if (entry->generator->flags_read(devinfo) ||
+ (entry->generator->flags_written() &&
!instructions_match(inst, entry->generator, &negate))) {
entry->remove();
ralloc_free(entry);