aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-05-23 13:58:01 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-23 18:20:35 +0000
commit08d6d605496fe2efc1bc3e6a2899b92b2f98aecf (patch)
treed66b5d6bea8e58b218e2ba9944fd62050ee5048c /src/gpu
parent623fadf8be3d3a2061f8b491575c5b82707121df (diff)
Disable srgb on vulkan nexus player
Bug: skia: Change-Id: I4f7656badf1b2faec6ed02687e8e0ff2b4daf7f4 Reviewed-on: https://skia-review.googlesource.com/17718 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/vk/GrVkCaps.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkCaps.cpp b/src/gpu/vk/GrVkCaps.cpp
index ef0004be04..cb699fb4ad 100644
--- a/src/gpu/vk/GrVkCaps.cpp
+++ b/src/gpu/vk/GrVkCaps.cpp
@@ -117,6 +117,12 @@ void GrVkCaps::init(const GrContextOptions& contextOptions, const GrVkInterface*
}
#endif
+#if defined(SK_CPU_X86)
+ if (kImagination_VkVendor == properties.vendorID) {
+ fSRGBSupport = false;
+ }
+#endif
+
this->applyOptionsOverrides(contextOptions);
fShaderCaps->applyOptionsOverrides(contextOptions);
}