From: Jonathan Marek Date: Mon, 24 Feb 2020 15:26:02 +0000 (-0500) Subject: turnip: fix COND_EXEC reserved size in tu_query X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9a990a60b4669bd0af920a060d87a8e3551058e;p=mesa.git turnip: fix COND_EXEC reserved size in tu_query Conditionally executed dwords must be in the same bo. Signed-off-by: Jonathan Marek Reviewed-by: Eric Anholt Part-of: --- diff --git a/src/freedreno/vulkan/tu_query.c b/src/freedreno/vulkan/tu_query.c index 7931a449fb5..5e3e2c1893a 100644 --- a/src/freedreno/vulkan/tu_query.c +++ b/src/freedreno/vulkan/tu_query.c @@ -356,7 +356,7 @@ emit_copy_occlusion_query_pool_results(struct tu_cmd_buffer *cmdbuf, * tests that ADDR0 != 0 and ADDR1 < REF. The packet here simply tests * that 0 < available < 2, aka available == 1. */ - tu_cs_reserve_space(cmdbuf->device, cs, 7); + tu_cs_reserve_space(cmdbuf->device, cs, 7 + 6); tu_cs_emit_pkt7(cs, CP_COND_EXEC, 6); tu_cs_emit_qw(cs, available_iova); tu_cs_emit_qw(cs, available_iova);