If the draw path is taken for resolve, the internal shader previously calculated (1+sum(sample.a))/sampleCount instead of sum(sample.a)/sampleCount. Additionally, due to a typo, the result was rounded. This change also fixes a number of off-by-one errors when calculating src/dst offsets in blit/resolve path. Tests are added to resolve from default to FBO and vice versa to exercise the draw path which was otherwise never invoked for color buffers. Bug: angleproject:4746 BUg: angleproject:4092 Change-Id: I4b9c181339b89af44b27d61d27a6b3d88cde2eea Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2288224 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by:Jamie Madill <jmadill@chromium.org> Reviewed-by:
Ian Elliott <ianelliott@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| BlitResolve.frag | Loading commit data... | |
| BlitResolve.frag.json | Loading commit data... | |
| BlitResolveStencilNoExport.comp | Loading commit data... | |
| BlitResolveStencilNoExport.comp.json | Loading commit data... | |
| ConvertIndex.comp | Loading commit data... | |
| ConvertIndex.comp.json | Loading commit data... | |
| ConvertIndexIndirectLineLoop.comp | Loading commit data... | |
| ConvertIndexIndirectLineLoop.comp.json | Loading commit data... | |
| ConvertIndirectLineLoop.comp | Loading commit data... | |
| ConvertIndirectLineLoop.comp.json | Loading commit data... | |
| ConvertVertex.comp | Loading commit data... | |
| ConvertVertex.comp.json | Loading commit data... | |
| FullScreenQuad.vert | Loading commit data... | |
| ImageClear.frag | Loading commit data... | |
| ImageClear.frag.json | Loading commit data... | |
| ImageCopy.frag | Loading commit data... | |
| ImageCopy.frag.json | Loading commit data... | |
| OverlayCull.comp | Loading commit data... | |
| OverlayCull.comp.json | Loading commit data... | |
| OverlayDraw.comp | Loading commit data... | |
| OverlayDraw.comp.json | Loading commit data... |