Home
last modified time | relevance | path

Searched refs:ColorMask (Results 1 – 25 of 51) sorted by relevance

123

/external/mesa3d/src/mesa/swrast/
Ds_masking.c60 memcpy(&srcMask, ctx->Color.ColorMask[buf], sizeof(srcMask)); in _swrast_mask_rgba_span()
72 const GLushort rMask = ctx->Color.ColorMask[buf][RCOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span()
73 const GLushort gMask = ctx->Color.ColorMask[buf][GCOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span()
74 const GLushort bMask = ctx->Color.ColorMask[buf][BCOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span()
75 const GLushort aMask = ctx->Color.ColorMask[buf][ACOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span()
88 const GLuint rMask = ctx->Color.ColorMask[buf][RCOMP] ? ~0x0 : 0x0; in _swrast_mask_rgba_span()
89 const GLuint gMask = ctx->Color.ColorMask[buf][GCOMP] ? ~0x0 : 0x0; in _swrast_mask_rgba_span()
90 const GLuint bMask = ctx->Color.ColorMask[buf][BCOMP] ? ~0x0 : 0x0; in _swrast_mask_rgba_span()
91 const GLuint aMask = ctx->Color.ColorMask[buf][ACOMP] ? ~0x0 : 0x0; in _swrast_mask_rgba_span()
Ds_context.c68 if (!ctx->Color.ColorMask[i][0] || in _swrast_update_rasterflags()
69 !ctx->Color.ColorMask[i][1] || in _swrast_update_rasterflags()
70 !ctx->Color.ColorMask[i][2] || in _swrast_update_rasterflags()
71 !ctx->Color.ColorMask[i][3]) { in _swrast_update_rasterflags()
99 if (ctx->Color.ColorMask[i][0] + in _swrast_update_rasterflags()
100 ctx->Color.ColorMask[i][1] + in _swrast_update_rasterflags()
101 ctx->Color.ColorMask[i][2] + in _swrast_update_rasterflags()
102 ctx->Color.ColorMask[i][3] == 0) { in _swrast_update_rasterflags()
Ds_triangle.c1030 if (ctx->Color.ColorMask[0][0] == 0 && in _swrast_choose_triangle()
1031 ctx->Color.ColorMask[0][1] == 0 && in _swrast_choose_triangle()
1032 ctx->Color.ColorMask[0][2] == 0 && in _swrast_choose_triangle()
1033 ctx->Color.ColorMask[0][3] == 0) { in _swrast_choose_triangle()
Ds_clear.c190 clear_rgba_buffer(ctx, rb, ctx->Color.ColorMask[buf]); in clear_color_buffers()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_clear.c229 if (ctx->Color.ColorMask[i][0]) in clear_with_quad()
231 if (ctx->Color.ColorMask[i][1]) in clear_with_quad()
233 if (ctx->Color.ColorMask[i][2]) in clear_with_quad()
235 if (ctx->Color.ColorMask[i][3]) in clear_with_quad()
346 return !ctx->Color.ColorMask[i][0] && in is_color_disabled()
347 !ctx->Color.ColorMask[i][1] && in is_color_disabled()
348 !ctx->Color.ColorMask[i][2] && in is_color_disabled()
349 !ctx->Color.ColorMask[i][3]; in is_color_disabled()
359 return !ctx->Color.ColorMask[i][0] || in is_color_masked()
360 !ctx->Color.ColorMask[i][1] || in is_color_masked()
[all …]
Dst_atom_blend.c165 if (memcmp(ctx->Color.ColorMask[0], ctx->Color.ColorMask[i], 4)) { in colormask_per_rt()
257 if (ctx->Color.ColorMask[i][0]) in st_update_blend()
259 if (ctx->Color.ColorMask[i][1]) in st_update_blend()
261 if (ctx->Color.ColorMask[i][2]) in st_update_blend()
263 if (ctx->Color.ColorMask[i][3]) in st_update_blend()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel.c86 if (!(ctx->Color.ColorMask[0][0] && in intel_check_blit_fragment_ops()
87 ctx->Color.ColorMask[0][1] && in intel_check_blit_fragment_ops()
88 ctx->Color.ColorMask[0][2] && in intel_check_blit_fragment_ops()
89 ctx->Color.ColorMask[0][3])) { in intel_check_blit_fragment_ops()
Dintel_pixel_copy.c133 if (!ctx->Color.ColorMask[0][0] || in do_blit_copypixels()
134 !ctx->Color.ColorMask[0][1] || in do_blit_copypixels()
135 !ctx->Color.ColorMask[0][2] || in do_blit_copypixels()
136 !ctx->Color.ColorMask[0][3]) { in do_blit_copypixels()
Dintel_clear.c92 memcpy(&colorMask, &ctx->Color.ColorMask[0], sizeof(colorMask)); in intelClear()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_pixel.c83 if (!(ctx->Color.ColorMask[0][0] && in intel_check_blit_fragment_ops()
84 ctx->Color.ColorMask[0][1] && in intel_check_blit_fragment_ops()
85 ctx->Color.ColorMask[0][2] && in intel_check_blit_fragment_ops()
86 ctx->Color.ColorMask[0][3])) { in intel_check_blit_fragment_ops()
Dintel_pixel_copy.c137 if (!ctx->Color.ColorMask[0][0] || in do_blit_copypixels()
138 !ctx->Color.ColorMask[0][1] || in do_blit_copypixels()
139 !ctx->Color.ColorMask[0][2] || in do_blit_copypixels()
140 !ctx->Color.ColorMask[0][3]) { in do_blit_copypixels()
Dbrw_wm_surface_state.c924 if (!ctx->Color.ColorMask[unit][0]) in gen4_update_renderbuffer_surface()
926 if (!ctx->Color.ColorMask[unit][1]) in gen4_update_renderbuffer_surface()
928 if (!ctx->Color.ColorMask[unit][2]) in gen4_update_renderbuffer_surface()
935 !ctx->Color.ColorMask[unit][3]) { in gen4_update_renderbuffer_surface()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv04_state_raster.c165 if (ctx->Color.ColorMask[0][RCOMP]) in nv04_emit_control()
167 if (ctx->Color.ColorMask[0][GCOMP]) in nv04_emit_control()
169 if (ctx->Color.ColorMask[0][BCOMP]) in nv04_emit_control()
171 if (ctx->Color.ColorMask[0][ACOMP]) in nv04_emit_control()
Dnv10_state_raster.c90 PUSH_DATA (push, ((ctx->Color.ColorMask[0][3] ? 1 << 24 : 0) | in nv10_emit_color_mask()
91 (ctx->Color.ColorMask[0][0] ? 1 << 16 : 0) | in nv10_emit_color_mask()
92 (ctx->Color.ColorMask[0][1] ? 1 << 8 : 0) | in nv10_emit_color_mask()
93 (ctx->Color.ColorMask[0][2] ? 1 << 0 : 0))); in nv10_emit_color_mask()
Dnv04_context.c60 !(ctx->Color.ColorMask[0][RCOMP] && in nv04_context_engine()
61 ctx->Color.ColorMask[0][GCOMP] && in nv04_context_engine()
62 ctx->Color.ColorMask[0][BCOMP] && in nv04_context_engine()
63 ctx->Color.ColorMask[0][ACOMP])) in nv04_context_engine()
Dnv20_context.c58 if (ctx->Color.ColorMask[0][RCOMP]) in nv20_clear()
60 if (ctx->Color.ColorMask[0][GCOMP]) in nv20_clear()
62 if (ctx->Color.ColorMask[0][BCOMP]) in nv20_clear()
64 if (ctx->Color.ColorMask[0][ACOMP]) in nv20_clear()
Dnouveau_driver.c135 mask = pack_rgba_i(s->format, ctx->Color.ColorMask[0]); in nouveau_clear()
/external/mesa3d/src/mesa/main/
Daccum.c301 const GLboolean masking = (!ctx->Color.ColorMask[buffer][RCOMP] || in accum_return()
302 !ctx->Color.ColorMask[buffer][GCOMP] || in accum_return()
303 !ctx->Color.ColorMask[buffer][BCOMP] || in accum_return()
304 !ctx->Color.ColorMask[buffer][ACOMP]); in accum_return()
343 if (ctx->Color.ColorMask[buffer][RCOMP] == 0) { in accum_return()
347 if (ctx->Color.ColorMask[buffer][GCOMP] == 0) { in accum_return()
351 if (ctx->Color.ColorMask[buffer][BCOMP] == 0) { in accum_return()
355 if (ctx->Color.ColorMask[buffer][ACOMP] == 0) { in accum_return()
Dblend.c974 if (!TEST_EQ_4V(tmp, ctx->Color.ColorMask[i])) { in _mesa_ColorMask()
980 COPY_4UBV(ctx->Color.ColorMask[i], tmp); in _mesa_ColorMask()
984 if (ctx->Driver.ColorMask) in _mesa_ColorMask()
985 ctx->Driver.ColorMask( ctx, red, green, blue, alpha ); in _mesa_ColorMask()
1016 if (TEST_EQ_4V(tmp, ctx->Color.ColorMask[buf])) in _mesa_ColorMaski()
1021 COPY_4UBV(ctx->Color.ColorMask[buf], tmp); in _mesa_ColorMaski()
1172 memset(ctx->Color.ColorMask, 0xff, sizeof(ctx->Color.ColorMask)); in _mesa_init_color()
Dattrib.c970 _mesa_ColorMask((GLboolean) (color->ColorMask[0][0] != 0), in _mesa_PopAttrib()
971 (GLboolean) (color->ColorMask[0][1] != 0), in _mesa_PopAttrib()
972 (GLboolean) (color->ColorMask[0][2] != 0), in _mesa_PopAttrib()
973 (GLboolean) (color->ColorMask[0][3] != 0)); in _mesa_PopAttrib()
979 (GLboolean) (color->ColorMask[i][0] != 0), in _mesa_PopAttrib()
980 (GLboolean) (color->ColorMask[i][1] != 0), in _mesa_PopAttrib()
981 (GLboolean) (color->ColorMask[i][2] != 0), in _mesa_PopAttrib()
982 (GLboolean) (color->ColorMask[i][3] != 0)); in _mesa_PopAttrib()
Dget.c678 v->value_int_4[0] = ctx->Color.ColorMask[0][RCOMP] ? 1 : 0; in find_custom_value()
679 v->value_int_4[1] = ctx->Color.ColorMask[0][GCOMP] ? 1 : 0; in find_custom_value()
680 v->value_int_4[2] = ctx->Color.ColorMask[0][BCOMP] ? 1 : 0; in find_custom_value()
681 v->value_int_4[3] = ctx->Color.ColorMask[0][ACOMP] ? 1 : 0; in find_custom_value()
2250 v->value_int_4[0] = ctx->Color.ColorMask[index][RCOMP] ? 1 : 0; in find_value_indexed()
2251 v->value_int_4[1] = ctx->Color.ColorMask[index][GCOMP] ? 1 : 0; in find_value_indexed()
2252 v->value_int_4[2] = ctx->Color.ColorMask[index][BCOMP] ? 1 : 0; in find_value_indexed()
2253 v->value_int_4[3] = ctx->Color.ColorMask[index][ACOMP] ? 1 : 0; in find_value_indexed()
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c128 driver->ColorMask = NULL; in _mesa_init_driver_functions()
234 ctx->Driver.ColorMask(ctx, in _mesa_init_driver_state()
235 ctx->Color.ColorMask[0][RCOMP], in _mesa_init_driver_state()
236 ctx->Color.ColorMask[0][GCOMP], in _mesa_init_driver_state()
237 ctx->Color.ColorMask[0][BCOMP], in _mesa_init_driver_state()
238 ctx->Color.ColorMask[0][ACOMP]); in _mesa_init_driver_state()
Dmeta.c519 memcpy(save->ColorMask, ctx->Color.ColorMask, in _mesa_meta_begin()
520 sizeof(ctx->Color.ColorMask)); in _mesa_meta_begin()
883 if (!TEST_EQ_4V(ctx->Color.ColorMask[i], save->ColorMask[i])) { in _mesa_meta_end()
885 _mesa_ColorMask(save->ColorMask[i][0], save->ColorMask[i][1], in _mesa_meta_end()
886 save->ColorMask[i][2], save->ColorMask[i][3]); in _mesa_meta_end()
890 save->ColorMask[i][0], in _mesa_meta_end()
891 save->ColorMask[i][1], in _mesa_meta_end()
892 save->ColorMask[i][2], in _mesa_meta_end()
893 save->ColorMask[i][3]); in _mesa_meta_end()
1639 return !ctx->Color.ColorMask[i][0] && in is_color_disabled()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_state.c507 ctx->Color.ColorMask[0][RCOMP], in radeonColorMask()
508 ctx->Color.ColorMask[0][GCOMP], in radeonColorMask()
509 ctx->Color.ColorMask[0][BCOMP], in radeonColorMask()
510 ctx->Color.ColorMask[0][ACOMP] ); in radeonColorMask()
2144 ctx->Driver.ColorMask = radeonColorMask; in radeonInitStateFuncs()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_dd.c248 const GLuint *colorMask = (GLuint *) &ctx->Color.ColorMask[0]; in clear_buffers()
842 driver->ColorMask = color_mask; in xmesa_init_driver_functions()

123