gen8/pipeline: Set IndependentAlphaBlendEnable properly

This commit is contained in:
Jason Ekstrand 2015-11-20 11:52:54 -08:00
parent e69db9159b
commit b43ce6768d
1 changed files with 6 additions and 0 deletions

View File

@ -204,6 +204,12 @@ emit_cb_state(struct anv_pipeline *pipeline,
for (uint32_t i = 0; i < info->attachmentCount; i++) {
const VkPipelineColorBlendAttachmentState *a = &info->pAttachments[i];
if (a->srcBlendColor != a->srcBlendAlpha ||
a->destBlendColor != a->destBlendAlpha ||
a->blendOpColor != a->blendOpAlpha) {
blend_state.IndependentAlphaBlendEnable = true;
}
blend_state.Entry[i] = (struct GEN8_BLEND_STATE_ENTRY) {
.LogicOpEnable = info->logicOpEnable,
.LogicOpFunction = vk_to_gen_logic_op[info->logicOp],