/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_state.c | 173 static unsigned blend_discard_conditionally(unsigned eqRGB, unsigned eqA, in blend_discard_conditionally() argument 190 (eqA == PIPE_BLEND_ADD || eqA == PIPE_BLEND_REVERSE_SUBTRACT)) { in blend_discard_conditionally() 272 static unsigned blend_read_enable(unsigned eqRGB, unsigned eqA, in blend_read_enable() argument 284 if (eqRGB == PIPE_BLEND_MIN || eqA == PIPE_BLEND_MIN || in blend_read_enable() 285 eqRGB == PIPE_BLEND_MAX || eqA == PIPE_BLEND_MAX || in blend_read_enable() 296 if (eqRGB != PIPE_BLEND_MIN && eqA != PIPE_BLEND_MIN && in blend_read_enable() 297 eqRGB != PIPE_BLEND_MAX && eqA != PIPE_BLEND_MAX) { in blend_read_enable() 353 const unsigned eqA = state->rt[0].alpha_func; in r300_create_blend_state() local 407 blend_control |= blend_read_enable(eqRGB, eqA, dstRGB, dstA, in r300_create_blend_state() 409 blend_control_noclamp |= blend_read_enable(eqRGB, eqA, dstRGB, dstA, in r300_create_blend_state() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_state.c | 299 GLuint eqA = ctx->Color.Blend[0].EquationA; in i915UpdateBlendState() local 309 if (eqA == GL_MIN || eqA == GL_MAX) { in i915UpdateBlendState() 319 iab |= translate_blend_equation(eqA) << IAB_FUNC_SHIFT; in i915UpdateBlendState() 321 if (srcA != srcRGB || dstA != dstRGB || eqA != eqRGB) in i915UpdateBlendState() 347 i915BlendEquationSeparate(struct gl_context * ctx, GLenum eqRGB, GLenum eqA) in i915BlendEquationSeparate() argument
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_state.c | 111 unsigned eqA = blend->rt[0].alpha_func; in i915_create_blend_state() local 121 eqA != eqRGB) { in i915_create_blend_state() 131 (i915_translate_blend_func(eqA) << IAB_FUNC_SHIFT)); in i915_create_blend_state()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | genX_state_upload.c | 2856 GLenum eqA = ctx->Color.Blend[i].EquationA; local 2865 if (eqA == GL_MIN || eqA == GL_MAX) 2921 entry->AlphaBlendFunction = blend_eqn(eqA); 2923 if (srcA != srcRGB || dstA != dstRGB || eqA != eqRGB) 4792 GLenum eqA = color->Blend[0].EquationA; local 4801 if (eqA == GL_MIN || eqA == GL_MAX) 4854 srcA != srcRGB || dstA != dstRGB || eqA != eqRGB;
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state.c | 485 unsigned eqA = state->rt[j].alpha_func; in si_create_blend_state_mode() local 509 eqA == PIPE_BLEND_MIN || eqA == PIPE_BLEND_MAX)) { in si_create_blend_state_mode() 526 si_blend_check_commutativity(sctx->screen, blend, eqA, srcA, dstA, 0x8 << (4 * i)); in si_create_blend_state_mode() 536 si_blend_remove_dst(&eqA, &srcA, &dstA, PIPE_BLENDFACTOR_DST_COLOR, in si_create_blend_state_mode() 538 si_blend_remove_dst(&eqA, &srcA, &dstA, PIPE_BLENDFACTOR_DST_ALPHA, in si_create_blend_state_mode() 563 S_028760_ALPHA_COMB_FCN(si_translate_blend_opt_function(eqA)); in si_create_blend_state_mode() 571 if (srcA != srcRGB || dstA != dstRGB || eqA != eqRGB) { in si_create_blend_state_mode() 573 blend_cntl |= S_028780_ALPHA_COMB_FCN(si_translate_blend_function(eqA)); in si_create_blend_state_mode()
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_pipeline.c | 682 VkBlendOp eqA = att->alphaBlendOp; in radv_pipeline_init_blend_state() local 712 if (eqA == VK_BLEND_OP_MIN || eqA == VK_BLEND_OP_MAX) { in radv_pipeline_init_blend_state() 719 radv_blend_check_commutativity(&blend, eqA, srcA, dstA, in radv_pipeline_init_blend_state() 732 si_blend_remove_dst(&eqA, &srcA, &dstA, in radv_pipeline_init_blend_state() 736 si_blend_remove_dst(&eqA, &srcA, &dstA, in radv_pipeline_init_blend_state() 765 S_028760_ALPHA_COMB_FCN(si_translate_blend_opt_function(eqA)); in radv_pipeline_init_blend_state() 771 if (srcA != srcRGB || dstA != dstRGB || eqA != eqRGB) { in radv_pipeline_init_blend_state() 773 blend_cntl |= S_028780_ALPHA_COMB_FCN(si_translate_blend_function(eqA)); in radv_pipeline_init_blend_state()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_state.c | 293 unsigned eqA = state->rt[j].alpha_func; in r600_get_blend_control() local 305 if (srcA != srcRGB || dstA != dstRGB || eqA != eqRGB) { in r600_get_blend_control() 307 bc |= S_028804_ALPHA_COMB_FCN(r600_translate_blend_function(eqA)); in r600_get_blend_control()
|
D | evergreen_state.c | 379 unsigned eqA = state->rt[j].alpha_func; in evergreen_create_blend_state_mode() local 396 if (srcA != srcRGB || dstA != dstRGB || eqA != eqRGB) { in evergreen_create_blend_state_mode() 398 bc |= S_028780_ALPHA_COMB_FCN(r600_translate_blend_function(eqA)); in evergreen_create_blend_state_mode()
|