radv/gfx11: increase radeon_check_space for occlusion query begin
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 11 Jan 2023 20:03:08 +0000 (20:03 +0000)
committerEric Engestrom <eric@engestrom.ch>
Thu, 26 Jan 2023 15:40:29 +0000 (15:40 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20652>
(cherry picked from commit 9112fe3c76db55ce73ce89e736bd8bc4f8977218)

.pick_status.json
src/amd/vulkan/radv_query.c

index b64a2f7..59d7966 100644 (file)
         "description": "radv/gfx11: increase radeon_check_space for occlusion query begin",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null
     },
index 389e593..157f370 100644 (file)
@@ -1747,7 +1747,7 @@ emit_begin_query(struct radv_cmd_buffer *cmd_buffer, struct radv_query_pool *poo
    struct radeon_cmdbuf *cs = cmd_buffer->cs;
    switch (query_type) {
    case VK_QUERY_TYPE_OCCLUSION:
-      radeon_check_space(cmd_buffer->device->ws, cs, 7);
+      radeon_check_space(cmd_buffer->device->ws, cs, 11);
 
       ++cmd_buffer->state.active_occlusion_queries;
       if (cmd_buffer->state.active_occlusion_queries == 1) {