summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_shader.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2014-05-07 09:58:43 +0200
committerMatt Turner <[email protected]>2014-05-13 22:33:59 -0700
commit520dfa4b5c64a09bb34c7e912b102fb99aef7699 (patch)
tree84d429039ff26a3a037cf02265d029bd6bee7592 /src/mesa/drivers/dri/i965/brw_shader.h
parent0c0bbe77d0f92acf34c4582207b9def2e2fe308d (diff)
i965: Relax accumulator dependency scheduling on Gen < 6
Many instructions implicitly update the accumulator on Gen < 6. The instruction scheduling code just calls add_barrier_deps() for each accumulator access on these platforms, but a large class of operations don't actually update the accumulator -- mostly move and logical instructions. Teaching the scheduling code about this would allow more flexibility to schedule instructions. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77740 Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_shader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h
index e730ed02b18..5ae4092ac87 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.h
+++ b/src/mesa/drivers/dri/i965/brw_shader.h
@@ -48,6 +48,7 @@ public:
bool can_do_source_mods() const;
bool can_do_saturate() const;
bool reads_accumulator_implicitly() const;
+ bool writes_accumulator_implicitly(int gen) const;
/**
* True if the instruction has side effects other than writing to