mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
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:
parent
440f3359a7
commit
765cdedcd0
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue