mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
i965/fs: Use reads_flag and writes_flag methods in the scheduler.
Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
20d0297ff2
commit
a93d54eb68
1 changed files with 4 additions and 12 deletions
|
|
@ -645,7 +645,7 @@ fs_instruction_scheduler::calculate_deps()
|
|||
}
|
||||
}
|
||||
|
||||
if (inst->predicate) {
|
||||
if (inst->reads_flag()) {
|
||||
add_dep(last_conditional_mod[inst->flag_subreg], n);
|
||||
}
|
||||
|
||||
|
|
@ -692,11 +692,7 @@ fs_instruction_scheduler::calculate_deps()
|
|||
}
|
||||
}
|
||||
|
||||
/* Treat FS_OPCODE_MOV_DISPATCH_TO_FLAGS as though it had a
|
||||
* conditional_mod, because it sets the flag register.
|
||||
*/
|
||||
if (inst->conditional_mod ||
|
||||
inst->opcode == FS_OPCODE_MOV_DISPATCH_TO_FLAGS) {
|
||||
if (inst->writes_flag()) {
|
||||
add_dep(last_conditional_mod[inst->flag_subreg], n, 0);
|
||||
last_conditional_mod[inst->flag_subreg] = n;
|
||||
}
|
||||
|
|
@ -755,7 +751,7 @@ fs_instruction_scheduler::calculate_deps()
|
|||
}
|
||||
}
|
||||
|
||||
if (inst->predicate) {
|
||||
if (inst->reads_flag()) {
|
||||
add_dep(n, last_conditional_mod[inst->flag_subreg]);
|
||||
}
|
||||
|
||||
|
|
@ -800,11 +796,7 @@ fs_instruction_scheduler::calculate_deps()
|
|||
}
|
||||
}
|
||||
|
||||
/* Treat FS_OPCODE_MOV_DISPATCH_TO_FLAGS as though it had a
|
||||
* conditional_mod, because it sets the flag register.
|
||||
*/
|
||||
if (inst->conditional_mod ||
|
||||
inst->opcode == FS_OPCODE_MOV_DISPATCH_TO_FLAGS) {
|
||||
if (inst->writes_flag()) {
|
||||
last_conditional_mod[inst->flag_subreg] = n;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue