Home
last modified time | relevance | path

Searched refs:rt_state (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/panfrost/lib/
Dpan_blend.c520 get_equation_str(const struct pan_blend_rt_state *rt_state, in get_equation_str() argument
533 if (!rt_state->equation.blend_enable) { in get_equation_str()
539 if (rt_state->equation.color_mask & 7) { in get_equation_str()
540 assert(rt_state->equation.rgb_func < ARRAY_SIZE(funcs)); in get_equation_str()
541 assert(rt_state->equation.rgb_src_factor < ARRAY_SIZE(factors)); in get_equation_str()
542 assert(rt_state->equation.rgb_dst_factor < ARRAY_SIZE(factors)); in get_equation_str()
544 (rt_state->equation.color_mask & 1) ? "R" : "", in get_equation_str()
545 (rt_state->equation.color_mask & 2) ? "G" : "", in get_equation_str()
546 (rt_state->equation.color_mask & 4) ? "B" : "", in get_equation_str()
547 funcs[rt_state->equation.rgb_func], in get_equation_str()
[all …]
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_shader.c109 struct pan_blend_rt_state *rt_state = &blend_state->rts[rt]; in panvk_lower_blend() local
114 enum pipe_format fmt = rt_state->format; in panvk_lower_blend()
117 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()
[all …]