summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-30 17:20:49 -0800
committerJason Ekstrand <[email protected]>2015-12-03 13:43:52 -0800
commit9fa6e328ebac4616148a23a7a4fbe7ed25ec315f (patch)
tree5d0347ea3125c13760fd96f83c747f038fd4c2ce /src/vulkan/anv_pipeline.c
parentf97c3b6d58b1f875b89744cb6adaed87c4d88414 (diff)
vk/0.210.0: Move alphaToOne and alphaToCoverate to multisample state
Diffstat (limited to 'src/vulkan/anv_pipeline.c')
-rw-r--r--src/vulkan/anv_pipeline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c
index 41a26c70d85..47c62754a8a 100644
--- a/src/vulkan/anv_pipeline.c
+++ b/src/vulkan/anv_pipeline.c
@@ -311,7 +311,8 @@ populate_wm_prog_key(const struct brw_device_info *devinfo,
key->nr_color_regions = render_pass->subpasses[info->subpass].color_count;
key->replicate_alpha = key->nr_color_regions > 1 &&
- info->pColorBlendState->alphaToCoverageEnable;
+ info->pMultisampleState &&
+ info->pMultisampleState->alphaToCoverageEnable;
if (info->pMultisampleState && info->pMultisampleState->rasterSamples > 1) {
/* We should probably pull this out of the shader, but it's fairly