Home
last modified time | relevance | path

Searched refs:mState (Results 1 – 25 of 152) sorted by relevance

1234567

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DContext.cpp56 mState.depthClearValue = 1.0f; in Context()
57 mState.stencilClearValue = 0; in Context()
59 mState.cullFaceEnabled = false; in Context()
60 mState.cullMode = GL_BACK; in Context()
61 mState.frontFace = GL_CCW; in Context()
62 mState.depthTestEnabled = false; in Context()
63 mState.depthFunc = GL_LESS; in Context()
64 mState.blendEnabled = false; in Context()
65 mState.sourceBlendRGB = GL_ONE; in Context()
66 mState.sourceBlendAlpha = GL_ONE; in Context()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DShader.cpp141 : mState(type), in Shader()
142 mImplementation(implFactory->createShader(mState)), in Shader()
170 mState.mLabel = label; in setLabel()
175 return mState.mLabel; in getLabel()
199 mState.mSource = stream.str(); in setSource()
235 return mState.mSource.empty() ? 0 : (static_cast<int>(mState.mSource.length()) + 1); in getSourceLength()
242 if (mState.mTranslatedSource.empty()) in getTranslatedSourceLength()
247 return (static_cast<int>(mState.mTranslatedSource.length()) + 1); in getTranslatedSourceLength()
287 GetSourceImpl(mState.mSource, bufSize, length, buffer); in getSource()
298 return mState.mTranslatedSource; in getTranslatedSource()
[all …]
DTransformFeedback.cpp91 mState(caps.maxTransformFeedbackSeparateAttributes), in TransformFeedback()
92 mImplementation(implFactory->createTransformFeedback(mState)) in TransformFeedback()
100 if (mState.mProgram) in onDestroy()
102 mState.mProgram->release(context); in onDestroy()
103 mState.mProgram = nullptr; in onDestroy()
106 ASSERT(!mState.mProgram); in onDestroy()
107 for (size_t i = 0; i < mState.mIndexedBuffers.size(); i++) in onDestroy()
109 mState.mIndexedBuffers[i].set(context, nullptr, 0, 0); in onDestroy()
125 mState.mLabel = label; in setLabel()
130 return mState.mLabel; in getLabel()
[all …]
DImage.cpp276 : mState(target, buffer, attribs), in Image()
277 mImplementation(factory->createImage(mState, context, target, attribs)), in Image()
283 mState.source->addImageSource(this); in Image()
290 ASSERT(mState.targets.empty()); in onDestroy()
296 if (mState.source != nullptr) in onDestroy()
298 mState.source->removeImageSource(this); in onDestroy()
301 if (IsExternalImageTarget(mState.sourceType)) in onDestroy()
303 ExternalImageSibling *externalSibling = rx::GetAs<ExternalImageSibling>(mState.source); in onDestroy()
308 mState.source = nullptr; in onDestroy()
319 mState.label = label; in setLabel()
[all …]
DProgramPipeline.cpp150 mProgramPipelineImpl(factory->createProgramPipeline(mState)), in ProgramPipeline()
159 mExecutableObserverBinding.bind(mState.mExecutable); in ProgramPipeline()
169 for (Program *program : mState.mPrograms) in onDestroy()
183 mState.mLabel = label; in setLabel()
188 return mState.mLabel; in getLabel()
198 mState.activeShaderProgram(shaderProgram); in activeShaderProgram()
205 mState.useProgramStages(context, stages, shaderProgram, &mProgramObserverBindings); in useProgramStages()
208 mState.mIsLinked = false; in useProgramStages()
215 mState.mExecutable->resetLinkedShaderStages(); in updateLinkedShaderStages()
219 Program *program = mState.mPrograms[shaderType]; in updateLinkedShaderStages()
[all …]
DFramebuffer.cpp792 : mState(caps, id, shareGroup->generateFramebufferSerial()), in Framebuffer()
793 mImpl(factory->createFramebuffer(mState)), in Framebuffer()
799 ASSERT(mState.mColorAttachments.size() == static_cast<size_t>(caps.maxColorAttachments)); in Framebuffer()
802 colorIndex < static_cast<uint32_t>(mState.mColorAttachments.size()); ++colorIndex) in Framebuffer()
813 : mState(context->getShareGroup()->generateFramebufferSerial()), in Framebuffer()
814 mImpl(surface->getImplementation()->createDefaultFramebuffer(context, mState)), in Framebuffer()
844 SetComponentTypeMask(getDrawbufferWriteType(0), 0, &mState.mDrawBufferTypeMask); in Framebuffer()
846 mState.mSurfaceTextureOffset = surface->getTextureOffset(); in Framebuffer()
855 : mState(context->getShareGroup()->generateFramebufferSerial()), in Framebuffer()
856 mImpl(factory->createFramebuffer(mState)), in Framebuffer()
[all …]
DSampler.cpp20 mState(), in Sampler()
22 mSampler(factory->createSampler(mState)), in Sampler()
51 mState.setMinFilter(minFilter); in setMinFilter()
57 return mState.getMinFilter(); in getMinFilter()
62 mState.setMagFilter(magFilter); in setMagFilter()
68 return mState.getMagFilter(); in getMagFilter()
73 mState.setWrapS(wrapS); in setWrapS()
79 return mState.getWrapS(); in getWrapS()
84 mState.setWrapT(wrapT); in setWrapT()
90 return mState.getWrapT(); in getWrapT()
[all …]
DBuffer.cpp47 mImpl(factory->createBuffer(mState)), in Buffer()
67 mState.mLabel = label; in setLabel()
72 return mState.mLabel; in getLabel()
112 if (mState.isMapped()) in bufferDataImpl()
141 mState.mSize = 0; in bufferDataImpl()
149 bool wholeBuffer = size == mState.mSize; in bufferDataImpl()
152 mState.mUsage = usage; in bufferDataImpl()
153 mState.mSize = size; in bufferDataImpl()
154 mState.mImmutable = (usage == BufferUsage::InvalidEnum); in bufferDataImpl()
155 mState.mStorageExtUsageFlags = flags; in bufferDataImpl()
[all …]
DProgram.cpp1371 mProgram(factory->createProgram(mState)), in Program()
1394 if (mState.mAttachedShaders[shaderType]) in onDestroy()
1396 mState.mAttachedShaders[shaderType]->release(context); in onDestroy()
1397 mState.mAttachedShaders[shaderType] = nullptr; in onDestroy()
1403 ASSERT(!mState.hasAttachedShader()); in onDestroy()
1417 mState.mLabel = label; in setLabel()
1423 return mState.mLabel; in getLabel()
1431 mState.mAttachedShaders[shaderType] = shader; in attachShader()
1432 mState.mAttachedShaders[shaderType]->addRef(); in attachShader()
1441 ASSERT(mState.mAttachedShaders[shaderType] == shader); in detachShader()
[all …]
DContext_gles_1_0.cpp41 mState.gles1().setAlphaFunc(func, ref); in alphaFunc()
46 mState.gles1().setAlphaFunc(func, ConvertFixedToFloat(ref)); in alphaFuncx()
51 mState.setColorClearValue(ConvertFixedToFloat(red), ConvertFixedToFloat(green), in clearColorx()
57 mState.setDepthClearValue(clamp01(ConvertFixedToFloat(depth))); in clearDepthx()
62 mState.gles1().setClientTextureUnit(texture - GL_TEXTURE0); in clientActiveTexture()
68 mState.gles1().setClipPlane(p - GL_CLIP_PLANE0, eqn); in clipPlanef()
80 mState.gles1().setClipPlane(plane - GL_CLIP_PLANE0, equationf); in clipPlanex()
85 mState.gles1().setCurrentColor({red, green, blue, alpha}); in color4f()
90 mState.gles1().setCurrentColor( in color4ub()
97 mState.gles1().setCurrentColor({ConvertFixedToFloat(red), ConvertFixedToFloat(green), in color4x()
[all …]
DTexture.cpp745 mState(type), in Texture()
746 mTexture(factory->createTexture(mState)), in Texture()
774 mState.mBuffer.set(context, nullptr, 0, 0); in onDestroy()
789 mState.mLabel = label; in setLabel()
799 return mState.mLabel; in getLabel()
804 mState.mSwizzleState.swizzleRed = swizzleRed; in setSwizzleRed()
810 return mState.mSwizzleState.swizzleRed; in getSwizzleRed()
815 mState.mSwizzleState.swizzleGreen = swizzleGreen; in setSwizzleGreen()
821 return mState.mSwizzleState.swizzleGreen; in getSwizzleGreen()
826 mState.mSwizzleState.swizzleBlue = swizzleBlue; in setSwizzleBlue()
[all …]
DContext.cpp362 : mState(shareContext ? &shareContext->mState : nullptr, in Context()
382 ->createContext(mState, &mErrors, config, shareContext, attribs)), in Context()
459 mState.initialize(this); in initializeDefaultResources()
498 for (int i = 0; i < mState.mCaps.maxAtomicCounterBufferBindings; i++) in initializeDefaultResources()
503 for (int i = 0; i < mState.mCaps.maxShaderStorageBufferBindings; i++) in initializeDefaultResources()
547 mState.initializeZeroTextures(this, mZeroTextures); in initializeDefaultResources()
552 mState.getShareGroup()->addSharedContext(this); in initializeDefaultResources()
572 for (int i = 0; i < mState.mCaps.maxUniformBufferBindings; i++) in initializeDefaultResources()
672 mGLES1Renderer->onDestroy(this, &mState); in onDestroy()
724 mState.reset(this); in onDestroy()
[all …]
DVertexArray.cpp113 mState(this, maxAttribs, maxAttribBindings), in VertexArray()
114 mVertexArray(factory->createVertexArray(mState)), in VertexArray()
131 VertexBinding &binding = mState.mVertexBindings[bindingIndex]; in onDestroy()
147 if (mState.mElementArrayBuffer.get()) in onDestroy()
151 mState.mElementArrayBuffer->onNonTFBindingChanged(-1); in onDestroy()
153 mState.mElementArrayBuffer->removeContentsObserver(this, kElementArrayBufferIndex); in onDestroy()
155 mState.mElementArrayBuffer.bind(context, nullptr); in onDestroy()
168 mState.mLabel = label; in setLabel()
173 return mState.mLabel; in getLabel()
182 VertexBinding &binding = mState.mVertexBindings[bindingIndex]; in detachBuffer()
[all …]
DRenderbuffer.cpp103 mState(), in Renderbuffer()
104 mImplementation(implFactory->createRenderbuffer(mState)), in Renderbuffer()
145 mState.update(width, height, Format(internalformat), 0, MultisamplingMode::Regular, in setStorage()
169 mState.update(width, height, Format(internalformat), samples, mode, in setStorageMultisample()
185 mState.update(static_cast<GLsizei>(image->getWidth()), static_cast<GLsizei>(image->getHeight()), in setStorageEGLImageTarget()
188 mState.setProtectedContent(image->hasProtectedContent()); in setStorageEGLImageTarget()
245 return mState.mWidth; in getWidth()
250 return mState.mHeight; in getHeight()
255 return mState.mFormat; in getFormat()
260 return mState.mMultisamplingMode == MultisamplingMode::Regular ? mState.mSamples : 0; in getSamples()
[all …]
DBuffer.h138 const BufferState &getState() const { return mState; } in getState()
139 BufferUsage getUsage() const { return mState.mUsage; } in getUsage()
140 GLbitfield getAccessFlags() const { return mState.mAccessFlags; } in getAccessFlags()
141 GLenum getAccess() const { return mState.mAccess; } in getAccess()
142 GLboolean isMapped() const { return mState.mMapped; } in isMapped()
145 return (mState.mStorageExtUsageFlags & GL_MAP_PERSISTENT_BIT_EXT) != 0; in isPersistentlyMapped()
147 void *getMapPointer() const { return mState.mMapPointer; } in getMapPointer()
148 GLint64 getMapOffset() const { return mState.mMapOffset; } in getMapOffset()
149 GLint64 getMapLength() const { return mState.mMapLength; } in getMapLength()
150 GLint64 getSize() const { return mState.mSize; } in getSize()
[all …]
DOverlay_autogen.cpp56 mState.mOverlayWidgets[WidgetId::FPS].reset(widget); in initOverlayWidgets()
79 mState.mOverlayWidgets[WidgetId::VulkanLastValidationMessage].reset(widget); in initOverlayWidgets()
88 mState.mOverlayWidgets[WidgetId::VulkanLastValidationMessage]->coords[1]; in initOverlayWidgets()
103 mState.mOverlayWidgets[WidgetId::VulkanValidationMessageCount].reset(widget); in initOverlayWidgets()
126 mState.mOverlayWidgets[WidgetId::VulkanRenderPassCount].reset(widget); in initOverlayWidgets()
130 mState.mOverlayWidgets[WidgetId::VulkanRenderPassCount]->coords[0]; in initOverlayWidgets()
132 mState.mOverlayWidgets[WidgetId::VulkanRenderPassCount]->coords[1]; in initOverlayWidgets()
169 mState.mOverlayWidgets[WidgetId::VulkanRenderPassBufferCount].reset(widget); in initOverlayWidgets()
173 mState.mOverlayWidgets[WidgetId::VulkanRenderPassBufferCount]->coords[0]; in initOverlayWidgets()
175 mState.mOverlayWidgets[WidgetId::VulkanRenderPassBufferCount]->coords[1]; in initOverlayWidgets()
[all …]
DProgramPipeline.h101 const ProgramPipelineState &getState() const { return mState; } in getState()
102 ProgramPipelineState &getState() { return mState; } in getState()
104 ProgramExecutable &getExecutable() const { return mState.getExecutable(); } in getExecutable()
108 Program *getActiveShaderProgram() { return mState.getActiveShaderProgram(); } in getActiveShaderProgram()
112 Program *program = mState.getActiveShaderProgram(); in getLinkedActiveShaderProgram()
124 Program *getShaderProgram(ShaderType shaderType) const { return mState.mPrograms[shaderType]; } in getShaderProgram()
126 void resetIsLinked() { mState.mIsLinked = false; } in resetIsLinked()
130 GLboolean isValid() const { return mState.isValid(); } in isValid()
131 bool isLinked() const { return mState.mIsLinked; } in isLinked()
151 ProgramPipelineState mState; variable
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DImageVk.cpp43 else if (egl::IsExternalImageTarget(mState.target)) in onDestroy()
45 ASSERT(mState.source != nullptr); in onDestroy()
47 GetImplAs<ExternalImageSiblingVk>(GetAs<egl::ExternalImageSibling>(mState.source)); in onDestroy()
60 if (egl::IsTextureTarget(mState.target)) in initialize()
64 TextureVk *textureVk = GetImplAs<TextureVk>(GetAs<gl::Texture>(mState.source)); in initialize()
79 mImageTextureType = mState.imageIndex.getType(); in initialize()
80 mImageLevel = gl::LevelIndex(mState.imageIndex.getLevelIndex()); in initialize()
81 mImageLayer = mState.imageIndex.hasLayer() ? mState.imageIndex.getLayerIndex() : 0; in initialize()
86 if (egl::IsRenderbufferTarget(mState.target)) in initialize()
89 GetImplAs<RenderbufferVk>(GetAs<gl::Renderbuffer>(mState.source)); in initialize()
[all …]
/third_party/skia/third_party/externals/oboe/src/common/
DLatencyTuner.cpp35 if (mState == State::Unsupported) { in tune()
49 if (mState == State::Idle && --mIdleCountDown <= 0) { in tune()
50 mState = State::Active; in tune()
54 if (mState == State::Active) { in tune()
70 mState = State::Unsupported; in tune()
72 mState = State::AtMax; in tune()
76 mState = State::Unsupported; in tune()
80 if (mState == State::Unsupported) { in tune()
84 if (mState == State::AtMax) { in tune()
91 if (mState != State::Unsupported) { in requestReset()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DBuddyAllocator.cpp43 if (block->mState == BlockState::Free) { in ComputeNumOfFreeBlocks()
45 } else if (block->mState == BlockState::Split) { in ComputeNumOfFreeBlocks()
99 ASSERT(block->mState == BlockState::Free); in InsertFreeBlock()
117 ASSERT(block->mState == BlockState::Free); in RemoveFreeBlock()
128 ASSERT(pPrev->mState == BlockState::Free); in RemoveFreeBlock()
133 ASSERT(pNext->mState == BlockState::Free); in RemoveFreeBlock()
162 ASSERT(currBlock->mState == BlockState::Free); in Allocate()
188 currBlock->mState = BlockState::Split; in Allocate()
197 currBlock->mState = BlockState::Allocated; in Allocate()
211 while (curr->mState == BlockState::Split) { in Deallocate()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cSparseTextureTests.cpp1616 , mState() in SparseTextureCommitmentTestCase()
1629 : TestCase(context, name, description), mState() in SparseTextureCommitmentTestCase()
1722 for (int l = 0; l < mState.levels; ++l) in iterate()
1726 for (int l = 0; l < mState.levels; ++l) in iterate()
1810 mState.minDepth = SparseTextureUtils::getTargetDepth(target); in prepareTexture()
1811 …eTextureUtils::getTexturePageSizes(gl, target, format, mState.pageSizeX, mState.pageSizeY, mState.… in prepareTexture()
1816 if (mState.pageSizeX > mState.pageSizeY) in prepareTexture()
1817 mState.pageSizeY = mState.pageSizeX; in prepareTexture()
1818 else if (mState.pageSizeX < mState.pageSizeY) in prepareTexture()
1819 mState.pageSizeX = mState.pageSizeY; in prepareTexture()
[all …]
Dgl4cSparseTextureClampTests.cpp289 if (level > mState.levels - 1) in verifyLookupTextureData()
295 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth); in verifyLookupTextureData()
300 if (widthCommitted == 0 || height == 0 || depth < mState.minDepth) in verifyLookupTextureData()
338 for (int sample = 0; sample < mState.samples; ++sample) in verifyLookupTextureData()
657 for (l = 0; l < mState.levels; ++l) in iterate()
704 if (level > mState.levels - 1) in writeDataToTexture()
710 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth); in writeDataToTexture()
712 if (width > 0 && height > 0 && depth >= mState.minDepth) in writeDataToTexture()
717 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture()
725 for (GLint sample = 0; sample < mState.samples; ++sample) in writeDataToTexture()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DFramebuffer11.cpp69 const auto &colorAttachments = mState.getColorAttachments(); in markAttachmentsDirty()
70 for (size_t drawBuffer : mState.getEnabledDrawBuffers()) in markAttachmentsDirty()
77 const gl::FramebufferAttachment *dsAttachment = mState.getDepthOrStencilAttachment(); in markAttachmentsDirty()
91 const gl::FramebufferAttachment *colorAttachment = mState.getFirstColorAttachment(); in clearImpl()
103 ANGLE_TRY(clearer->clearFramebuffer(context, presentPathFastClearParams, mState)); in clearImpl()
107 ANGLE_TRY(clearer->clearFramebuffer(context, clearParams, mState)); in clearImpl()
172 mState.getColorAttachment(colorIndex); in invalidateBase()
194 discardStencil = foundStencil && (!discardDepth || mState.getDepthAttachment() == nullptr); in invalidateBase()
204 (foundDepth && (mState.getStencilAttachment() == nullptr)); in invalidateBase()
205 discardStencil = (foundStencil && (mState.getDepthAttachment() == nullptr)); in invalidateBase()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DSamplerGL.cpp93 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MIN_FILTER… in syncState()
94 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAG_FILTER… in syncState()
95 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_S, &g… in syncState()
96 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_T, &g… in syncState()
97 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_R, &g… in syncState()
98 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAX_ANISOT… in syncState()
99 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MIN_LOD, &… in syncState()
100 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAX_LOD, &… in syncState()
101 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_COMPARE_MO… in syncState()
102 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_COMPARE_FU… in syncState()
[all …]
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
DGlitchAnalyzer.h43 return mState; in getState()
104 << mState << "\n"; in analyze()
108 bool gotLock = (mState == STATE_LOCKED) || (mGlitchCount > 0); in analyze()
127 ALOGD("st = %d, #gl = %3d,", mState, mGlitchCount); in printStatus()
173 mStateFrameCounters[mState]++; // count how many frames we are in each state in processInputFrame()
175 switch (mState) { in processInputFrame()
179 mState = STATE_IMMUNE; in processInputFrame()
189 mState = STATE_WAITING_FOR_SIGNAL; in processInputFrame()
195 mState = STATE_WAITING_FOR_LOCK; in processInputFrame()
213 mState = STATE_LOCKED; in processInputFrame()
[all …]

1234567