diff options
author | Rob Clark <[email protected]> | 2016-01-10 14:10:08 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-01-16 14:21:08 -0500 |
commit | fad158a0e01f4c28851477e6d1eb5c8fd67e226b (patch) | |
tree | a6d443345a5ab3fc0ab9a0dcb91ef61982f58b1c /src/gallium/drivers/freedreno/ir3/ir3_depth.c | |
parent | cc7ed34df94a389e60221228896332d0ac8ea6c6 (diff) |
freedreno/ir3: array rework
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3_depth.c')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_depth.c | 4 |
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 4bbc0458790..3354cbd23fa 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); |