venus: suppress a false logging

Should only log when there's batched query feedbacks in the suspended
render pass instance. Additionally gate behind debug option.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24379>
This commit is contained in:
Yiwei Zhang 2023-07-28 22:35:46 -07:00 committed by Marge Bot
parent 99aeea467b
commit 03ff3c0027

View file

@ -692,7 +692,7 @@ vn_cmd_end_rendering(struct vn_command_buffer *cmd)
*/
if (!cmd->builder.suspending)
vn_cmd_record_batched_query_feedback(cmd);
else
else if (VN_DEBUG(RESULT) && !list_is_empty(&cmd->builder.query_batches))
vn_log(cmd->pool->device->instance, "query dropped by suspended pass");
cmd->builder.in_render_pass = false;