Remove unused clip atlas cap

This referred to CCPR's atlas and is not actually related to the current
clip atlas. Nothing was checking for this cap, and my guess is it could
have been cleaned up when CCPR was removed.

Change-Id: If276a123a1d9ccf7301bf26f65ff3f4fbe97b3e1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/534521
Reviewed-by: Brian Salomon <bsalomon@google.com>
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Michael Ludwig 2022-04-27 20:06:56 -04:00 committed by SkCQ
parent 8aef5432c8
commit 582c84c848
3 changed files with 0 additions and 13 deletions

View File

@ -56,7 +56,6 @@ GrCaps::GrCaps(const GrContextOptions& options) {
fReadPixelsRowBytesSupport = false;
fShouldCollapseSrcOverToSrcWhenAble = false;
fMustSyncGpuDuringAbandon = true;
fDriverDisableMSAAClipAtlas = false;
fDisableTessellationPathRenderer = false;
fBlendEquationSupport = kBasic_BlendEquationSupport;
@ -111,7 +110,6 @@ void GrCaps::applyOptionsOverrides(const GrContextOptions& options) {
fShaderCaps->applyOptionsOverrides(options);
this->onApplyOptionsOverrides(options);
if (options.fDisableDriverCorrectnessWorkarounds) {
SkASSERT(!fDriverDisableMSAAClipAtlas);
SkASSERT(!fDisableTessellationPathRenderer);
SkASSERT(!fAvoidStencilBuffers);
SkASSERT(!fAvoidWritePixelsFastPath);
@ -235,8 +233,6 @@ void GrCaps::dumpJSON(SkJSONWriter* writer) const {
writer->appendBool("Write pixels row bytes support", fWritePixelsRowBytesSupport);
writer->appendBool("Transfer pixels to row bytes support", fTransferPixelsToRowBytesSupport);
writer->appendBool("Read pixels row bytes support", fReadPixelsRowBytesSupport);
writer->appendBool("Disable msaa clip mask atlas on current driver [workaround]",
fDriverDisableMSAAClipAtlas);
writer->appendBool("Disable TessellationPathRenderer current driver [workaround]",
fDisableTessellationPathRenderer);
writer->appendBool("Clamp-to-border", fClampToBorderSupport);

View File

@ -401,9 +401,6 @@ public:
/// op instead of using glClear seems to resolve the issue.
bool performStencilClearsAsDraws() const { return fPerformStencilClearsAsDraws; }
// Should we disable the clip mask atlas due to a faulty driver?
bool driverDisableMSAAClipAtlas() const { return fDriverDisableMSAAClipAtlas; }
// Should we disable TessellationPathRenderer due to a faulty driver?
bool disableTessellationPathRenderer() const { return fDisableTessellationPathRenderer; }
@ -576,7 +573,6 @@ protected:
bool fMustSyncGpuDuringAbandon : 1;
// Driver workaround
bool fDriverDisableMSAAClipAtlas : 1;
bool fDisableTessellationPathRenderer : 1;
bool fAvoidStencilBuffers : 1;
bool fAvoidWritePixelsFastPath : 1;

View File

@ -568,11 +568,6 @@ void GrVkCaps::applyDriverCorrectnessWorkarounds(const VkPhysicalDevicePropertie
// GrCaps workarounds
////////////////////////////////////////////////////////////////////////////
#ifdef SK_BUILD_FOR_ANDROID
// MSAA CCPR was slow on Android. http://skbug.com/9676
fDriverDisableMSAAClipAtlas = true;
#endif
if (kARM_VkVendor == properties.vendorID) {
fAvoidWritePixelsFastPath = true; // bugs.skia.org/8064
}