Commit 53e83aa8 by Alexis Hetu Committed by Alexis Hétu

Multisampled blitter clear fix

When clearing a multisampled buffer, the reactor blitter was only clearing the first sample. This cl makes the reactor blitter effectively clear all samples of a multisampled buffer. Change-Id: I7ce1af401bf537fe85e1c8393a2c57144641ad8e Reviewed-on: https://swiftshader-review.googlesource.com/18032Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent b04881b8
......@@ -1256,9 +1256,14 @@ namespace sw
}
else if(hasConstantColorF)
{
if(!write(constantColorF, d, state))
for(int s = 0; s < state.destSamples; s++)
{
return nullptr;
if(!write(constantColorF, d, state))
{
return nullptr;
}
d += *Pointer<Int>(blit + OFFSET(BlitData, dSliceB));
}
}
else if(intBoth) // Integer types do not support filtering
......
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