/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
H A D | etnaviv_blend.c | 132 uint32_t colormask; in etna_update_blend() local 136 colormask = rt0->colormask & (PIPE_MASK_A | PIPE_MASK_G); in etna_update_blend() 137 if (rt0->colormask & PIPE_MASK_R) in etna_update_blend() 138 colormask |= PIPE_MASK_B; in etna_update_blend() 139 if (rt0->colormask & PIPE_MASK_B) in etna_update_blend() 140 colormask |= PIPE_MASK_R; in etna_update_blend() 142 colormask = rt0->colormask; in etna_update_blend() 152 util_format_colormask_full(desc, colormask))); in etna_update_blend() [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
H A D | fd2_blend.c | 99 if (rt->colormask & PIPE_MASK_R) in fd2_blend_state_create() 101 if (rt->colormask & PIPE_MASK_G) in fd2_blend_state_create() 103 if (rt->colormask & PIPE_MASK_B) in fd2_blend_state_create() 105 if (rt->colormask & PIPE_MASK_A) in fd2_blend_state_create()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
H A D | nv30_state.c | 65 cmask[0] = !!(cso->rt[0].colormask & PIPE_MASK_A) << 24 | in nv30_blend_state_create() 66 !!(cso->rt[0].colormask & PIPE_MASK_R) << 16 | in nv30_blend_state_create() 67 !!(cso->rt[0].colormask & PIPE_MASK_G) << 8 | in nv30_blend_state_create() 68 !!(cso->rt[0].colormask & PIPE_MASK_B); in nv30_blend_state_create() 74 cmask[1] |= !!(cso->rt[i].colormask & PIPE_MASK_A) << (0 + (i * 4)) | in nv30_blend_state_create() 75 !!(cso->rt[i].colormask & PIPE_MASK_R) << (1 + (i * 4)) | in nv30_blend_state_create() 76 !!(cso->rt[i].colormask & PIPE_MASK_G) << (2 + (i * 4)) | in nv30_blend_state_create() 77 !!(cso->rt[i].colormask & PIPE_MASK_B) << (3 + (i * 4)); in nv30_blend_state_create()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_nir_lower_blend.c | 52 c->fs_key->blend.colormask != 0xf || in blend_depends_on_dst_color() 493 uint32_t colormask = 0xffffffff; in vc4_nir_blend_pipeline() local 496 !(c->fs_key->blend.colormask & (1 << format_swiz[i]))) { in vc4_nir_blend_pipeline() 497 colormask &= ~(0xff << (i * 8)); in vc4_nir_blend_pipeline() 503 nir_imm_int(b, colormask)), in vc4_nir_blend_pipeline() 505 nir_imm_int(b, ~colormask))); in vc4_nir_blend_pipeline()
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
H A D | v3dx_emit.c | 250 translate_colormask(struct v3d_context *v3d, uint32_t colormask, int rt) in translate_colormask() argument 253 colormask = ((colormask & (2 | 8)) | in translate_colormask() 254 ((colormask & 1) << 2) | in translate_colormask() 255 ((colormask & 4) >> 2)); in translate_colormask() 258 return (~colormask) & 0xf; in translate_colormask() 647 int rt_mask = blend->rt[rt].colormask; in emit_state()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_blend.c | 101 .component_enable = rt->colormask, in __fd6_setup_blend_variant() 186 if (rt->blend_enable || (rt->colormask != 0xf)) { in fd6_blend_state_create()
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_pipe.c | 191 blend.rt[0].colormask = rs[D3DRS_COLORWRITEENABLE]; in nine_convert_blend_state() 200 blend.rt[1].colormask = rs[D3DRS_COLORWRITEENABLE1]; in nine_convert_blend_state() 201 blend.rt[2].colormask = rs[D3DRS_COLORWRITEENABLE2]; in nine_convert_blend_state() 202 blend.rt[3].colormask = rs[D3DRS_COLORWRITEENABLE3]; in nine_convert_blend_state()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_cb_clear.c | 279 blend.rt[i].colormask = GET_COLORMASK(ctx->Color.ColorMask, i); in clear_with_quad() 446 unsigned colormask = in st_Clear() local 449 if (!colormask) in st_Clear() 458 ((colormask & surf_colormask) != surf_colormask)) in st_Clear()
|
H A D | st_atom_blend.c | 213 blend->rt[i].colormask = GET_COLORMASK(ctx->Color.ColorMask, i); in st_update_blend() 230 !blend->rt[i].colormask) in st_update_blend()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_blend.h | 49 /* 4-bit colormask. 0x0 for none, 0xF for RGBA, 0x1 for R */ 50 unsigned colormask; member
|
/third_party/mesa3d/src/util/format/ |
H A D | u_format.h | 677 * Give the RGBA colormask of the channels that can be represented in this 685 unsigned colormask; in util_format_colormask() local 692 colormask = 0; in util_format_colormask() 695 colormask |= (1 << chan); in util_format_colormask() 698 return colormask; in util_format_colormask() 711 * @param desc a format description to check colormask with 712 * @param colormask a bit mask for channels, matches format of PIPE_MASK_RGBA 715 util_format_colormask_full(const struct util_format_description *desc, unsigned colormask) in util_format_colormask_full() argument 717 return (~colormask & util_format_colormask(desc)) == 0; in util_format_colormask_full()
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_quad_blend.c | 835 colormask_quad(unsigned colormask, in colormask_quad() argument 840 if (!(colormask & PIPE_MASK_R)) in colormask_quad() 844 if (!(colormask & PIPE_MASK_G)) in colormask_quad() 848 if (!(colormask & PIPE_MASK_B)) in colormask_quad() 852 if (!(colormask & PIPE_MASK_A)) in colormask_quad() 1007 if (blend->rt[blend_buf].colormask != 0xf) in blend_fallback() 1008 colormask_quad( blend->rt[blend_buf].colormask, quadColor, dest); in blend_fallback() 1233 softpipe->blend->rt[0].colormask == 0xf && in choose_blend_quad()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
H A D | fd5_blend.c | 103 A5XX_RB_MRT_CONTROL_COMPONENT_ENABLE(rt->colormask); in fd5_blend_state_create()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
H A D | fd3_blend.c | 99 A3XX_RB_MRT_CONTROL_COMPONENT_ENABLE(rt->colormask); in fd3_blend_state_create()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
H A D | fd4_blend.c | 100 A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE(rt->colormask); in fd4_blend_state_create()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_bld_blend_aos.c | 426 if (!util_format_colormask_full(desc, state->colormask)) { in lp_build_blend_aos() 429 state->colormask, nr_channels, in lp_build_blend_aos()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_state.c | 396 if (rt->colormask & PIPE_MASK_R) in zink_create_blend_state() 398 if (rt->colormask & PIPE_MASK_G) in zink_create_blend_state() 400 if (rt->colormask & PIPE_MASK_B) in zink_create_blend_state() 402 if (rt->colormask & PIPE_MASK_A) in zink_create_blend_state()
|
/third_party/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_state.c | 192 if ((blend->rt[0].colormask & PIPE_MASK_R) == 0) in i915_create_blend_state() 195 if ((blend->rt[0].colormask & PIPE_MASK_G) == 0) in i915_create_blend_state() 198 if ((blend->rt[0].colormask & PIPE_MASK_B) == 0) in i915_create_blend_state() 201 if ((blend->rt[0].colormask & PIPE_MASK_A) == 0) in i915_create_blend_state()
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_deint_filter.c | 283 blend.rt[0].colormask = PIPE_MASK_R; in vl_deint_filter_init() 288 blend.rt[0].colormask = PIPE_MASK_G; in vl_deint_filter_init() 293 blend.rt[0].colormask = PIPE_MASK_B; in vl_deint_filter_init()
|
/third_party/mesa3d/src/gallium/frontends/xa/ |
H A D | xa_yuv.c | 44 blend.rt[0].colormask = PIPE_MASK_RGBA; in xa_yuv_bind_blend_state()
|
/third_party/mesa3d/src/gallium/auxiliary/postprocess/ |
H A D | pp_program.c | 86 p->blend.rt[0].colormask = PIPE_MASK_RGBA; in pp_init_prog()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_pipe_blend.c | 316 * support independent blend enable and colormask per render target. in svga_create_blend_state() 401 blend->rt[i].writemask = templ->rt[i].colormask; in svga_create_blend_state() 404 blend->rt[i].writemask = templ->rt[0].colormask; in svga_create_blend_state()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_clear.c | 131 unsigned colormask = util_format_colormask(desc); in convert_fast_clear_color() local 142 if (!(colormask & (1 << chan))) in convert_fast_clear_color() 179 if (!(colormask & 1 << 3)) { in convert_fast_clear_color()
|
/third_party/mesa3d/src/gallium/tests/graw/ |
H A D | tri-gs.c | 243 blend.rt[0].colormask = PIPE_MASK_RGBA; in init()
|
H A D | shader-leak.c | 238 blend.rt[0].colormask = PIPE_MASK_RGBA; in init()
|