Home
last modified time | relevance | path

Searched refs:equation (Results 1 – 25 of 495) sorted by relevance

12345678910>>...20

/third_party/mesa3d/src/panfrost/lib/
Dpan_blend.c143 pan_blend_can_fixed_function(const struct pan_blend_equation equation, in pan_blend_can_fixed_function() argument
146 return !equation.blend_enable || in pan_blend_can_fixed_function()
147 (can_fixed_function_equation(equation.rgb_func, in pan_blend_can_fixed_function()
148 equation.rgb_src_factor, in pan_blend_can_fixed_function()
149 equation.rgb_invert_src_factor, in pan_blend_can_fixed_function()
150 equation.rgb_dst_factor, in pan_blend_can_fixed_function()
151 equation.rgb_invert_dst_factor, in pan_blend_can_fixed_function()
153 can_fixed_function_equation(equation.alpha_func, in pan_blend_can_fixed_function()
154 equation.alpha_src_factor, in pan_blend_can_fixed_function()
155 equation.alpha_invert_src_factor, in pan_blend_can_fixed_function()
[all …]
Dpan_blend.h62 struct pan_blend_equation equation; member
82 struct pan_blend_equation equation; member
105 pan_blend_can_fixed_function(const struct pan_blend_equation equation,
153 struct MALI_BLEND_EQUATION *equation);
156 pan_pack_blend(const struct pan_blend_equation equation);
/third_party/mesa3d/src/mesa/main/
Dclip.c59 GLfloat equation[4]; in _mesa_ClipPlane() local
67 equation[0] = (GLfloat) eq[0]; in _mesa_ClipPlane()
68 equation[1] = (GLfloat) eq[1]; in _mesa_ClipPlane()
69 equation[2] = (GLfloat) eq[2]; in _mesa_ClipPlane()
70 equation[3] = (GLfloat) eq[3]; in _mesa_ClipPlane()
83 _mesa_transform_vector( equation, equation, in _mesa_ClipPlane()
86 if (TEST_EQ_4V(ctx->Transform.EyeUserPlane[p], equation)) in _mesa_ClipPlane()
92 COPY_4FV(ctx->Transform.EyeUserPlane[p], equation); in _mesa_ClipPlane()
101 _mesa_GetClipPlane( GLenum plane, GLdouble *equation ) in _mesa_GetClipPlane() argument
112 equation[0] = (GLdouble) ctx->Transform.EyeUserPlane[p][0]; in _mesa_GetClipPlane()
[all …]
/third_party/skia/src/gpu/
DGrBlend.h102 static constexpr bool GrBlendEquationIsAdvanced(GrBlendEquation equation) { in GrBlendEquationIsAdvanced() argument
103 return equation >= kFirstAdvancedGrBlendEquation in GrBlendEquationIsAdvanced()
104 && equation != kIllegal_GrBlendEquation; in GrBlendEquationIsAdvanced()
107 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
109 return (kAdd_GrBlendEquation != equation && kReverseSubtract_GrBlendEquation != equation) || in GrBlendModifiesDst()
117 static constexpr bool GrBlendShouldDisable(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendShouldDisable() argument
119 return (kAdd_GrBlendEquation == equation || kSubtract_GrBlendEquation == equation) && in GrBlendShouldDisable()
150 static constexpr bool GrBlendAllowsCoverageAsAlpha(GrBlendEquation equation, in GrBlendAllowsCoverageAsAlpha() argument
153 return GrBlendEquationIsAdvanced(equation) || in GrBlendAllowsCoverageAsAlpha()
154 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
[all …]
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_shader.c117 options.rt[rt].colormask = rt_state->equation.color_mask; in panvk_lower_blend()
119 if (!rt_state->equation.blend_enable) { in panvk_lower_blend()
131 options.rt[rt].rgb.func = rt_state->equation.rgb_func; in panvk_lower_blend()
132 options.rt[rt].rgb.src_factor = rt_state->equation.rgb_src_factor; in panvk_lower_blend()
133 options.rt[rt].rgb.invert_src_factor = rt_state->equation.rgb_invert_src_factor; in panvk_lower_blend()
134 options.rt[rt].rgb.dst_factor = rt_state->equation.rgb_dst_factor; in panvk_lower_blend()
135 options.rt[rt].rgb.invert_dst_factor = rt_state->equation.rgb_invert_dst_factor; in panvk_lower_blend()
136 options.rt[rt].alpha.func = rt_state->equation.alpha_func; in panvk_lower_blend()
137 options.rt[rt].alpha.src_factor = rt_state->equation.alpha_src_factor; in panvk_lower_blend()
138 options.rt[rt].alpha.invert_src_factor = rt_state->equation.alpha_invert_src_factor; in panvk_lower_blend()
[all …]
/third_party/flutter/skia/src/gpu/
DGrBlend.h102 static constexpr bool GrBlendEquationIsAdvanced(GrBlendEquation equation) { in GrBlendEquationIsAdvanced() argument
103 return equation >= kFirstAdvancedGrBlendEquation in GrBlendEquationIsAdvanced()
104 && equation != kIllegal_GrBlendEquation; in GrBlendEquationIsAdvanced()
107 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
109 return (kAdd_GrBlendEquation != equation && kReverseSubtract_GrBlendEquation != equation) || in GrBlendModifiesDst()
140 static constexpr bool GrBlendAllowsCoverageAsAlpha(GrBlendEquation equation, in GrBlendAllowsCoverageAsAlpha() argument
143 return GrBlendEquationIsAdvanced(equation) || in GrBlendAllowsCoverageAsAlpha()
144 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
145 ((kAdd_GrBlendEquation == equation || kReverseSubtract_GrBlendEquation == equation) && in GrBlendAllowsCoverageAsAlpha()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/fact_manager/
Ddata_synonym_and_id_equation_facts.cpp171 for (const auto& equation : GetEquations(rhs_dds[0])) { in AddEquationFactRecursive() local
172 if (equation.opcode == SpvOpISub) { in AddEquationFactRecursive()
174 if (synonymous_.IsEquivalent(*equation.operands[1], *rhs_dds[1])) { in AddEquationFactRecursive()
177 AddDataSynonymFactRecursive(lhs_dd, *equation.operands[0]); in AddEquationFactRecursive()
181 for (const auto& equation : GetEquations(rhs_dds[1])) { in AddEquationFactRecursive() local
182 if (equation.opcode == SpvOpISub) { in AddEquationFactRecursive()
184 if (synonymous_.IsEquivalent(*equation.operands[1], *rhs_dds[0])) { in AddEquationFactRecursive()
187 AddDataSynonymFactRecursive(lhs_dd, *equation.operands[0]); in AddEquationFactRecursive()
195 for (const auto& equation : GetEquations(rhs_dds[0])) { in AddEquationFactRecursive() local
196 if (equation.opcode == SpvOpIAdd) { in AddEquationFactRecursive()
[all …]
/third_party/spirv-tools/source/fuzz/fact_manager/
Ddata_synonym_and_id_equation_facts.cpp171 for (const auto& equation : GetEquations(rhs_dds[0])) { in AddEquationFactRecursive() local
172 if (equation.opcode == SpvOpISub) { in AddEquationFactRecursive()
174 if (synonymous_.IsEquivalent(*equation.operands[1], *rhs_dds[1])) { in AddEquationFactRecursive()
177 AddDataSynonymFactRecursive(lhs_dd, *equation.operands[0]); in AddEquationFactRecursive()
181 for (const auto& equation : GetEquations(rhs_dds[1])) { in AddEquationFactRecursive() local
182 if (equation.opcode == SpvOpISub) { in AddEquationFactRecursive()
184 if (synonymous_.IsEquivalent(*equation.operands[1], *rhs_dds[0])) { in AddEquationFactRecursive()
187 AddDataSynonymFactRecursive(lhs_dd, *equation.operands[0]); in AddEquationFactRecursive()
195 for (const auto& equation : GetEquations(rhs_dds[0])) { in AddEquationFactRecursive() local
196 if (equation.opcode == SpvOpIAdd) { in AddEquationFactRecursive()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/fact_manager/
Ddata_synonym_and_id_equation_facts.cpp171 for (const auto& equation : GetEquations(rhs_dds[0])) { in AddEquationFactRecursive() local
172 if (equation.opcode == SpvOpISub) { in AddEquationFactRecursive()
174 if (synonymous_.IsEquivalent(*equation.operands[1], *rhs_dds[1])) { in AddEquationFactRecursive()
177 AddDataSynonymFactRecursive(lhs_dd, *equation.operands[0]); in AddEquationFactRecursive()
181 for (const auto& equation : GetEquations(rhs_dds[1])) { in AddEquationFactRecursive() local
182 if (equation.opcode == SpvOpISub) { in AddEquationFactRecursive()
184 if (synonymous_.IsEquivalent(*equation.operands[1], *rhs_dds[0])) { in AddEquationFactRecursive()
187 AddDataSynonymFactRecursive(lhs_dd, *equation.operands[0]); in AddEquationFactRecursive()
195 for (const auto& equation : GetEquations(rhs_dds[0])) { in AddEquationFactRecursive() local
196 if (equation.opcode == SpvOpIAdd) { in AddEquationFactRecursive()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DGLES1State.cpp48 ClipPlaneParameters::ClipPlaneParameters(bool enabled, const angle::Vector4 &equation) in ClipPlaneParameters() argument
49 : enabled(enabled), equation(equation) in ClipPlaneParameters()
454 void GLES1State::setClipPlane(unsigned int plane, const GLfloat *equation) in setClipPlane() argument
458 mClipPlanes[plane].equation[0] = equation[0]; in setClipPlane()
459 mClipPlanes[plane].equation[1] = equation[1]; in setClipPlane()
460 mClipPlanes[plane].equation[2] = equation[2]; in setClipPlane()
461 mClipPlanes[plane].equation[3] = equation[3]; in setClipPlane()
464 void GLES1State::getClipPlane(unsigned int plane, GLfloat *equation) const in getClipPlane()
467 equation[0] = mClipPlanes[plane].equation[0]; in getClipPlane()
468 equation[1] = mClipPlanes[plane].equation[1]; in getClipPlane()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DGLES1State.cpp48 ClipPlaneParameters::ClipPlaneParameters(bool enabled, const angle::Vector4 &equation) in ClipPlaneParameters() argument
49 : enabled(enabled), equation(equation) in ClipPlaneParameters()
436 void GLES1State::setClipPlane(unsigned int plane, const GLfloat *equation) in setClipPlane() argument
440 mClipPlanes[plane].equation[0] = equation[0]; in setClipPlane()
441 mClipPlanes[plane].equation[1] = equation[1]; in setClipPlane()
442 mClipPlanes[plane].equation[2] = equation[2]; in setClipPlane()
443 mClipPlanes[plane].equation[3] = equation[3]; in setClipPlane()
446 void GLES1State::getClipPlane(unsigned int plane, GLfloat *equation) const in getClipPlane()
449 equation[0] = mClipPlanes[plane].equation[0]; in getClipPlane()
450 equation[1] = mClipPlanes[plane].equation[1]; in getClipPlane()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/extensions/
DEXT_blend_minmax.txt26 equation. While this document defines only two new equations, the
38 equation includes the parameters specified by BlendFunc. (The min
70 The GL Specification defines a single blending equation. This
71 extension introduces a blend equation mode that is specified by calling
73 value FUNC_ADD_EXT specifies that the blending equation defined in
74 the GL Specification be used. This equation is
86 blending equation becomes
91 blending equation becomes
95 In all cases the blending equation is evaluated separately for each
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/
DEXT_blend_minmax.txt26 equation. While this document defines only two new equations, the
38 equation includes the parameters specified by BlendFunc. (The min
70 The GL Specification defines a single blending equation. This
71 extension introduces a blend equation mode that is specified by calling
73 value FUNC_ADD_EXT specifies that the blending equation defined in
74 the GL Specification be used. This equation is
86 blending equation becomes
91 blending equation becomes
95 In all cases the blending equation is evaluated separately for each
DEXT_blend_logic_op.txt23 A single additional blending equation is specified using the interface
24 defined by EXT_blend_minmax. This equation is a simple logical
49 A single additional blending equation is defined. If BlendEquationEXT
50 is called with <mode> set to LOGIC_OP, the blending equation becomes
59 when the blend equation is specified as LOGIC_OP.
/third_party/openGLES/extensions/EXT/
DEXT_blend_minmax.txt26 equation. While this document defines only two new equations, the
38 equation includes the parameters specified by BlendFunc. (The min
70 The GL Specification defines a single blending equation. This
71 extension introduces a blend equation mode that is specified by calling
73 value FUNC_ADD_EXT specifies that the blending equation defined in
74 the GL Specification be used. This equation is
86 blending equation becomes
91 blending equation becomes
95 In all cases the blending equation is evaluated separately for each
DEXT_blend_logic_op.txt23 A single additional blending equation is specified using the interface
24 defined by EXT_blend_minmax. This equation is a simple logical
49 A single additional blending equation is defined. If BlendEquationEXT
50 is called with <mode> set to LOGIC_OP, the blending equation becomes
59 when the blend equation is specified as LOGIC_OP.
/third_party/mesa3d/src/amd/common/
Dac_surface_meta_address_test.c122 const uint16_t *equation, in gfx10_meta_addr_from_coord() argument
143 if (equation[i*4+c] != 0) { in gfx10_meta_addr_from_coord()
144 unsigned mask = equation[i*4+c]; in gfx10_meta_addr_from_coord()
176 const uint16_t *equation, unsigned bpp, in gfx10_dcc_addr_from_coord() argument
188 return gfx10_meta_addr_from_coord(info, equation, in gfx10_dcc_addr_from_coord()
266 assert(dout.equation.gfx9.num_bits <= ARRAY_SIZE(eq.u.gfx9.bit)); in one_dcc_address_test()
270 assert(dout.equation.gfx10_bits[i] == 0); in one_dcc_address_test()
273 assert(dout.equation.gfx10_bits[i] == 0); in one_dcc_address_test()
288 … addr = gfx9_meta_addr_from_coord(info, &dout.equation.gfx9, dout.metaBlkWidth, dout.metaBlkHeight, in one_dcc_address_test()
294 … gfx9_meta_addr_from_coord(info, &dout.equation.gfx9, dout.metaBlkWidth, dout.metaBlkHeight, in one_dcc_address_test()
[all …]
Dac_surface.c1638 struct gfx9_meta_equation *equation) in ac_copy_dcc_equation() argument
1640 equation->meta_block_width = dcc->metaBlkWidth; in ac_copy_dcc_equation()
1641 equation->meta_block_height = dcc->metaBlkHeight; in ac_copy_dcc_equation()
1642 equation->meta_block_depth = dcc->metaBlkDepth; in ac_copy_dcc_equation()
1647 assert(dcc->equation.gfx10_bits[i] == 0); in ac_copy_dcc_equation()
1649 for (unsigned i = ARRAY_SIZE(equation->u.gfx10_bits) + 4; i < 68; i++) in ac_copy_dcc_equation()
1650 assert(dcc->equation.gfx10_bits[i] == 0); in ac_copy_dcc_equation()
1652 memcpy(equation->u.gfx10_bits, dcc->equation.gfx10_bits + 4, in ac_copy_dcc_equation()
1653 sizeof(equation->u.gfx10_bits)); in ac_copy_dcc_equation()
1655 assert(dcc->equation.gfx9.num_bits <= ARRAY_SIZE(equation->u.gfx9.bit)); in ac_copy_dcc_equation()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fNegativeAdvancedBlendEquationTests.cpp81 std::string getShaderLayoutEquation (BlendEquation equation) in getShaderLayoutEquation() argument
83 switch (equation) in getShaderLayoutEquation()
107 glw::GLenum getEquation (BlendEquation equation) in getEquation() argument
109 switch (equation) in getEquation()
147 std::string generateFragmentShaderSource (NegativeTestContext& ctx, BlendEquation equation) in generateFragmentShaderSource() argument
155 << "layout(" << getShaderLayoutEquation(equation) << ") out;\n" in generateFragmentShaderSource()
165 glu::ProgramSources generateProgramSources (NegativeTestContext& ctx, BlendEquation equation) in generateProgramSources() argument
169 << glu::FragmentSource(generateFragmentShaderSource(ctx, equation)); in generateProgramSources()
Des31fFboSRGBWriteControlTests.cpp288 deUint32 equation; member
298 blendConfigs[0].equation = GL_FUNC_ADD; in getBlendingConfigList()
299 blendConfigs[1].equation = GL_FUNC_ADD; in getBlendingConfigList()
300 blendConfigs[2].equation = GL_FUNC_ADD; in getBlendingConfigList()
301 blendConfigs[3].equation = GL_FUNC_ADD; in getBlendingConfigList()
313 blendConfigs[4].equation = GL_FUNC_SUBTRACT; in getBlendingConfigList()
314 blendConfigs[5].equation = GL_FUNC_SUBTRACT; in getBlendingConfigList()
315 blendConfigs[6].equation = GL_FUNC_SUBTRACT; in getBlendingConfigList()
316 blendConfigs[7].equation = GL_FUNC_SUBTRACT; in getBlendingConfigList()
328 blendConfigs[8].equation = GL_FUNC_REVERSE_SUBTRACT; in getBlendingConfigList()
[all …]
/third_party/openGLES/extensions/SGIX/
DSGIX_reference_plane.txt32 The reference plane is defined by a four-component plane equation.
33 When glReferencePlaneSGIX is called, equation is transformed by the
59 void glReferencePlaneSGIX(const GLdouble *equation);
82 Let the reference plane be defined by a four-component plane equation
117 4 FLOAT32 a (x coefficient) of plane equation
118 4 FLOAT32 b (y coefficient) of plane equation
119 4 FLOAT32 c (z coefficient) of plane equation
120 4 FLOAT32 d (constant term) of plane equation
DSGIX_blend_cmultiply.txt27 An additional blending equation is specified using the interface defined
28 by EXT_blend_minmax. This equation generates the product of two complex
55 An additional blending equation is defined. If BlendEquationEXT is
56 called with <mode> set to FUNC_COMPLEX_MULTIPLY_EXT, the blending equation
68 In all cases the blending equation is evaluated separately for each
/third_party/skia/third_party/externals/opengl-registry/extensions/SGIX/
DSGIX_reference_plane.txt32 The reference plane is defined by a four-component plane equation.
33 When glReferencePlaneSGIX is called, equation is transformed by the
59 void glReferencePlaneSGIX(const GLdouble *equation);
82 Let the reference plane be defined by a four-component plane equation
117 4 FLOAT32 a (x coefficient) of plane equation
118 4 FLOAT32 b (y coefficient) of plane equation
119 4 FLOAT32 c (z coefficient) of plane equation
120 4 FLOAT32 d (constant term) of plane equation
DSGIX_blend_cadd.txt27 An additional blending equation is specified using the interface defined
28 by EXT_blend_minmax. This equation generates the addition of two complex
54 An additional blending equation is defined. If BlendEquationEXT is
55 called with <mode> set to FUNC_COMPLEX_ADD_EXT, the blending equation
67 In all cases the blending equation is evaluated separately for each
/third_party/flutter/skia/src/gpu/glsl/
DGrGLSLFragmentShaderBuilder.cpp19 static const char* specific_layout_qualifier_name(GrBlendEquation equation) { in specific_layout_qualifier_name() argument
20 SkASSERT(GrBlendEquationIsAdvanced(equation)); in specific_layout_qualifier_name()
39 return kLayoutQualifierNames[equation - kFirstAdvancedGrBlendEquation]; in specific_layout_qualifier_name()
202 void GrGLSLFragmentShaderBuilder::enableAdvancedBlendEquationIfNeeded(GrBlendEquation equation) { in enableAdvancedBlendEquationIfNeeded() argument
203 SkASSERT(GrBlendEquationIsAdvanced(equation)); in enableAdvancedBlendEquationIfNeeded()
213 this->addLayoutQualifier(specific_layout_qualifier_name(equation), kOut_InterfaceQualifier); in enableAdvancedBlendEquationIfNeeded()

12345678910>>...20