summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-07-06 21:31:28 -0700
committerMatt Turner <[email protected]>2014-07-08 11:12:02 -0700
commitcf430408c46745eeb82bfc9a62559bc85d35ded5 (patch)
treefd7cf3d0db7ae12251a87e7945c30ad02bd57fa9 /src
parent099cbc1477ff78cdfbecd5f797b98d624110f779 (diff)
i965: Remove artificial dependency between math instructions.
... on Gen6+. I'm not actually sure which class Gen6 fits into. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
index 10a8f6d5f62..04ac2421342 100644
--- a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
@@ -1356,6 +1356,7 @@ vec4_instruction_scheduler::issue_time(backend_instruction *inst)
void
instruction_scheduler::schedule_instructions(backend_instruction *next_block_header)
{
+ struct brw_context *brw = bv->brw;
time = 0;
/* Remove non-DAG heads from the list. */
@@ -1424,7 +1425,7 @@ instruction_scheduler::schedule_instructions(backend_instruction *next_block_hea
* the next math instruction isn't going to make progress until the first
* is done.
*/
- if (chosen->inst->is_math()) {
+ if (brw->gen < 6 && chosen->inst->is_math()) {
foreach_in_list(schedule_node, n, &instructions) {
if (n->inst->is_math())
n->unblocked_time = MAX2(n->unblocked_time,