Set Default Color Write Mask to RGBA

The default color write mask should mask no channels and write all of them and should be mutated to mask out certain channels as required by the guest.
This commit is contained in:
PixelyIon 2021-12-07 01:01:13 +05:30
parent 23faf1370c
commit f06a12170f

View File

@ -63,6 +63,12 @@ namespace skyline::gpu::interconnect {
for (auto &vertexAttribute : vertexAttributes) for (auto &vertexAttribute : vertexAttributes)
vertexAttribute.description.location = attributeIndex++; vertexAttribute.description.location = attributeIndex++;
for (auto &rtBlendState : commonRtBlendState)
rtBlendState.colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA;
for (auto &rtBlendState : independentRtBlendState)
rtBlendState.colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA;
if (!gpu.quirks.supportsLastProvokingVertex) if (!gpu.quirks.supportsLastProvokingVertex)
rasterizerState.unlink<vk::PipelineRasterizationProvokingVertexStateCreateInfoEXT>(); rasterizerState.unlink<vk::PipelineRasterizationProvokingVertexStateCreateInfoEXT>();
} }