mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-19 01:46:35 +00:00
Ensures blob cache is always available, even if it is just a placeholder
Bug: dawn:549 Change-Id: I7efbaa58d93691648107fc6b94d76596a77f6516 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111140 Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Loko Kung <lokokung@google.com>
This commit is contained in:
@@ -299,9 +299,7 @@ ResultOrError<GLuint> ShaderModule::CompileShader(const OpenGLFunctions& gl,
|
||||
}
|
||||
}
|
||||
|
||||
if (BlobCache* cache = GetDevice()->GetBlobCache()) {
|
||||
cache->EnsureStored(compilationResult);
|
||||
}
|
||||
GetDevice()->GetBlobCache()->EnsureStored(compilationResult);
|
||||
*needsPlaceholderSampler = compilationResult->needsPlaceholderSampler;
|
||||
*combinedSamplers = std::move(compilationResult->combinedSamplerInfo);
|
||||
return shader;
|
||||
|
||||
Reference in New Issue
Block a user