summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen8_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-20 11:52:54 -0800
committerJason Ekstrand <[email protected]>2015-11-20 11:52:54 -0800
commitb43ce6768dcaa143f143bda59beb7794cc6bd7b3 (patch)
treeddc7028f18ee1c726ce3806b1c6c257a83fdcd02 /src/vulkan/gen8_pipeline.c
parente69db9159b6f4d405d152012daa9da72f4f321e8 (diff)
gen8/pipeline: Set IndependentAlphaBlendEnable properly
Diffstat (limited to 'src/vulkan/gen8_pipeline.c')
-rw-r--r--src/vulkan/gen8_pipeline.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vulkan/gen8_pipeline.c b/src/vulkan/gen8_pipeline.c
index 2baa5c5f31d..618774eda6e 100644
--- a/src/vulkan/gen8_pipeline.c
+++ b/src/vulkan/gen8_pipeline.c
@@ -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],