mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
anv/meta: Initialize blend state for the right attachment
We were always initializing only RT 0. We need to initialize the RT we're creating the clear pipeline for.
This commit is contained in:
parent
05f75a3026
commit
542c38df36
1 changed files with 11 additions and 10 deletions
|
|
@ -280,19 +280,20 @@ create_color_pipeline(struct anv_device *device,
|
|||
.stencilTestEnable = false,
|
||||
};
|
||||
|
||||
VkPipelineColorBlendAttachmentState blend_attachment_state[MAX_RTS] = { 0 };
|
||||
blend_attachment_state[frag_output] = (VkPipelineColorBlendAttachmentState) {
|
||||
.blendEnable = false,
|
||||
.colorWriteMask = VK_COLOR_COMPONENT_A_BIT |
|
||||
VK_COLOR_COMPONENT_R_BIT |
|
||||
VK_COLOR_COMPONENT_G_BIT |
|
||||
VK_COLOR_COMPONENT_B_BIT,
|
||||
};
|
||||
|
||||
const VkPipelineColorBlendStateCreateInfo cb_state = {
|
||||
.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO,
|
||||
.logicOpEnable = false,
|
||||
.attachmentCount = 1,
|
||||
.pAttachments = (VkPipelineColorBlendAttachmentState []) {
|
||||
{
|
||||
.blendEnable = false,
|
||||
.colorWriteMask = VK_COLOR_COMPONENT_A_BIT |
|
||||
VK_COLOR_COMPONENT_R_BIT |
|
||||
VK_COLOR_COMPONENT_G_BIT |
|
||||
VK_COLOR_COMPONENT_B_BIT,
|
||||
},
|
||||
},
|
||||
.attachmentCount = MAX_RTS,
|
||||
.pAttachments = blend_attachment_state
|
||||
};
|
||||
|
||||
/* Disable repclear because we do not want the compiler to replace the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue