projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da9fd74
)
anv/gen8_pipeline: Default color attachments to WriteDisable = true
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 17 Feb 2016 19:54:42 +0000
(11:54 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 18 Feb 2016 02:04:39 +0000
(18:04 -0800)
src/vulkan/gen8_pipeline.c
patch
|
blob
|
history
diff --git
a/src/vulkan/gen8_pipeline.c
b/src/vulkan/gen8_pipeline.c
index c41d6ffa82e1b8c6b4d234292215bb2e100b1cb1..eec3f7aafdd40953ddaa65735127235b0c8e5d08 100644
(file)
--- 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);