radv: fix adding the BO to cmdbuf list when starting conditional rendering

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33403>
(cherry picked from commit 9b827556f5)
This commit is contained in:
Samuel Pitoiset 2025-01-02 18:26:25 +01:00 committed by Eric Engestrom
parent 440f3359a7
commit 765cdedcd0
2 changed files with 4 additions and 1 deletions

View file

@ -14,7 +14,7 @@
"description": "radv: fix adding the BO to cmdbuf list when starting conditional rendering",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -13249,11 +13249,14 @@ radv_CmdBeginConditionalRenderingEXT(VkCommandBuffer commandBuffer,
{
VK_FROM_HANDLE(radv_cmd_buffer, cmd_buffer, commandBuffer);
VK_FROM_HANDLE(radv_buffer, buffer, pConditionalRenderingBegin->buffer);
struct radv_device *device = radv_cmd_buffer_device(cmd_buffer);
bool draw_visible = true;
uint64_t va;
va = radv_buffer_get_va(buffer->bo) + buffer->offset + pConditionalRenderingBegin->offset;
radv_cs_add_buffer(device->ws, cmd_buffer->cs, buffer->bo);
/* By default, if the 32-bit value at offset in buffer memory is zero,
* then the rendering commands are discarded, otherwise they are
* executed as normal. If the inverted flag is set, all commands are