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>
This commit is contained in:
Samuel Pitoiset 2025-01-02 18:26:25 +01:00 committed by Marge Bot
parent 76bd7f9265
commit 9b827556f5

View file

@ -13253,11 +13253,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