Commit 89e2c63b authored by Brian Osman's avatar Brian Osman Committed by Commit Bot

Increase Metal pipeline state cache size to 1024 entries

The cache size is now configurable by the client. This CL re-implements
the change made here:

https://skia.googlesource.com/skia/+/450ba0a2b25de433470d5bfa2f21a0db833786fc

Bug: chromium:974219
Bug: chromium:988964
Change-Id: Ibef0f842c30154d7295909284c5dc6922c3fa40a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1790501
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: default avatarccameron <ccameron@chromium.org>
Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Reviewed-by: default avatarVictor Miura <vmiura@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694887}
parent ebe5f031
...@@ -149,6 +149,9 @@ void SharedContextState::InitializeGrContext( ...@@ -149,6 +149,9 @@ void SharedContextState::InitializeGrContext(
// in GetCapabilities and ensuring these are also used by the // in GetCapabilities and ensuring these are also used by the
// PaintOpBufferSerializer. // PaintOpBufferSerializer.
GrContextOptions options; GrContextOptions options;
if (GrContextIsMetal()) {
options.fRuntimeProgramCacheSize = 1024;
}
options.fDriverBugWorkarounds = options.fDriverBugWorkarounds =
GrDriverBugWorkarounds(workarounds.ToIntSet()); GrDriverBugWorkarounds(workarounds.ToIntSet());
options.fDisableCoverageCountingPaths = true; options.fDisableCoverageCountingPaths = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment