diff options
author | bsalomon <bsalomon@google.com> | 2015-02-20 06:58:13 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-20 06:58:14 -0800 |
commit | d08ea5fdae990ee7829e3755abddfab9740eab99 (patch) | |
tree | 2c21b24822b5018c6d5ee7c902d987616ef7a60d /src/gpu/GrDrawTargetCaps.h | |
parent | 04e4d08556750ff6be4576a4cd4925964c63376f (diff) |
Round stencil buffers dims up to next pow2 when allowed
Review URL: https://codereview.chromium.org/937303002
Diffstat (limited to 'src/gpu/GrDrawTargetCaps.h')
-rw-r--r-- | src/gpu/GrDrawTargetCaps.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/gpu/GrDrawTargetCaps.h b/src/gpu/GrDrawTargetCaps.h index 1bd18b081e..61ec3b2196 100644 --- a/src/gpu/GrDrawTargetCaps.h +++ b/src/gpu/GrDrawTargetCaps.h @@ -82,6 +82,7 @@ public: bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport; } bool gpuTracingSupport() const { return fGpuTracingSupport; } bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSupport; } + bool oversizedStencilSupport() const { return fOversizedStencilSupport; } bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } @@ -146,23 +147,23 @@ public: uint32_t getUniqueID() const { return fUniqueID; } protected: - bool fNPOTTextureTileSupport : 1; - bool fMipMapSupport : 1; - bool fTwoSidedStencilSupport : 1; - bool fStencilWrapOpsSupport : 1; - bool fHWAALineSupport : 1; - bool fShaderDerivativeSupport : 1; - bool fGeometryShaderSupport : 1; - bool fDualSourceBlendingSupport : 1; - bool fPathRenderingSupport : 1; - bool fDstReadInShaderSupport : 1; - bool fDiscardRenderTargetSupport: 1; - bool fReuseScratchTextures : 1; - bool fGpuTracingSupport : 1; - bool fCompressedTexSubImageSupport : 1; - + bool fNPOTTextureTileSupport : 1; + bool fMipMapSupport : 1; + bool fTwoSidedStencilSupport : 1; + bool fStencilWrapOpsSupport : 1; + bool fHWAALineSupport : 1; + bool fShaderDerivativeSupport : 1; + bool fGeometryShaderSupport : 1; + bool fDualSourceBlendingSupport : 1; + bool fPathRenderingSupport : 1; + bool fDstReadInShaderSupport : 1; + bool fDiscardRenderTargetSupport : 1; + bool fReuseScratchTextures : 1; + bool fGpuTracingSupport : 1; + bool fCompressedTexSubImageSupport : 1; + bool fOversizedStencilSupport : 1; // Driver workaround - bool fUseDrawInsteadOfClear : 1; + bool fUseDrawInsteadOfClear : 1; uint32_t fMapBufferFlags; |