From: Chia-I Wu Date: Mon, 25 Feb 2019 22:37:55 +0000 (-0800) Subject: turnip: fix tu_cs sub-streams X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59419bb691b2ba6af55146004bf876e7c7face82;p=mesa.git 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. --- 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; } /**