diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-04-01 16:49:26 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-04-01 16:49:26 +0000 |
commit | b51fda1bc3d6b832021c169abf21b2659e8a34ed (patch) | |
tree | 3ec41b85d4c3d048de672cf7046ac7ed354fe8c5 /libs/hwui/renderthread/RenderThread.cpp | |
parent | a8a14d4bdbfa09f25cf96f941cbeff8d26c28123 (diff) | |
parent | bf99c4450b55a0bee268c382cba8c60796cd068b (diff) |
Merge "Invalidate Skia shader cache if Vulkan driver has changed"
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderThread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp index 6cce31943d03..369eee764a99 100644 --- a/libs/hwui/renderthread/RenderThread.cpp +++ b/libs/hwui/renderthread/RenderThread.cpp @@ -209,8 +209,8 @@ void RenderThread::requireVkContext() { mVkManager->initialize(); GrContextOptions options; initGrContextOptions(options); - // TODO: get a string describing the SPIR-V compiler version and use it here - cacheManager().configureContext(&options, nullptr, 0); + auto vkDriverVersion = mVkManager->getDriverVersion(); + cacheManager().configureContext(&options, &vkDriverVersion, sizeof(vkDriverVersion)); sk_sp<GrContext> grContext = mVkManager->createContext(options); LOG_ALWAYS_FATAL_IF(!grContext.get()); setGrContext(grContext); |