tu: Reset xfb_used at the end of a renderpass

Otherwise xfb_used could be true until the end of command buffer,
which is not what we intended it to be.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17162>
This commit is contained in:
Danylo Piliaiev 2022-06-21 12:46:49 +03:00 committed by Marge Bot
parent 086faecbba
commit 909e7aaf57
1 changed files with 1 additions and 0 deletions

View File

@ -4959,6 +4959,7 @@ tu_CmdEndRenderPass2(VkCommandBuffer commandBuffer,
cmd_buffer->state.attachments = NULL;
cmd_buffer->state.has_tess = false;
cmd_buffer->state.has_subpass_predication = false;
cmd_buffer->state.xfb_used = false;
cmd_buffer->state.disable_gmem = false;
cmd_buffer->state.drawcall_count = 0;
cmd_buffer->state.drawcall_bandwidth_per_sample_sum = 0;