aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2019-02-25 14:37:55 -0800
committerChia-I Wu <[email protected]>2019-03-11 10:02:13 -0700
commit59419bb691b2ba6af55146004bf876e7c7face82 (patch)
tree2a9e2573ceead520259d2b0c7d0b9c871eaf7da7 /src/freedreno
parentc0567e84dbbcac5ef52ddd472be2f5bc1e8cdc69 (diff)
turnip: fix tu_cs sub-streams
Update cs->start in tu_cs_end_sub_stream. Otherwise, the entry would include commands from all prior sub-streams.
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/vulkan/tu_cs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_cs.c b/src/freedreno/vulkan/tu_cs.c
index 11e1737d5d3..27fe75b8b50 100644
--- a/src/freedreno/vulkan/tu_cs.c
+++ b/src/freedreno/vulkan/tu_cs.c
@@ -272,11 +272,15 @@ tu_cs_end_sub_stream(struct tu_cs *cs, struct tu_cs *sub_cs)
cs->cur = sub_cs->cur;
- return (struct tu_cs_entry) {
+ struct tu_cs_entry entry = {
.bo = cs->bos[cs->bo_count - 1],
.size = tu_cs_get_size(cs) * sizeof(uint32_t),
.offset = tu_cs_get_offset(cs) * sizeof(uint32_t),
};
+
+ cs->start = cs->cur;
+
+ return entry;
}
/**