Home
last modified time | relevance | path

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

12

/external/mesa3d/src/mesa/swrast/
Ds_masking.c60 const GLuint srcMask = *((GLuint *) ctx->Color.ColorMask[buf]); 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_clear.c190 clear_rgba_buffer(ctx, rb, ctx->Color.ColorMask[buf]); in clear_color_buffers()
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c125 driver->ColorMask = NULL; in _mesa_init_driver_functions()
241 ctx->Color.ColorMask[i][RCOMP], in _mesa_init_driver_state()
242 ctx->Color.ColorMask[i][GCOMP], in _mesa_init_driver_state()
243 ctx->Color.ColorMask[i][BCOMP], in _mesa_init_driver_state()
244 ctx->Color.ColorMask[i][ACOMP]); in _mesa_init_driver_state()
248 ctx->Driver.ColorMask(ctx, in _mesa_init_driver_state()
249 ctx->Color.ColorMask[0][RCOMP], in _mesa_init_driver_state()
250 ctx->Color.ColorMask[0][GCOMP], in _mesa_init_driver_state()
251 ctx->Color.ColorMask[0][BCOMP], in _mesa_init_driver_state()
252 ctx->Color.ColorMask[0][ACOMP]); in _mesa_init_driver_state()
Dmeta.c102 GLubyte ColorMask[MAX_DRAW_BUFFERS][4]; member
541 memcpy(save->ColorMask, ctx->Color.ColorMask, in _mesa_meta_begin()
542 sizeof(ctx->Color.ColorMask)); in _mesa_meta_begin()
543 if (!ctx->Color.ColorMask[0][0] || in _mesa_meta_begin()
544 !ctx->Color.ColorMask[0][1] || in _mesa_meta_begin()
545 !ctx->Color.ColorMask[0][2] || in _mesa_meta_begin()
546 !ctx->Color.ColorMask[0][3]) in _mesa_meta_begin()
863 if (!TEST_EQ_4V(ctx->Color.ColorMask[i], save->ColorMask[i])) { in _mesa_meta_end()
865 _mesa_ColorMask(save->ColorMask[i][0], save->ColorMask[i][1], in _mesa_meta_end()
866 save->ColorMask[i][2], save->ColorMask[i][3]); in _mesa_meta_end()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_pixel.c85 if (!(ctx->Color.ColorMask[0][0] && in intel_check_blit_fragment_ops()
86 ctx->Color.ColorMask[0][1] && in intel_check_blit_fragment_ops()
87 ctx->Color.ColorMask[0][2] && in intel_check_blit_fragment_ops()
88 ctx->Color.ColorMask[0][3])) { in intel_check_blit_fragment_ops()
Dintel_pixel_copy.c63 !ctx->Color.ColorMask[0][0] || in intel_check_copypixel_blit_fragment_ops()
64 !ctx->Color.ColorMask[0][1] || in intel_check_copypixel_blit_fragment_ops()
65 !ctx->Color.ColorMask[0][2] || in intel_check_copypixel_blit_fragment_ops()
66 !ctx->Color.ColorMask[0][3] || in intel_check_copypixel_blit_fragment_ops()
Dgen6_cc.c163 blend[b].blend1.write_disable_r = !ctx->Color.ColorMask[b][0]; in gen6_upload_blend_state()
164 blend[b].blend1.write_disable_g = !ctx->Color.ColorMask[b][1]; in gen6_upload_blend_state()
165 blend[b].blend1.write_disable_b = !ctx->Color.ColorMask[b][2]; in gen6_upload_blend_state()
166 blend[b].blend1.write_disable_a = !ctx->Color.ColorMask[b][3]; in gen6_upload_blend_state()
Dbrw_wm_state.c59 (ctx->Color.ColorMask[i][0] || in brw_color_buffer_write_enabled()
60 ctx->Color.ColorMask[i][1] || in brw_color_buffer_write_enabled()
61 ctx->Color.ColorMask[i][2] || in brw_color_buffer_write_enabled()
62 ctx->Color.ColorMask[i][3])) { in brw_color_buffer_write_enabled()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel.c85 if (!(ctx->Color.ColorMask[0][0] && in intel_check_blit_fragment_ops()
86 ctx->Color.ColorMask[0][1] && in intel_check_blit_fragment_ops()
87 ctx->Color.ColorMask[0][2] && in intel_check_blit_fragment_ops()
88 ctx->Color.ColorMask[0][3])) { in intel_check_blit_fragment_ops()
Dintel_pixel_copy.c63 !ctx->Color.ColorMask[0][0] || in intel_check_copypixel_blit_fragment_ops()
64 !ctx->Color.ColorMask[0][1] || in intel_check_copypixel_blit_fragment_ops()
65 !ctx->Color.ColorMask[0][2] || in intel_check_copypixel_blit_fragment_ops()
66 !ctx->Color.ColorMask[0][3] || in intel_check_copypixel_blit_fragment_ops()
Dintel_clear.c84 const GLuint colorMask = *((GLuint *) & ctx->Color.ColorMask[0]); in intelClear()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_pixel.c85 if (!(ctx->Color.ColorMask[0][0] && in intel_check_blit_fragment_ops()
86 ctx->Color.ColorMask[0][1] && in intel_check_blit_fragment_ops()
87 ctx->Color.ColorMask[0][2] && in intel_check_blit_fragment_ops()
88 ctx->Color.ColorMask[0][3])) { in intel_check_blit_fragment_ops()
Dintel_pixel_copy.c63 !ctx->Color.ColorMask[0][0] || in intel_check_copypixel_blit_fragment_ops()
64 !ctx->Color.ColorMask[0][1] || in intel_check_copypixel_blit_fragment_ops()
65 !ctx->Color.ColorMask[0][2] || in intel_check_copypixel_blit_fragment_ops()
66 !ctx->Color.ColorMask[0][3] || in intel_check_copypixel_blit_fragment_ops()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_blend.c164 if (memcmp(ctx->Color.ColorMask[0], ctx->Color.ColorMask[i], 4)) { in colormask_per_rt()
256 if (ctx->Color.ColorMask[i][0]) in update_blend()
258 if (ctx->Color.ColorMask[i][1]) in update_blend()
260 if (ctx->Color.ColorMask[i][2]) in update_blend()
262 if (ctx->Color.ColorMask[i][3]) in update_blend()
Dst_cb_clear.c238 if (ctx->Color.ColorMask[0][0]) in clear_with_quad()
240 if (ctx->Color.ColorMask[0][1]) in clear_with_quad()
242 if (ctx->Color.ColorMask[0][2]) in clear_with_quad()
244 if (ctx->Color.ColorMask[0][3]) in clear_with_quad()
345 if (!ctx->Color.ColorMask[0][0] || in check_clear_color_with_quad()
346 !ctx->Color.ColorMask[0][1] || in check_clear_color_with_quad()
347 !ctx->Color.ColorMask[0][2] || in check_clear_color_with_quad()
348 !ctx->Color.ColorMask[0][3]) in check_clear_color_with_quad()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv04_state_raster.c163 if (ctx->Color.ColorMask[0][RCOMP]) in nv04_emit_control()
165 if (ctx->Color.ColorMask[0][GCOMP]) in nv04_emit_control()
167 if (ctx->Color.ColorMask[0][BCOMP]) in nv04_emit_control()
169 if (ctx->Color.ColorMask[0][ACOMP]) in nv04_emit_control()
Dnv10_state_raster.c87 PUSH_DATA (push, ((ctx->Color.ColorMask[0][3] ? 1 << 24 : 0) | in nv10_emit_color_mask()
88 (ctx->Color.ColorMask[0][0] ? 1 << 16 : 0) | in nv10_emit_color_mask()
89 (ctx->Color.ColorMask[0][1] ? 1 << 8 : 0) | in nv10_emit_color_mask()
90 (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.c117 mask = pack_rgba_i(s->format, ctx->Color.ColorMask[0]); in nouveau_clear()
/external/mesa3d/src/mesa/main/
Daccum.c362 const GLboolean masking = (!ctx->Color.ColorMask[buffer][RCOMP] || in accum_return()
363 !ctx->Color.ColorMask[buffer][GCOMP] || in accum_return()
364 !ctx->Color.ColorMask[buffer][BCOMP] || in accum_return()
365 !ctx->Color.ColorMask[buffer][ACOMP]); in accum_return()
404 if (ctx->Color.ColorMask[buffer][RCOMP] == 0) { in accum_return()
408 if (ctx->Color.ColorMask[buffer][GCOMP] == 0) { in accum_return()
412 if (ctx->Color.ColorMask[buffer][BCOMP] == 0) { in accum_return()
416 if (ctx->Color.ColorMask[buffer][ACOMP] == 0) { in accum_return()
Dblend.c723 if (!TEST_EQ_4V(tmp, ctx->Color.ColorMask[i])) { in _mesa_ColorMask()
728 COPY_4UBV(ctx->Color.ColorMask[i], tmp); in _mesa_ColorMask()
732 if (ctx->Driver.ColorMask) in _mesa_ColorMask()
733 ctx->Driver.ColorMask( ctx, red, green, blue, alpha ); in _mesa_ColorMask()
765 if (TEST_EQ_4V(tmp, ctx->Color.ColorMask[buf])) in _mesa_ColorMaskIndexed()
769 COPY_4UBV(ctx->Color.ColorMask[buf], tmp); in _mesa_ColorMaskIndexed()
828 memset(ctx->Color.ColorMask, 0xff, sizeof(ctx->Color.ColorMask)); in _mesa_init_color()
Dattrib.c887 _mesa_ColorMask((GLboolean) (color->ColorMask[0][0] != 0), in _mesa_PopAttrib()
888 (GLboolean) (color->ColorMask[0][1] != 0), in _mesa_PopAttrib()
889 (GLboolean) (color->ColorMask[0][2] != 0), in _mesa_PopAttrib()
890 (GLboolean) (color->ColorMask[0][3] != 0)); in _mesa_PopAttrib()
896 (GLboolean) (color->ColorMask[i][0] != 0), in _mesa_PopAttrib()
897 (GLboolean) (color->ColorMask[i][1] != 0), in _mesa_PopAttrib()
898 (GLboolean) (color->ColorMask[i][2] != 0), in _mesa_PopAttrib()
899 (GLboolean) (color->ColorMask[i][3] != 0)); in _mesa_PopAttrib()
/external/mesa3d/src/mesa/drivers/windows/gdi/
Dwmesa.c263 if (!ctx->Color.ColorMask[0][0] || in clear()
264 !ctx->Color.ColorMask[0][1] || in clear()
265 !ctx->Color.ColorMask[0][2] || in clear()
266 !ctx->Color.ColorMask[0][3]) { in clear()

12