Commit bbf5cf1e by Chris Forbes

Wire up sample mask correctly

Bug: b/118386749 Change-Id: I4d6150907a0afea8eeff28334dae1e4af6309075 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26309Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 1bd9e2f8
...@@ -350,10 +350,11 @@ GraphicsPipeline::GraphicsPipeline(const VkGraphicsPipelineCreateInfo* pCreateIn ...@@ -350,10 +350,11 @@ GraphicsPipeline::GraphicsPipeline(const VkGraphicsPipelineCreateInfo* pCreateIn
UNIMPLEMENTED("Unsupported sample count"); UNIMPLEMENTED("Unsupported sample count");
} }
if (multisampleState->pSampleMask)
context.sampleMask = multisampleState->pSampleMask[0];
if((multisampleState->flags != 0) || if((multisampleState->flags != 0) ||
(multisampleState->sampleShadingEnable != 0) || (multisampleState->sampleShadingEnable != 0) ||
!((multisampleState->pSampleMask == nullptr) ||
(*(multisampleState->pSampleMask) == 0xFFFFFFFFu)) ||
(multisampleState->alphaToCoverageEnable != 0) || (multisampleState->alphaToCoverageEnable != 0) ||
(multisampleState->alphaToOneEnable != 0)) (multisampleState->alphaToOneEnable != 0))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment