mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 04:50:34 +01:00
radv: fix fetching conditional rendering state for DGC preprocess
This state must be fetched from the stateCommandBuffer, not from the
current cmdbuf which executes the preprocess().
Partial fix for https://gitlab.freedesktop.org/mesa/mesa/-/issues/13143
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34953>
(cherry picked from commit e2625fa9ca)
This commit is contained in:
parent
05f249ca93
commit
0e15ea9546
2 changed files with 5 additions and 4 deletions
|
|
@ -1844,7 +1844,7 @@
|
|||
"description": "radv: fix fetching conditional rendering state for DGC preprocess",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -2791,6 +2791,7 @@ radv_CmdPreprocessGeneratedCommandsEXT(VkCommandBuffer commandBuffer,
|
|||
VK_FROM_HANDLE(radv_cmd_buffer, state_cmd_buffer, stateCommandBuffer);
|
||||
VK_FROM_HANDLE(radv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
VK_FROM_HANDLE(radv_indirect_command_layout, layout, pGeneratedCommandsInfo->indirectCommandsLayout);
|
||||
const bool execution_is_predicating = state_cmd_buffer->state.predicating;
|
||||
|
||||
assert(layout->vk.usage & VK_INDIRECT_COMMANDS_LAYOUT_USAGE_EXPLICIT_PREPROCESS_BIT_EXT);
|
||||
|
||||
|
|
@ -2800,7 +2801,7 @@ radv_CmdPreprocessGeneratedCommandsEXT(VkCommandBuffer commandBuffer,
|
|||
const bool old_predicating = cmd_buffer->state.predicating;
|
||||
cmd_buffer->state.predicating = false;
|
||||
|
||||
radv_prepare_dgc(cmd_buffer, pGeneratedCommandsInfo, state_cmd_buffer, old_predicating);
|
||||
radv_prepare_dgc(cmd_buffer, pGeneratedCommandsInfo, state_cmd_buffer, execution_is_predicating);
|
||||
|
||||
/* Restore conditional rendering. */
|
||||
cmd_buffer->state.predicating = old_predicating;
|
||||
|
|
@ -2825,8 +2826,8 @@ radv_prepare_dgc_compute(struct radv_cmd_buffer *cmd_buffer, const VkGeneratedCo
|
|||
|
||||
if (cond_render_enabled) {
|
||||
params->predicating = true;
|
||||
params->predication_va = cmd_buffer->state.predication_va;
|
||||
params->predication_type = cmd_buffer->state.predication_type;
|
||||
params->predication_va = state_cmd_buffer->state.predication_va;
|
||||
params->predication_type = state_cmd_buffer->state.predication_type;
|
||||
}
|
||||
|
||||
if (ies) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue