Home
last modified time | relevance | path

Searched refs:blendStateExt (Results 1 – 20 of 20) sorted by relevance

/aosp_15_r20/external/angle/src/libANGLE/
H A DBlendStateExt_unittest.cpp42 const gl::BlendStateExt blendStateExt = gl::BlendStateExt(c); in TEST() local
43 ASSERT_EQ(blendStateExt.getDrawBufferCount(), c); in TEST()
45 ASSERT_EQ(blendStateExt.getEnabledMask().to_ulong(), 0u); in TEST()
46 ASSERT_EQ(blendStateExt.getAllEnabledMask().to_ulong(), allEnabledMasks[c]); in TEST()
48 ASSERT_EQ(blendStateExt.getColorMaskBits(), blendStateExt.getAllColorMaskBits()); in TEST()
49 ASSERT_EQ(blendStateExt.getAllColorMaskBits(), in TEST()
52 ASSERT_EQ(blendStateExt.getUsesAdvancedBlendEquationMask().to_ulong(), 0u); in TEST()
54 ASSERT_EQ(blendStateExt.getUsesExtendedBlendFactorMask().to_ulong(), 0u); in TEST()
56 ASSERT_EQ(blendStateExt.getSrcColorBits(), sourceColorAlpha[c]); in TEST()
57 ASSERT_EQ(blendStateExt.getSrcAlphaBits(), sourceColorAlpha[c]); in TEST()
[all …]
H A DvalidationES.cpp490 const auto &blendStateExt = glState.getBlendStateExt(); in ValidateFragmentShaderColorBufferMaskMatch() local
491 auto drawBufferMask = framebuffer->getDrawBufferMask() & blendStateExt.compareColorMask(0); in ValidateFragmentShaderColorBufferMaskMatch()
492 auto dualSourceBlendingMask = drawBufferMask & blendStateExt.getEnabledMask() & in ValidateFragmentShaderColorBufferMaskMatch()
493 blendStateExt.getUsesExtendedBlendFactorMask(); in ValidateFragmentShaderColorBufferMaskMatch()
4339 const BlendStateExt &blendStateExt = state.getBlendStateExt(); in ValidateDrawStates() local
4340 if (blendStateExt.getUsesAdvancedBlendEquationMask().any()) in ValidateDrawStates()
4345 for (size_t drawBufferIndex : blendStateExt.getUsesAdvancedBlendEquationMask()) in ValidateDrawStates()
4349 blendStateExt.getEnabledMask().test(drawBufferIndex) && in ValidateDrawStates()
4350 blendStateExt.getUsesAdvancedBlendEquationMask().test(drawBufferIndex)) in ValidateDrawStates()
4363 if (blendStateExt.getUsesExtendedBlendFactorMask().any()) in ValidateDrawStates()
H A DContext.cpp419 bool IsColorMaskedOut(const BlendStateExt &blendStateExt, const GLint drawbuffer) in IsColorMaskedOut() argument
421 ASSERT(static_cast<size_t>(drawbuffer) < blendStateExt.getDrawBufferCount()); in IsColorMaskedOut()
422 return blendStateExt.getColorMaskIndexed(static_cast<size_t>(drawbuffer)) == 0; in IsColorMaskedOut()
/aosp_15_r20/external/angle/src/libANGLE/renderer/d3d/d3d11/
H A DRenderStateCache.cpp48 const gl::BlendStateExt &blendStateExt, in GetBlendStateKey() argument
55 key.blendStateExt = gl::BlendStateExt(blendStateExt.getDrawBufferCount()); in GetBlendStateKey()
60 ASSERT(blendStateExt.getDrawBufferCount() <= colorAttachmentsForRenderMask.size()); in GetBlendStateKey()
81 const uint8_t colorMask = blendStateExt.getColorMaskIndexed(sourceIndex); in GetBlendStateKey()
85 key.blendStateExt.setColorMaskIndexed(keyBlendIndex, in GetBlendStateKey()
92 if (blendStateExt.getEnabledMask().test(sourceIndex) && !internalFormat.isInt()) in GetBlendStateKey()
94 key.blendStateExt.setEnabledIndexed(keyBlendIndex, true); in GetBlendStateKey()
95 key.blendStateExt.setEquationsIndexed(keyBlendIndex, sourceIndex, blendStateExt); in GetBlendStateKey()
101 blendStateExt.getEquationColorIndexed(sourceIndex); in GetBlendStateKey()
103 blendStateExt.getEquationAlphaIndexed(sourceIndex); in GetBlendStateKey()
[all …]
H A DClear11.cpp260 mBlendStateKey.blendStateExt = gl::BlendStateExt(mRenderer->getNativeCaps().maxDrawBuffers); in ensureResourcesInitialized()
609 mBlendStateKey.blendStateExt.setColorMask(false, false, false, false); in clearFramebuffer()
612 mBlendStateKey.blendStateExt.setColorMaskIndexed(i, rtvMasks[i]); in clearFramebuffer()
H A DStateManager11.cpp964 const gl::BlendStateExt &blendStateExt = state.getBlendStateExt(); in syncState() local
966 blendStateExt.getDrawBufferCount()); in syncState()
969 if ((blendStateExt.getEnabledMask() & in syncState()
970 mCurBlendStateExt.compareEquations(blendStateExt)) in syncState()
979 const gl::BlendStateExt &blendStateExt = state.getBlendStateExt(); in syncState() local
981 blendStateExt.getDrawBufferCount()); in syncState()
984 if ((blendStateExt.getEnabledMask() & in syncState()
985 mCurBlendStateExt.compareFactors(blendStateExt)) in syncState()
1272 const gl::BlendStateExt &blendStateExt, in syncBlendState() argument
1280 context, mFramebuffer11, blendStateExt, sampleAlphaToCoverage); in syncBlendState()
[all …]
H A DRenderStateCache.h72 const gl::BlendStateExt &blendStateExt,
H A Drenderer11_utils.h152 gl::BlendStateExt blendStateExt; member
H A DStateManager11.h345 const gl::BlendStateExt &blendStateExt,
H A Drenderer11_utils.cpp2353 blendStateExt = gl::BlendStateExt(); in BlendStateKey()
/aosp_15_r20/external/angle/src/libANGLE/renderer/gl/
H A DStateManagerGL.cpp1374 void StateManagerGL::setBlendFuncs(const gl::BlendStateExt &blendStateExt) in setBlendFuncs() argument
1376 if (mBlendStateExt.getSrcColorBits() == blendStateExt.getSrcColorBits() && in setBlendFuncs()
1377 mBlendStateExt.getDstColorBits() == blendStateExt.getDstColorBits() && in setBlendFuncs()
1378 mBlendStateExt.getSrcAlphaBits() == blendStateExt.getSrcAlphaBits() && in setBlendFuncs()
1379 mBlendStateExt.getDstAlphaBits() == blendStateExt.getDstAlphaBits()) in setBlendFuncs()
1386 mFunctions->blendFuncSeparate(ToGLenum(blendStateExt.getSrcColorIndexed(0)), in setBlendFuncs()
1387 ToGLenum(blendStateExt.getDstColorIndexed(0)), in setBlendFuncs()
1388 ToGLenum(blendStateExt.getSrcAlphaIndexed(0)), in setBlendFuncs()
1389 ToGLenum(blendStateExt.getDstAlphaIndexed(0))); in setBlendFuncs()
1394 gl::DrawBufferMask diffMask = mBlendStateExt.compareFactors(blendStateExt); in setBlendFuncs()
[all …]
H A DStateManagerGL.h228 void setBlendFuncs(const gl::BlendStateExt &blendStateExt);
229 void setBlendEquations(const gl::BlendStateExt &blendStateExt);
278 void setColorMaskForFramebuffer(const gl::BlendStateExt &blendStateExt,
/aosp_15_r20/external/angle/src/libANGLE/capture/
H A Dserialize.cpp432 void SerializeBlendStateExt(JsonSerializer *json, const gl::BlendStateExt &blendStateExt) in SerializeBlendStateExt() argument
435 json->addScalar("DrawBufferCount", blendStateExt.getDrawBufferCount()); in SerializeBlendStateExt()
436 json->addScalar("EnableMask", blendStateExt.getEnabledMask().bits()); in SerializeBlendStateExt()
437 json->addScalar("DstColor", blendStateExt.getDstColorBits()); in SerializeBlendStateExt()
438 json->addScalar("DstAlpha", blendStateExt.getDstAlphaBits()); in SerializeBlendStateExt()
439 json->addScalar("SrcColor", blendStateExt.getSrcColorBits()); in SerializeBlendStateExt()
440 json->addScalar("SrcAlpha", blendStateExt.getSrcAlphaBits()); in SerializeBlendStateExt()
441 json->addScalar("EquationColor", blendStateExt.getEquationColorBits()); in SerializeBlendStateExt()
442 json->addScalar("EquationAlpha", blendStateExt.getEquationAlphaBits()); in SerializeBlendStateExt()
443 json->addScalar("ColorMask", blendStateExt.getColorMaskBits()); in SerializeBlendStateExt()
/aosp_15_r20/external/angle/src/libANGLE/renderer/metal/
H A DContextMtl.mm1181 const gl::BlendStateExt &blendStateExt = glState.getBlendStateExt();
1183 for (; i < blendStateExt.getDrawBufferCount(); i++)
1185 mBlendDescArray[i].updateWriteMask(blendStateExt.getColorMaskIndexed(i));
2122 void ContextMtl::updateBlendDescArray(const gl::BlendStateExt &blendStateExt)
2127 if (blendStateExt.getEnabledMask().test(i))
2132 mtl::GetBlendFactor(blendStateExt.getSrcColorIndexed(i));
2134 mtl::GetBlendFactor(blendStateExt.getSrcAlphaIndexed(i));
2136 mtl::GetBlendFactor(blendStateExt.getDstColorIndexed(i));
2138 mtl::GetBlendFactor(blendStateExt.getDstAlphaIndexed(i));
2140 blendDesc.rgbBlendOperation = mtl::GetBlendOp(blendStateExt.getEquationColorIndexed(i));
[all …]
H A DContextMtl.h508 void updateBlendDescArray(const gl::BlendStateExt &blendStateExt);
/aosp_15_r20/external/angle/src/libANGLE/renderer/wgpu/
H A DContextWgpu.cpp611 const gl::BlendStateExt &blendStateExt = mState.getBlendStateExt(); in syncState() local
612 for (size_t i = 0; i < blendStateExt.getDrawBufferCount(); i++) in syncState()
615 blendStateExt.getColorMaskIndexed(i, &r, &g, &b, &a); in syncState()
/aosp_15_r20/external/angle/src/libANGLE/renderer/vulkan/
H A Dvk_cache_utils.cpp4414 const gl::BlendStateExt &blendStateExt, in updateBlendEquations() argument
4424 PackGLBlendOp(blendStateExt.getEquationColorIndexed(attachmentIndex)); in updateBlendEquations()
4426 PackGLBlendOp(blendStateExt.getEquationAlphaIndexed(attachmentIndex)); in updateBlendEquations()
4433 const gl::BlendStateExt &blendStateExt, in updateBlendFuncs() argument
4442 PackGLBlendFactor(blendStateExt.getSrcColorIndexed(attachmentIndex)); in updateBlendFuncs()
4444 PackGLBlendFactor(blendStateExt.getDstColorIndexed(attachmentIndex)); in updateBlendFuncs()
4446 PackGLBlendFactor(blendStateExt.getSrcAlphaIndexed(attachmentIndex)); in updateBlendFuncs()
4448 PackGLBlendFactor(blendStateExt.getDstAlphaIndexed(attachmentIndex)); in updateBlendFuncs()
4455 const gl::BlendStateExt &blendStateExt, in resetBlendFuncsAndEquations() argument
4485 updateBlendFuncs(transition, blendStateExt, attachmentsToAdd); in resetBlendFuncsAndEquations()
[all …]
H A Dvk_cache_utils.h934 const gl::BlendStateExt &blendStateExt,
937 const gl::BlendStateExt &blendStateExt,
940 const gl::BlendStateExt &blendStateExt,
H A DContextVk.cpp287 const gl::BlendStateExt &blendStateExt = state.getBlendStateExt(); in GetColorAccess() local
289 colorIndexGL, blendStateExt.getColorMaskBits()); in GetColorAccess()
4969 const gl::BlendStateExt &blendStateExt = mState.getBlendStateExt(); in updateColorMasks() local
4971 mClearColorMasks = blendStateExt.getColorMaskBits(); in updateColorMasks()
5003 const gl::BlendStateExt &blendStateExt = mState.getBlendStateExt(); in updateBlendFuncsAndEquations() local
5008 mGraphicsPipelineDesc->updateBlendFuncs(&mGraphicsPipelineTransition, blendStateExt, in updateBlendFuncsAndEquations()
5011 mGraphicsPipelineDesc->updateBlendEquations(&mGraphicsPipelineTransition, blendStateExt, in updateBlendFuncsAndEquations()
7173 const gl::BlendStateExt &blendStateExt = mState.getBlendStateExt(); in handleDirtyGraphicsDriverUniforms() local
7174 if (blendStateExt.getUsesAdvancedBlendEquationMask().test(0)) in handleDirtyGraphicsDriverUniforms()
H A Dvk_helpers.cpp3144 const gl::BlendStateExt &blendStateExt = state.getBlendStateExt(); in invalidateRenderPassColorAttachment() local
3146 blendStateExt.getColorMaskIndexed(colorIndexGL) != 0 && !state.isRasterizerDiscardEnabled(); in invalidateRenderPassColorAttachment()