summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3/ir3_depth.c
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2016-01-10 14:10:08 -0500
committerRob Clark <robclark@freedesktop.org>2016-01-16 14:21:08 -0500
commitfad158a0e01f4c28851477e6d1eb5c8fd67e226b (patch)
treea6d443345a5ab3fc0ab9a0dcb91ef61982f58b1c /src/gallium/drivers/freedreno/ir3/ir3_depth.c
parentcc7ed34df94a389e60221228896332d0ac8ea6c6 (diff)
downloadexternal_mesa3d-fad158a0e01f4c28851477e6d1eb5c8fd67e226b.tar.gz
external_mesa3d-fad158a0e01f4c28851477e6d1eb5c8fd67e226b.tar.bz2
external_mesa3d-fad158a0e01f4c28851477e6d1eb5c8fd67e226b.zip
freedreno/ir3: array rework
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3_depth.c')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_depth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_depth.c b/src/gallium/drivers/freedreno/ir3/ir3_depth.c
index 4bbc045879..3354cbd23f 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_depth.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_depth.c
@@ -118,6 +118,10 @@ ir3_instr_depth(struct ir3_instruction *instr)
/* visit child to compute it's depth: */
ir3_instr_depth(src);
+ /* for array writes, no need to delay on previous write: */
+ if (i == 0)
+ continue;
+
sd = ir3_delayslots(src, instr, i) + src->depth;
instr->depth = MAX2(instr->depth, sd);