diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-04-16 13:19:58 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-16 21:23:20 +0000 |
commit | da40cd271ce1e86c5bd24c3b5780483ce785bc93 (patch) | |
tree | eb8e6dc675148396ad29299830488a728dcaf990 /src/gpu/gl/GrGLGpu.h | |
parent | d234afdc2e562d395925ca3ac8294398608271a6 (diff) |
Add glFlush workaround for instanced draws on Skylake
Bug: skia:
Change-Id: I1292cc423b4d3d7fc2a9035d3ad251ad7e00f0f6
Reviewed-on: https://skia-review.googlesource.com/121700
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLGpu.h')
-rw-r--r-- | src/gpu/gl/GrGLGpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h index 4858963271..43df889913 100644 --- a/src/gpu/gl/GrGLGpu.h +++ b/src/gpu/gl/GrGLGpu.h @@ -628,8 +628,9 @@ private: return (wide ? 0x2 : 0x0) | (tall ? 0x1 : 0x0); } - float fHWMinSampleShading; - GrPrimitiveType fLastPrimitiveType; + float fHWMinSampleShading; + GrPrimitiveType fLastPrimitiveType; + bool fRequiresFlushBeforeNextInstancedDraw = false; typedef GrGpu INHERITED; friend class GrGLPathRendering; // For accessing setTextureUnit. |