Prefer fullscreen clears on QC/Vulkan

Bug: skia:7396
Bug: skia:8430
Change-Id: Ia44dc162c4de71715d696e4d41d3356ef4db363b
Reviewed-on: https://skia-review.googlesource.com/c/160263
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Chris Dalton 2018-10-05 16:41:44 -06:00 committed by Skia Commit-Bot
parent 6ca0d8a767
commit 8e738a2293

View File

@ -274,6 +274,14 @@ void GrVkCaps::init(const GrContextOptions& contextOptions, const GrVkInterface*
#endif
}
if (kQualcomm_VkVendor == properties.vendorID) {
// A "clear" load for the CCPR atlas runs faster on QC than a "discard" load followed by a
// scissored clear.
// On NVIDIA and Intel, the discard load followed by clear is faster.
// TODO: Evaluate on ARM, Imagination, and ATI.
fPreferFullscreenClears = true;
}
this->initConfigTable(vkInterface, physDev, properties);
this->initStencilFormat(vkInterface, physDev);