• Home
  • Raw
  • Download

Lines Matching refs:mState

784     : mState(caps, id, shareGroup->generateFramebufferSerial()),  in Framebuffer()
785 mImpl(factory->createFramebuffer(mState)), in Framebuffer()
791 ASSERT(mState.mColorAttachments.size() == static_cast<size_t>(caps.maxColorAttachments)); in Framebuffer()
794 colorIndex < static_cast<uint32_t>(mState.mColorAttachments.size()); ++colorIndex) in Framebuffer()
805 : mState(context->getShareGroup()->generateFramebufferSerial()), in Framebuffer()
806 mImpl(surface->getImplementation()->createDefaultFramebuffer(context, mState)), in Framebuffer()
836 SetComponentTypeMask(getDrawbufferWriteType(0), 0, &mState.mDrawBufferTypeMask); in Framebuffer()
838 mState.mSurfaceTextureOffset = surface->getTextureOffset(); in Framebuffer()
847 : mState(context->getShareGroup()->generateFramebufferSerial()), in Framebuffer()
848 mImpl(factory->createFramebuffer(mState)), in Framebuffer()
855 SetComponentTypeMask(getDrawbufferWriteType(0), 0, &mState.mDrawBufferTypeMask); in Framebuffer()
869 mState.mDefaultFramebufferReadAttachment.detach(context, mState.mFramebufferSerial); in onDestroy()
870 mState.mDefaultFramebufferReadAttachmentInitialized = false; in onDestroy()
873 for (auto &attachment : mState.mColorAttachments) in onDestroy()
875 attachment.detach(context, mState.mFramebufferSerial); in onDestroy()
877 mState.mDepthAttachment.detach(context, mState.mFramebufferSerial); in onDestroy()
878 mState.mStencilAttachment.detach(context, mState.mFramebufferSerial); in onDestroy()
879 mState.mWebGLDepthAttachment.detach(context, mState.mFramebufferSerial); in onDestroy()
880 mState.mWebGLStencilAttachment.detach(context, mState.mFramebufferSerial); in onDestroy()
881 mState.mWebGLDepthStencilAttachment.detach(context, mState.mFramebufferSerial); in onDestroy()
889 mState.mDefaultFramebufferReadAttachment.attach( in setReadSurface()
892 false, FramebufferAttachment::kDefaultRenderToTextureSamples, mState.mFramebufferSerial); in setReadSurface()
898 mState.mLabel = label; in setLabel()
903 return mState.mLabel; in getLabel()
920 for (size_t colorIndex = 0; colorIndex < mState.mColorAttachments.size(); ++colorIndex) in detachResourceById()
922 if (detachMatchingAttachment(context, &mState.mColorAttachments[colorIndex], resourceType, in detachResourceById()
932 {&mState.mWebGLDepthStencilAttachment, &mState.mWebGLDepthAttachment, in detachResourceById()
933 &mState.mWebGLStencilAttachment}}; in detachResourceById()
944 if (detachMatchingAttachment(context, &mState.mDepthAttachment, resourceType, resourceId)) in detachResourceById()
948 if (detachMatchingAttachment(context, &mState.mStencilAttachment, resourceType, resourceId)) in detachResourceById()
975 return mState.getColorAttachment(colorAttachment); in getColorAttachment()
980 return mState.getDepthAttachment(); in getDepthAttachment()
985 return mState.getStencilAttachment(); in getStencilAttachment()
990 return mState.getDepthStencilAttachment(); in getDepthStencilAttachment()
995 return mState.getDepthOrStencilAttachment(); in getDepthOrStencilAttachment()
1000 return mState.getStencilOrDepthStencilAttachment(); in getStencilOrDepthStencilAttachment()
1005 return mState.getReadAttachment(); in getReadColorAttachment()
1010 const FramebufferAttachment *readAttachment = mState.getReadAttachment(); in getReadColorAttachmentType()
1016 return mState.getFirstColorAttachment(); in getFirstColorAttachment()
1021 return mState.getFirstNonNullAttachment(); in getFirstNonNullAttachment()
1027 return mState.getAttachment(context, attachment); in getAttachment()
1032 return mState.mDrawBufferStates.size(); in getDrawbufferStateCount()
1037 ASSERT(drawBuffer < mState.mDrawBufferStates.size()); in getDrawBufferState()
1038 return mState.mDrawBufferStates[drawBuffer]; in getDrawBufferState()
1043 return mState.getDrawBufferStates(); in getDrawBufferStates()
1048 auto &drawStates = mState.mDrawBufferStates; in setDrawBuffers()
1055 mState.mEnabledDrawBuffers.reset(); in setDrawBuffers()
1056 mState.mDrawBufferTypeMask.reset(); in setDrawBuffers()
1060 SetComponentTypeMask(getDrawbufferWriteType(index), index, &mState.mDrawBufferTypeMask); in setDrawBuffers()
1062 if (drawStates[index] != GL_NONE && mState.mColorAttachments[index].isAttached()) in setDrawBuffers()
1064 mState.mEnabledDrawBuffers.set(index); in setDrawBuffers()
1071 return mState.getDrawBuffer(drawBuffer); in getDrawBuffer()
1076 const FramebufferAttachment *attachment = mState.getDrawBuffer(drawBuffer); in getDrawbufferWriteType()
1097 return mState.mDrawBufferTypeMask; in getDrawBufferTypeMask()
1102 return mState.mEnabledDrawBuffers; in getDrawBufferMask()
1107 for (size_t drawbufferIdx = 0; drawbufferIdx < mState.mDrawBufferStates.size(); ++drawbufferIdx) in hasEnabledDrawBuffer()
1120 return mState.mReadBufferState; in getReadBufferState()
1127 (buffer - GL_COLOR_ATTACHMENT0) < mState.mColorAttachments.size())); in setReadBuffer()
1128 mState.mReadBufferState = buffer; in setReadBuffer()
1134 return mState.mColorAttachments.size(); in getNumColorAttachments()
1139 return mState.hasDepth(); in hasDepth()
1144 return mState.hasStencil(); in hasStencil()
1149 return mState.hasExternalTextureAttachment(); in hasExternalTextureAttachment()
1154 return mState.hasYUVAttachment(); in hasYUVAttachment()
1159 for (size_t drawbufferIdx = 1; drawbufferIdx < mState.mDrawBufferStates.size(); ++drawbufferIdx) in usingExtendedDrawBuffers()
1226 for (const FramebufferAttachment &colorAttachment : mState.mColorAttachments) in checkStatusWithGLFrontEnd()
1318 const FramebufferAttachment &depthAttachment = mState.mDepthAttachment; in checkStatusWithGLFrontEnd()
1373 const FramebufferAttachment &stencilAttachment = mState.mStencilAttachment; in checkStatusWithGLFrontEnd()
1440 if (!mState.mWebGLDepthStencilConsistent) in checkStatusWithGLFrontEnd()
1447 if (mState.mWebGLDepthStencilAttachment.isAttached()) in checkStatusWithGLFrontEnd()
1449 if (mState.mWebGLDepthStencilAttachment.getDepthSize() == 0 || in checkStatusWithGLFrontEnd()
1450 mState.mWebGLDepthStencilAttachment.getStencilSize() == 0) in checkStatusWithGLFrontEnd()
1459 &mState.mWebGLDepthStencilAttachment); in checkStatusWithGLFrontEnd()
1465 else if (mState.mStencilAttachment.isAttached() && in checkStatusWithGLFrontEnd()
1466 mState.mStencilAttachment.getDepthSize() > 0) in checkStatusWithGLFrontEnd()
1472 else if (mState.mDepthAttachment.isAttached() && in checkStatusWithGLFrontEnd()
1473 mState.mDepthAttachment.getStencilSize() > 0) in checkStatusWithGLFrontEnd()
1484 GLint defaultWidth = mState.getDefaultWidth(); in checkStatusWithGLFrontEnd()
1485 GLint defaultHeight = mState.getDefaultHeight(); in checkStatusWithGLFrontEnd()
1495 !mState.attachmentsHaveSameDimensions()) in checkStatusWithGLFrontEnd()
1516 if (!mState.colorAttachmentsAreUniqueImages()) in checkStatusWithGLFrontEnd()
1696 for (size_t colorIndex : mState.mEnabledDrawBuffers) in blit()
1725 const FramebufferAttachment *firstNonNullAttachment = mState.getFirstNonNullAttachment(); in getSamples()
1740 const FramebufferAttachment *readAttachment = mState.getReadAttachment(); in getReadBufferResourceSamples()
1756 return mState.getDepthStencilAttachment() != nullptr; in hasValidDepthStencil()
1761 return mState.getSurfaceTextureOffset(); in getSurfaceTextureOffset()
1821 mState.mWebGLDepthStencilAttachment.attach( in setAttachment()
1823 isMultiview, samples, mState.mFramebufferSerial); in setAttachment()
1827 mState.mWebGLDepthAttachment.attach(context, type, binding, textureIndex, resource, in setAttachment()
1829 mState.mFramebufferSerial); in setAttachment()
1833 mState.mWebGLStencilAttachment.attach(context, type, binding, textureIndex, resource, in setAttachment()
1835 mState.mFramebufferSerial); in setAttachment()
1866 std::array<FramebufferAttachment *, 3> attachments = {{&mState.mWebGLDepthStencilAttachment, in commitWebGL1DepthStencilIfConsistent()
1867 &mState.mWebGLDepthAttachment, in commitWebGL1DepthStencilIfConsistent()
1868 &mState.mWebGLStencilAttachment}}; in commitWebGL1DepthStencilIfConsistent()
1877 mState.mWebGLDepthStencilConsistent = (count <= 1); in commitWebGL1DepthStencilIfConsistent()
1878 if (!mState.mWebGLDepthStencilConsistent) in commitWebGL1DepthStencilIfConsistent()
1895 if (mState.mWebGLDepthAttachment.isAttached()) in commitWebGL1DepthStencilIfConsistent()
1897 const auto &depth = mState.mWebGLDepthAttachment; in commitWebGL1DepthStencilIfConsistent()
1904 else if (mState.mWebGLStencilAttachment.isAttached()) in commitWebGL1DepthStencilIfConsistent()
1906 const auto &stencil = mState.mWebGLStencilAttachment; in commitWebGL1DepthStencilIfConsistent()
1913 else if (mState.mWebGLDepthStencilAttachment.isAttached()) in commitWebGL1DepthStencilIfConsistent()
1915 const auto &depthStencil = mState.mWebGLDepthStencilAttachment; in commitWebGL1DepthStencilIfConsistent()
1948 updateAttachment(context, &mState.mDepthAttachment, DIRTY_BIT_DEPTH_ATTACHMENT, in setAttachmentImpl()
1951 updateAttachment(context, &mState.mStencilAttachment, DIRTY_BIT_STENCIL_ATTACHMENT, in setAttachmentImpl()
1958 updateAttachment(context, &mState.mDepthAttachment, DIRTY_BIT_DEPTH_ATTACHMENT, in setAttachmentImpl()
1965 updateAttachment(context, &mState.mStencilAttachment, DIRTY_BIT_STENCIL_ATTACHMENT, in setAttachmentImpl()
1971 updateAttachment(context, &mState.mColorAttachments[0], DIRTY_BIT_COLOR_ATTACHMENT_0, in setAttachmentImpl()
1974 mState.mColorAttachmentsMask.set(0); in setAttachmentImpl()
1981 ASSERT(colorIndex < mState.mColorAttachments.size()); in setAttachmentImpl()
1983 updateAttachment(context, &mState.mColorAttachments[colorIndex], dirtyBit, in setAttachmentImpl()
1990 mState.mColorAttachmentsMask.reset(colorIndex); in setAttachmentImpl()
1996 mState.mColorAttachmentsMask.set(colorIndex); in setAttachmentImpl()
2000 mState.mEnabledDrawBuffers.set(colorIndex, enabled); in setAttachmentImpl()
2002 &mState.mDrawBufferTypeMask); in setAttachmentImpl()
2022 isMultiview, samples, mState.mFramebufferSerial); in updateAttachment()
2024 mState.mResourceNeedsInit.set(dirtyBit, attachment->initState() == InitState::MayNeedInit); in updateAttachment()
2037 if (srgbWriteControlMode != mState.getWriteControlMode()) in setWriteControlMode()
2039 mState.mSrgbWriteControlMode = srgbWriteControlMode; in setWriteControlMode()
2092 mState.mResourceNeedsInit.set(index, attachment->initState() == InitState::MayNeedInit); in onSubjectStateChange()
2109 return &mState.mDepthAttachment; in getAttachmentFromSubjectIndex()
2111 return &mState.mStencilAttachment; in getAttachmentFromSubjectIndex()
2114 ASSERT(colorIndex < mState.mColorAttachments.size()); in getAttachmentFromSubjectIndex()
2115 return &mState.mColorAttachments[colorIndex]; in getAttachmentFromSubjectIndex()
2137 texture->isBoundToFramebuffer(mState.mFramebufferSerial)) in formsRenderingFeedbackLoopWith()
2140 for (const FramebufferAttachment &attachment : mState.mColorAttachments) in formsRenderingFeedbackLoopWith()
2148 if (AttachmentOverlapsWithTexture(mState.mDepthAttachment, texture, sampler)) in formsRenderingFeedbackLoopWith()
2153 if (AttachmentOverlapsWithTexture(mState.mStencilAttachment, texture, sampler)) in formsRenderingFeedbackLoopWith()
2167 if (mState.isDefault()) in formsCopyingFeedbackLoopWith()
2191 return mState.getDefaultWidth(); in getDefaultWidth()
2196 return mState.getDefaultHeight(); in getDefaultHeight()
2201 return mState.getDefaultSamples(); in getDefaultSamples()
2206 return mState.getDefaultFixedSampleLocations(); in getDefaultFixedSampleLocations()
2211 return mState.getDefaultLayers(); in getDefaultLayers()
2216 mState.mDefaultWidth = defaultWidth; in setDefaultWidth()
2223 mState.mDefaultHeight = defaultHeight; in setDefaultHeight()
2230 mState.mDefaultSamples = defaultSamples; in setDefaultSamples()
2238 mState.mDefaultFixedSampleLocations = defaultFixedSampleLocations; in setDefaultFixedSampleLocations()
2245 mState.mDefaultLayers = defaultLayers; in setDefaultLayers()
2251 return mState.getNumViews(); in getNumViews()
2256 return mState.getBaseViewIndex(); in getBaseViewIndex()
2261 return mState.isMultiview(); in isMultiview()
2266 return (mState.isMultiview() && mState.getNumViews() > 1); in readDisallowedByMultiview()
2334 for (size_t bit : mState.mResourceNeedsInit) in ensureDrawAttachmentsInitialized()
2339 ANGLE_TRY(InitAttachment(context, &mState.mDepthAttachment)); in ensureDrawAttachmentsInitialized()
2342 ANGLE_TRY(InitAttachment(context, &mState.mStencilAttachment)); in ensureDrawAttachmentsInitialized()
2345 ANGLE_TRY(InitAttachment(context, &mState.mColorAttachments[bit])); in ensureDrawAttachmentsInitialized()
2350 mState.mResourceNeedsInit.reset(); in ensureDrawAttachmentsInitialized()
2358 if (mState.mResourceNeedsInit.none()) in ensureReadAttachmentsInitialized()
2363 if (mState.mReadBufferState != GL_NONE) in ensureReadAttachmentsInitialized()
2367 if (!mState.mDefaultFramebufferReadAttachmentInitialized) in ensureReadAttachmentsInitialized()
2369 ANGLE_TRY(InitAttachment(context, &mState.mDefaultFramebufferReadAttachment)); in ensureReadAttachmentsInitialized()
2370 mState.mDefaultFramebufferReadAttachmentInitialized = true; in ensureReadAttachmentsInitialized()
2375 size_t readIndex = mState.getReadIndex(); in ensureReadAttachmentsInitialized()
2376 if (mState.mResourceNeedsInit[readIndex]) in ensureReadAttachmentsInitialized()
2378 ANGLE_TRY(InitAttachment(context, &mState.mColorAttachments[readIndex])); in ensureReadAttachmentsInitialized()
2379 mState.mResourceNeedsInit.reset(readIndex); in ensureReadAttachmentsInitialized()
2387 if (mState.mResourceNeedsInit[DIRTY_BIT_DEPTH_ATTACHMENT]) in ensureReadAttachmentsInitialized()
2389 ANGLE_TRY(InitAttachment(context, &mState.mDepthAttachment)); in ensureReadAttachmentsInitialized()
2390 mState.mResourceNeedsInit.reset(DIRTY_BIT_DEPTH_ATTACHMENT); in ensureReadAttachmentsInitialized()
2397 if (mState.mResourceNeedsInit[DIRTY_BIT_STENCIL_ATTACHMENT]) in ensureReadAttachmentsInitialized()
2399 ANGLE_TRY(InitAttachment(context, &mState.mStencilAttachment)); in ensureReadAttachmentsInitialized()
2400 mState.mResourceNeedsInit.reset(DIRTY_BIT_STENCIL_ATTACHMENT); in ensureReadAttachmentsInitialized()
2412 for (auto colorIndex : mState.mEnabledDrawBuffers) in markDrawAttachmentsInitialized()
2414 auto &colorAttachment = mState.mColorAttachments[colorIndex]; in markDrawAttachmentsInitialized()
2417 mState.mResourceNeedsInit.reset(colorIndex); in markDrawAttachmentsInitialized()
2421 if (depth && mState.mDepthAttachment.isAttached()) in markDrawAttachmentsInitialized()
2423 mState.mDepthAttachment.setInitState(InitState::Initialized); in markDrawAttachmentsInitialized()
2424 mState.mResourceNeedsInit.reset(DIRTY_BIT_DEPTH_ATTACHMENT); in markDrawAttachmentsInitialized()
2427 if (stencil && mState.mStencilAttachment.isAttached()) in markDrawAttachmentsInitialized()
2429 mState.mStencilAttachment.setInitState(InitState::Initialized); in markDrawAttachmentsInitialized()
2430 mState.mResourceNeedsInit.reset(DIRTY_BIT_STENCIL_ATTACHMENT); in markDrawAttachmentsInitialized()
2440 ASSERT(bufferIndex < static_cast<GLint>(mState.mColorAttachments.size())); in markBufferInitialized()
2441 if (mState.mColorAttachments[bufferIndex].isAttached()) in markBufferInitialized()
2443 mState.mColorAttachments[bufferIndex].setInitState(InitState::Initialized); in markBufferInitialized()
2444 mState.mResourceNeedsInit.reset(bufferIndex); in markBufferInitialized()
2450 if (mState.mDepthAttachment.isAttached()) in markBufferInitialized()
2452 mState.mDepthAttachment.setInitState(InitState::Initialized); in markBufferInitialized()
2453 mState.mResourceNeedsInit.reset(DIRTY_BIT_DEPTH_ATTACHMENT); in markBufferInitialized()
2459 if (mState.mStencilAttachment.isAttached()) in markBufferInitialized()
2461 mState.mStencilAttachment.setInitState(InitState::Initialized); in markBufferInitialized()
2462 mState.mResourceNeedsInit.reset(DIRTY_BIT_STENCIL_ATTACHMENT); in markBufferInitialized()
2468 if (mState.mDepthAttachment.isAttached()) in markBufferInitialized()
2470 mState.mDepthAttachment.setInitState(InitState::Initialized); in markBufferInitialized()
2471 mState.mResourceNeedsInit.reset(DIRTY_BIT_DEPTH_ATTACHMENT); in markBufferInitialized()
2473 if (mState.mStencilAttachment.isAttached()) in markBufferInitialized()
2475 mState.mStencilAttachment.setInitState(InitState::Initialized); in markBufferInitialized()
2476 mState.mResourceNeedsInit.reset(DIRTY_BIT_STENCIL_ATTACHMENT); in markBufferInitialized()
2488 return mState.getDimensions(); in getDimensions()
2493 return mState.getExtents(); in getExtents()
2502 if (mState.mResourceNeedsInit.none()) in ensureBufferInitialized()
2511 ASSERT(bufferIndex < static_cast<GLint>(mState.mColorAttachments.size())); in ensureBufferInitialized()
2512 if (mState.mResourceNeedsInit[bufferIndex]) in ensureBufferInitialized()
2514 ANGLE_TRY(InitAttachment(context, &mState.mColorAttachments[bufferIndex])); in ensureBufferInitialized()
2515 mState.mResourceNeedsInit.reset(bufferIndex); in ensureBufferInitialized()
2521 if (mState.mResourceNeedsInit[DIRTY_BIT_DEPTH_ATTACHMENT]) in ensureBufferInitialized()
2523 ANGLE_TRY(InitAttachment(context, &mState.mDepthAttachment)); in ensureBufferInitialized()
2524 mState.mResourceNeedsInit.reset(DIRTY_BIT_DEPTH_ATTACHMENT); in ensureBufferInitialized()
2530 if (mState.mResourceNeedsInit[DIRTY_BIT_STENCIL_ATTACHMENT]) in ensureBufferInitialized()
2532 ANGLE_TRY(InitAttachment(context, &mState.mStencilAttachment)); in ensureBufferInitialized()
2533 mState.mResourceNeedsInit.reset(DIRTY_BIT_STENCIL_ATTACHMENT); in ensureBufferInitialized()
2539 if (mState.mResourceNeedsInit[DIRTY_BIT_DEPTH_ATTACHMENT]) in ensureBufferInitialized()
2541 ANGLE_TRY(InitAttachment(context, &mState.mDepthAttachment)); in ensureBufferInitialized()
2542 mState.mResourceNeedsInit.reset(DIRTY_BIT_DEPTH_ATTACHMENT); in ensureBufferInitialized()
2544 if (mState.mResourceNeedsInit[DIRTY_BIT_STENCIL_ATTACHMENT]) in ensureBufferInitialized()
2546 ANGLE_TRY(InitAttachment(context, &mState.mStencilAttachment)); in ensureBufferInitialized()
2547 mState.mResourceNeedsInit.reset(DIRTY_BIT_STENCIL_ATTACHMENT); in ensureBufferInitialized()
2561 if (!context->isRobustResourceInitEnabled() || mState.mResourceNeedsInit.none()) in partialBufferClearNeedsInit()