aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkCaps.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-05-12 11:01:10 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-12 11:01:10 -0700
commitf05ab1b820b482fa633544579ab4d4c6bfcdb433 (patch)
tree07463d0c152771c4c1073b007d96ec1ea95eecf6 /src/gpu/vk/GrVkCaps.cpp
parent1e2e33a74d707b918a0b1063047bbb25ee81ae67 (diff)
Support allowSRGBInputs on Vulkan (via secondary texture views)
All textures still have a "correct" image view that matches their actual format. For sRGB textures, we can ask for a non-sRGB view that is created on demand (and cached), in legacy mode. Finally, turn on sRGB support in Vulkan. The gamma GM now looks correct in both L32 and S32. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1970293002 Review-Url: https://codereview.chromium.org/1970293002
Diffstat (limited to 'src/gpu/vk/GrVkCaps.cpp')
-rw-r--r--src/gpu/vk/GrVkCaps.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkCaps.cpp b/src/gpu/vk/GrVkCaps.cpp
index 746499f9b0..db21cc2f82 100644
--- a/src/gpu/vk/GrVkCaps.cpp
+++ b/src/gpu/vk/GrVkCaps.cpp
@@ -21,6 +21,7 @@ GrVkCaps::GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface*
* GrDrawTargetCaps fields
**************************************************************************/
fMipMapSupport = true; // always available in Vulkan
+ fSRGBSupport = true; // always available in Vulkan
fNPOTTextureTileSupport = false; //TODO: figure this out
fTwoSidedStencilSupport = true; // always available in Vulkan
fStencilWrapOpsSupport = false; //TODO: figure this out