aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-02-22 13:41:37 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-22 21:06:05 +0000
commit2612baecd8c5b8deeaef18057a57562f45150023 (patch)
tree6dc6d1690d66d1136a51f9847e6f72d8dbc26c08 /src/gpu/vk
parentee77da2c0bb44b92409d5eaf2b7ae7530f650a24 (diff)
ccpr: Prefer atlas sizes under 4k on ARM
Bug: skia: Change-Id: Ib5afb84647efe2e64a3ec2f9da422b39228431e9 Reviewed-on: https://skia-review.googlesource.com/108871 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/vk')
-rw-r--r--src/gpu/vk/GrVkCaps.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkCaps.cpp b/src/gpu/vk/GrVkCaps.cpp
index 3fc5a08acb..88d820a62c 100644
--- a/src/gpu/vk/GrVkCaps.cpp
+++ b/src/gpu/vk/GrVkCaps.cpp
@@ -165,6 +165,9 @@ void GrVkCaps::initGrCaps(const VkPhysicalDeviceProperties& properties,
fMaxRenderTargetSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX);
fMaxTextureSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX);
+ // TODO: check if RT's larger than 4k incur a performance cost on ARM.
+ fMaxPreferredRenderTargetSize = fMaxRenderTargetSize;
+
// Assuming since we will always map in the end to upload the data we might as well just map
// from the get go. There is no hard data to suggest this is faster or slower.
fBufferMapThreshold = 0;