Commit 8c0e550c by Alexis Hetu Committed by Alexis Hétu

Allow alphaToCoverage with a single sample

Added missing case for a single sample with alphaToCoverage enabled Change-Id: Iad9234fdd30d64c60ae189c123564a0423ab12df Tests: dEQP-VK.rasterization.frag_side_effects.color_at_* Bug: b/168046415 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48209 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 10121443
...@@ -303,6 +303,10 @@ void Renderer::draw(const sw::Context *context, VkIndexType indexType, unsigned ...@@ -303,6 +303,10 @@ void Renderer::draw(const sw::Context *context, VkIndexType indexType, unsigned
data->a2c0 = float4(0.25f); data->a2c0 = float4(0.25f);
data->a2c1 = float4(0.75f); data->a2c1 = float4(0.75f);
} }
else if(ms == 1)
{
data->a2c0 = float4(0.5f);
}
else else
ASSERT(false); ASSERT(false);
} }
......
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