panvk/csf: no need to sb wait on query copy

When VK_QUERY_RESULT_WAIT_BIT is set, we rely on sync wait.  When
VK_QUERY_RESULT_WAIT_BIT is not set, no wait is needed.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32697>
This commit is contained in:
Chia-I Wu
2024-12-18 15:59:00 -08:00
committed by Marge Bot
parent d04437845f
commit 8948ca1024

View File

@@ -113,10 +113,7 @@ panvk_copy_occlusion_query_results(struct panvk_cmd_buffer *cmd,
unsigned result_stride =
flags & VK_QUERY_RESULT_64_BIT ? sizeof(uint64_t) : sizeof(uint32_t);
/* First wait for deferred sync or flush to be completed */
struct cs_builder *b = panvk_get_cs_builder(cmd, PANVK_SUBQUEUE_FRAGMENT);
cs_wait_slots(b, SB_MASK(DEFERRED_SYNC) | SB_MASK(DEFERRED_FLUSH), false);
struct cs_index scratch_addr0 = cs_scratch_reg64(b, 0);
struct cs_index scratch_addr1 = cs_scratch_reg64(b, 2);
struct cs_index scratch_val0 = cs_scratch_reg32(b, 4);