summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2016-03-12 21:16:03 -0800
committerMatt Turner <mattst88@gmail.com>2016-03-30 19:54:30 -0700
commit4fea98991c8f94f14e469d4621eddc5247d4efbd (patch)
tree05861b6c96adffedd7cf737a6d33462857c2e6be
parent3495265158cce55d24a7a7f38a0a40d8c9448d38 (diff)
i965: Don't add barrier deps for FB write messages.
Ken did this earlier, and this is just me reimplementing his patch a little differently. Reviewed-by: Francisco Jerez <currojerez@riseup.net>
-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 befa9ff323..8d92584373 100644
--- a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
@@ -897,7 +897,8 @@ is_scheduling_barrier(const fs_inst *inst)
{
return inst->opcode == FS_OPCODE_PLACEHOLDER_HALT ||
inst->is_control_flow() ||
- inst->has_side_effects();
+ inst->eot ||
+ (inst->has_side_effects() && inst->opcode != FS_OPCODE_FB_WRITE);
}
void