summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-17 11:54:42 -0800
committerJason Ekstrand <[email protected]>2016-02-17 18:04:39 -0800
commit9f9cd3de44feb83dc36f4947c81390358e448cc8 (patch)
tree380a11f656686890d26b8adfef5372b3d2ce8144
parentda9fd74d34478a24e1a607dd612a90e1ecb40a7d (diff)
anv/gen8_pipeline: Default color attachments to WriteDisable = true
-rw-r--r--src/vulkan/gen8_pipeline.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vulkan/gen8_pipeline.c b/src/vulkan/gen8_pipeline.c
index c41d6ffa82e..eec3f7aafdd 100644
--- a/src/vulkan/gen8_pipeline.c
+++ b/src/vulkan/gen8_pipeline.c
@@ -158,6 +158,13 @@ emit_cb_state(struct anv_pipeline *pipeline,
}
}
+ for (uint32_t i = info->attachmentCount; i < 8; i++) {
+ blend_state.Entry[i].WriteDisableAlpha = true;
+ blend_state.Entry[i].WriteDisableRed = true;
+ blend_state.Entry[i].WriteDisableGreen = true;
+ blend_state.Entry[i].WriteDisableBlue = true;
+ }
+
GENX(BLEND_STATE_pack)(NULL, pipeline->blend_state.map, &blend_state);
if (!device->info.has_llc)
anv_state_clflush(pipeline->blend_state);