Add max_fragment_uniform_vectors_32 workaround

Bug: chromium: 829614
Change-Id: I0ce008d8ebadd90758510ea069f0f4384a95751e
Reviewed-on: https://skia-review.googlesource.com/146622
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Adrienne Walker <enne@chromium.org>
This commit is contained in:
Adrienne Walker 2018-08-09 12:01:43 -07:00 committed by Skia Commit-Bot
parent 475c5e93fe
commit 87785d5573
3 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,8 @@
disallow_large_instanced_draw) \
GPU_OP(GL_CLEAR_BROKEN, \
gl_clear_broken) \
GPU_OP(MAX_FRAGMENT_UNIFORM_VECTORS_32, \
max_fragment_uniform_vectors_32) \
GPU_OP(MAX_MSAA_SAMPLE_COUNT_4, \
max_msaa_sample_count_4) \
GPU_OP(MAX_TEXTURE_SIZE_LIMIT_4096, \

View File

@ -91,6 +91,9 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
fIsCoreProfile = SkToBool(profileMask & GR_GL_CONTEXT_CORE_PROFILE_BIT);
}
}
if (fDriverBugWorkarounds.max_fragment_uniform_vectors_32) {
fMaxFragmentUniformVectors = SkMin32(fMaxFragmentUniformVectors, 32);
}
GR_GL_GetIntegerv(gli, GR_GL_MAX_VERTEX_ATTRIBS, &fMaxVertexAttributes);
if (kGL_GrGLStandard == standard) {

View File

@ -2,6 +2,7 @@ disable_blend_equation_advanced
disable_discard_framebuffer
disallow_large_instanced_draw
gl_clear_broken
max_fragment_uniform_vectors_32
max_msaa_sample_count_4
max_texture_size_limit_4096
pack_parameters_workaround_with_pack_buffer