mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
zink: always set color writes on the unordered cmdbuf
this state has to be set, so ensure it is Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21739>
This commit is contained in:
parent
8e3ee9aad6
commit
20c9cfb30f
1 changed files with 1 additions and 0 deletions
|
|
@ -3064,6 +3064,7 @@ reapply_color_write(struct zink_context *ctx)
|
|||
const VkBool32 disables[PIPE_MAX_COLOR_BUFS] = {0};
|
||||
const unsigned max_att = MIN2(PIPE_MAX_COLOR_BUFS, screen->info.props.limits.maxColorAttachments);
|
||||
VKCTX(CmdSetColorWriteEnableEXT)(ctx->batch.state->cmdbuf, max_att, ctx->disable_color_writes ? disables : enables);
|
||||
VKCTX(CmdSetColorWriteEnableEXT)(ctx->batch.state->barrier_cmdbuf, max_att, enables);
|
||||
}
|
||||
if (screen->info.have_EXT_extended_dynamic_state && ctx->dsa_state)
|
||||
VKCTX(CmdSetDepthWriteEnableEXT)(ctx->batch.state->cmdbuf, ctx->disable_color_writes ? VK_FALSE : ctx->dsa_state->hw_state.depth_write);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue