Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit bbf5cf1

Browse files
committed
Wire up sample mask correctly
Bug: b/118386749 Change-Id: I4d6150907a0afea8eeff28334dae1e4af6309075 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26309 Tested-by: Chris Forbes <[email protected]> Presubmit-Ready: Chris Forbes <[email protected]> Kokoro-Presubmit: kokoro <[email protected]> Reviewed-by: Alexis Hétu <[email protected]>
1 parent 1bd9e2f commit bbf5cf1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Vulkan/VkPipeline.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,11 @@ GraphicsPipeline::GraphicsPipeline(const VkGraphicsPipelineCreateInfo* pCreateIn
350350
UNIMPLEMENTED("Unsupported sample count");
351351
}
352352

353+
if (multisampleState->pSampleMask)
354+
context.sampleMask = multisampleState->pSampleMask[0];
355+
353356
if((multisampleState->flags != 0) ||
354357
(multisampleState->sampleShadingEnable != 0) ||
355-
!((multisampleState->pSampleMask == nullptr) ||
356-
(*(multisampleState->pSampleMask) == 0xFFFFFFFFu)) ||
357358
(multisampleState->alphaToCoverageEnable != 0) ||
358359
(multisampleState->alphaToOneEnable != 0))
359360
{

0 commit comments

Comments
 (0)