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:
parent
6ca0d8a767
commit
8e738a2293
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user