mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
tu: Prevent dangling start_sysmem_clear_all tracepoint
We may exit early from tu_clear_sysmem_attachments without end_ tracepoint. Move the start_ tracepoint to fix that. Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37162>
This commit is contained in:
parent
482e0d0d1e
commit
902cebc9f0
1 changed files with 2 additions and 2 deletions
|
|
@ -4012,8 +4012,6 @@ tu_clear_sysmem_attachments(struct tu_cmd_buffer *cmd,
|
|||
bool z_clear = false;
|
||||
bool s_clear = false;
|
||||
|
||||
trace_start_sysmem_clear_all(&cmd->rp_trace, cs, cmd, mrt_count, rect_count);
|
||||
|
||||
for (uint32_t i = 0; i < attachment_count; i++) {
|
||||
uint32_t a;
|
||||
if (attachments[i].aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) {
|
||||
|
|
@ -4049,6 +4047,8 @@ tu_clear_sysmem_attachments(struct tu_cmd_buffer *cmd,
|
|||
if (clear_rts == 0 && !z_clear && !s_clear)
|
||||
return;
|
||||
|
||||
trace_start_sysmem_clear_all(&cmd->rp_trace, cs, cmd, mrt_count, rect_count);
|
||||
|
||||
/* disable all draw states so they don't interfere
|
||||
* TODO: use and re-use draw states
|
||||
* we have to disable draw states individually to preserve
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue