turnip: fix COND_EXEC reserved size in tu_query
authorJonathan Marek <jonathan@marek.ca>
Mon, 24 Feb 2020 15:26:02 +0000 (10:26 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 21:52:45 +0000 (21:52 +0000)
Conditionally executed dwords must be in the same bo.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3925>

src/freedreno/vulkan/tu_query.c

index 7931a449fb5709bfee308d264b7f3507c996a630..5e3e2c1893a071948dd2cd86682c5cb6085c68d9 100644 (file)
@@ -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);