Searched refs:Color (Results 1 - 25 of 202) sorted by relevance

123456789

/xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/i915/
H A Dintel_pixel.c70 if (ctx->Color.BlendEnabled &&
71 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE ||
72 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO ||
73 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD ||
74 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE ||
75 effective_func(ctx->Color.Blend[0].DstA, src_alpha_is_one) != GL_ZERO ||
76 ctx->Color.Blend[0].EquationA != GL_FUNC_ADD)) {
86 if (GET_COLORMASK(ctx->Color.ColorMask, 0) != 0xf) {
91 if (ctx->Color.AlphaEnabled) {
/xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/i965/
H A Dintel_pixel.c67 if (ctx->Color.BlendEnabled &&
68 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE ||
69 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO ||
70 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD ||
71 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE ||
72 effective_func(ctx->Color.Blend[0].DstA, src_alpha_is_one) != GL_ZERO ||
73 ctx->Color.Blend[0].EquationA != GL_FUNC_ADD)) {
83 if (GET_COLORMASK(ctx->Color.ColorMask, 0) != 0xf) {
88 if (ctx->Color.AlphaEnabled) {
/xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/
H A Dintel_pixel.c70 if (ctx->Color.BlendEnabled &&
71 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE ||
72 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO ||
73 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD ||
74 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE ||
75 effective_func(ctx->Color.Blend[0].DstA, src_alpha_is_one) != GL_ZERO ||
76 ctx->Color.Blend[0].EquationA != GL_FUNC_ADD)) {
86 if (GET_COLORMASK(ctx->Color.ColorMask, 0) != 0xf) {
91 if (ctx->Color.AlphaEnabled) {
/xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/
H A Dbrw_pixel.c67 if (ctx->Color.BlendEnabled &&
68 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE ||
69 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO ||
70 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD ||
71 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE ||
72 effective_func(ctx->Color.Blend[0].DstA, src_alpha_is_one) != GL_ZERO ||
73 ctx->Color.Blend[0].EquationA != GL_FUNC_ADD)) {
83 if (GET_COLORMASK(ctx->Color.ColorMask, 0) != 0xf) {
88 if (ctx->Color.AlphaEnabled) {
/xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/nouveau/
H A Dnv20_state_raster.c40 PUSH_DATAb(push, ctx->Color.ColorLogicOpEnabled);
41 PUSH_DATA (push, ctx->Color.LogicOp);
H A Dnv10_state_raster.c43 PUSH_DATAb(push, ctx->Color.AlphaEnabled);
46 PUSH_DATA (push, nvgl_comparison_op(ctx->Color.AlphaFunc));
47 PUSH_DATA (push, FLOAT_TO_UBYTE(ctx->Color.AlphaRef));
56 PUSH_DATA (push, FLOAT_TO_UBYTE(ctx->Color.BlendColor[3]) << 24 |
57 FLOAT_TO_UBYTE(ctx->Color.BlendColor[0]) << 16 |
58 FLOAT_TO_UBYTE(ctx->Color.BlendColor[1]) << 8 |
59 FLOAT_TO_UBYTE(ctx->Color.BlendColor[2]) << 0);
68 PUSH_DATAb(push, ctx->Color.BlendEnabled);
71 PUSH_DATA (push, nvgl_blend_eqn(ctx->Color.Blend[0].EquationRGB));
80 PUSH_DATA (push, nvgl_blend_func(ctx->Color
[all...]
H A Dnv04_state_raster.c136 if (ctx->Color.DitherFlag)
158 if (ctx->Color.AlphaEnabled)
161 nv04->ctrl[0] |= get_comparison_op(ctx->Color.AlphaFunc) << 8 |
162 FLOAT_TO_UBYTE(ctx->Color.AlphaRef);
164 /* Color mask. */
165 if (GET_COLORMASK_BIT(ctx->Color.ColorMask, 0, 0))
167 if (GET_COLORMASK_BIT(ctx->Color.ColorMask, 0, 1))
169 if (GET_COLORMASK_BIT(ctx->Color.ColorMask, 0, 2))
171 if (GET_COLORMASK_BIT(ctx->Color.ColorMask, 0, 3))
207 nv04->blend |= get_blend_func(ctx->Color
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/
H A Dnv20_state_raster.c40 PUSH_DATAb(push, ctx->Color.ColorLogicOpEnabled);
41 PUSH_DATA (push, ctx->Color.LogicOp);
H A Dnv10_state_raster.c43 PUSH_DATAb(push, ctx->Color.AlphaEnabled);
46 PUSH_DATA (push, nvgl_comparison_op(ctx->Color.AlphaFunc));
47 PUSH_DATA (push, FLOAT_TO_UBYTE(ctx->Color.AlphaRef));
56 PUSH_DATA (push, FLOAT_TO_UBYTE(ctx->Color.BlendColor[3]) << 24 |
57 FLOAT_TO_UBYTE(ctx->Color.BlendColor[0]) << 16 |
58 FLOAT_TO_UBYTE(ctx->Color.BlendColor[1]) << 8 |
59 FLOAT_TO_UBYTE(ctx->Color.BlendColor[2]) << 0);
68 PUSH_DATAb(push, ctx->Color.BlendEnabled);
71 PUSH_DATA (push, nvgl_blend_eqn(ctx->Color.Blend[0].EquationRGB));
80 PUSH_DATA (push, nvgl_blend_func(ctx->Color
[all...]
H A Dnv04_state_raster.c136 if (ctx->Color.DitherFlag)
158 if (ctx->Color.AlphaEnabled)
161 nv04->ctrl[0] |= get_comparison_op(ctx->Color.AlphaFunc) << 8 |
162 FLOAT_TO_UBYTE(ctx->Color.AlphaRef);
164 /* Color mask. */
165 if (GET_COLORMASK_BIT(ctx->Color.ColorMask, 0, 0))
167 if (GET_COLORMASK_BIT(ctx->Color.ColorMask, 0, 1))
169 if (GET_COLORMASK_BIT(ctx->Color.ColorMask, 0, 2))
171 if (GET_COLORMASK_BIT(ctx->Color.ColorMask, 0, 3))
207 nv04->blend |= get_blend_func(ctx->Color
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/main/
H A Dblend.c175 (blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcRGB) ||
176 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstRGB) ||
177 blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcA) ||
178 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstA));
180 if (((ctx->Color._BlendUsesDualSrc >> buf) & 0x1) != uses_dual_src) {
182 ctx->Color._BlendUsesDualSrc |= 1 << buf;
184 ctx->Color._BlendUsesDualSrc &= ~(1 << buf);
210 if (ctx->Color._BlendFuncPerBuffer) {
215 if (ctx->Color.Blend[buf].SrcRGB != sfactorRGB ||
216 ctx->Color
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
H A Dblend.c172 ctx->Color.Blend[buf]._UsesDualSrc =
173 (blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcRGB) ||
174 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstRGB) ||
175 blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcA) ||
176 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstA));
199 if (ctx->Color._BlendFuncPerBuffer) {
204 if (ctx->Color.Blend[buf].SrcRGB != sfactorRGB ||
205 ctx->Color.Blend[buf].DstRGB != dfactorRGB ||
206 ctx->Color.Blend[buf].SrcA != sfactorA ||
207 ctx->Color
[all...]
H A Dclear.c50 ctx->Color.ClearIndex = (GLuint) c;
69 ctx->Color.ClearColor.f[0] = red;
70 ctx->Color.ClearColor.f[1] = green;
71 ctx->Color.ClearColor.f[2] = blue;
72 ctx->Color.ClearColor.f[3] = alpha;
84 ctx->Color.ClearColor.i[0] = r;
85 ctx->Color.ClearColor.i[1] = g;
86 ctx->Color.ClearColor.i[2] = b;
87 ctx->Color.ClearColor.i[3] = a;
99 ctx->Color
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_atom_blend.c120 _mesa_replicate_colormask(GET_COLORMASK(ctx->Color.ColorMask, 0),
123 return (ctx->Color.ColorMask & full_mask) != repl_mask0;
134 GLbitfield blend_enabled = ctx->Color.BlendEnabled & cb_mask;
140 if (ctx->Color._BlendFuncPerBuffer || ctx->Color._BlendEquationPerBuffer) {
213 blend->rt[i].colormask = GET_COLORMASK(ctx->Color.ColorMask, i);
215 if (ctx->Color.ColorLogicOpEnabled) {
218 blend->logicop_func = ctx->Color._LogicOp;
220 else if (ctx->Color.BlendEnabled &&
221 ctx->Color
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
H A Dst_atom_blend.c120 _mesa_replicate_colormask(GET_COLORMASK(ctx->Color.ColorMask, 0),
123 return (ctx->Color.ColorMask & full_mask) != repl_mask0;
134 GLbitfield blend_enabled = ctx->Color.BlendEnabled & cb_mask;
140 if (ctx->Color._BlendFuncPerBuffer || ctx->Color._BlendEquationPerBuffer) {
211 blend->rt[i].colormask = GET_COLORMASK(ctx->Color.ColorMask, i);
213 if (ctx->Color.ColorLogicOpEnabled) {
216 blend->logicop_func = ctx->Color._LogicOp;
218 else if (ctx->Color.BlendEnabled && !ctx->Color
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/swrast/
H A Ds_masking.c60 GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 0) ? 0xff : 0,
61 GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 1) ? 0xff : 0,
62 GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 2) ? 0xff : 0,
63 GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 3) ? 0xff : 0,
78 const GLushort rMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 0) ? 0xffff : 0x0;
79 const GLushort gMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 1) ? 0xffff : 0x0;
80 const GLushort bMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 2) ? 0xffff : 0x0;
81 const GLushort aMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 3) ? 0xffff : 0x0;
94 const GLuint rMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 0) ? ~0x0 : 0x0;
95 const GLuint gMask = GET_COLORMASK_BIT(ctx->Color
[all...]
H A Ds_alpha.c40 switch (ctx->Color.AlphaFunc) { \
98 if (ctx->Color.AlphaFunc == GL_ALWAYS) {
102 else if (ctx->Color.AlphaFunc == GL_NEVER) {
115 CLAMPED_FLOAT_TO_UBYTE(ref, ctx->Color.AlphaRef);
121 CLAMPED_FLOAT_TO_USHORT(ref, ctx->Color.AlphaRef);
126 const GLfloat ref = ctx->Color.AlphaRef;
137 CLAMPED_FLOAT_TO_UBYTE(ref, ctx->Color.AlphaRef);
144 CLAMPED_FLOAT_TO_USHORT(ref, ctx->Color.AlphaRef);
150 const GLfloat ref = ctx->Color.AlphaRef;
H A Ds_blend.c75 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD);
76 assert(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD);
77 assert(ctx->Color.Blend[0].SrcRGB == GL_ZERO);
78 assert(ctx->Color.Blend[0].DstRGB == GL_ONE);
101 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD);
102 assert(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD);
103 assert(ctx->Color.Blend[0].SrcRGB == GL_ONE);
104 assert(ctx->Color.Blend[0].DstRGB == GL_ZERO);
125 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD);
126 assert(ctx->Color
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/swrast/
H A Ds_masking.c60 GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 0) ? 0xff : 0,
61 GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 1) ? 0xff : 0,
62 GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 2) ? 0xff : 0,
63 GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 3) ? 0xff : 0,
78 const GLushort rMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 0) ? 0xffff : 0x0;
79 const GLushort gMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 1) ? 0xffff : 0x0;
80 const GLushort bMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 2) ? 0xffff : 0x0;
81 const GLushort aMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 3) ? 0xffff : 0x0;
94 const GLuint rMask = GET_COLORMASK_BIT(ctx->Color.ColorMask, buf, 0) ? ~0x0 : 0x0;
95 const GLuint gMask = GET_COLORMASK_BIT(ctx->Color
[all...]
H A Ds_alpha.c40 switch (ctx->Color.AlphaFunc) { \
98 if (ctx->Color.AlphaFunc == GL_ALWAYS) {
102 else if (ctx->Color.AlphaFunc == GL_NEVER) {
115 CLAMPED_FLOAT_TO_UBYTE(ref, ctx->Color.AlphaRef);
121 CLAMPED_FLOAT_TO_USHORT(ref, ctx->Color.AlphaRef);
126 const GLfloat ref = ctx->Color.AlphaRef;
137 CLAMPED_FLOAT_TO_UBYTE(ref, ctx->Color.AlphaRef);
144 CLAMPED_FLOAT_TO_USHORT(ref, ctx->Color.AlphaRef);
150 const GLfloat ref = ctx->Color.AlphaRef;
H A Ds_blend.c75 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD);
76 assert(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD);
77 assert(ctx->Color.Blend[0].SrcRGB == GL_ZERO);
78 assert(ctx->Color.Blend[0].DstRGB == GL_ONE);
101 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD);
102 assert(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD);
103 assert(ctx->Color.Blend[0].SrcRGB == GL_ONE);
104 assert(ctx->Color.Blend[0].DstRGB == GL_ZERO);
125 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD);
126 assert(ctx->Color
[all...]
/xsrc/external/mit/MesaLib.old/dist/docs/specs/OLD/
H A DMESA_packed_depth_stencil.spec84 COLOR_INDEX Color Color index
87 RED Color R component
88 GREEN Color G component
89 BLUE Color B component
90 ALPHA Color A component
91 RGB Color R, G, B components
92 RGBA Color R, G, B, A components
93 BGRA Color B, G, R, A components
94 ABGR_EXT Color
[all...]
/xsrc/external/mit/MesaLib/dist/docs/_extra/specs/OLD/
H A DMESA_packed_depth_stencil.spec84 COLOR_INDEX Color Color index
87 RED Color R component
88 GREEN Color G component
89 BLUE Color B component
90 ALPHA Color A component
91 RGB Color R, G, B components
92 RGBA Color R, G, B, A components
93 BGRA Color B, G, R, A components
94 ABGR_EXT Color
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/common/
H A Ddriverfuncs.c224 ctx->Driver.AlphaFunc(ctx, ctx->Color.AlphaFunc, ctx->Color.AlphaRef);
226 ctx->Driver.BlendColor(ctx, ctx->Color.BlendColor);
229 ctx->Color.Blend[0].EquationRGB,
230 ctx->Color.Blend[0].EquationA);
233 ctx->Color.Blend[0].SrcRGB,
234 ctx->Color.Blend[0].DstRGB,
235 ctx->Color.Blend[0].SrcA,
236 ctx->Color.Blend[0].DstA);
239 GET_COLORMASK_BIT(ctx->Color
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/drivers/common/
H A Ddriverfuncs.c226 ctx->Driver.AlphaFunc(ctx, ctx->Color.AlphaFunc, ctx->Color.AlphaRef);
228 ctx->Driver.BlendColor(ctx, ctx->Color.BlendColor);
231 ctx->Color.Blend[0].EquationRGB,
232 ctx->Color.Blend[0].EquationA);
235 ctx->Color.Blend[0].SrcRGB,
236 ctx->Color.Blend[0].DstRGB,
237 ctx->Color.Blend[0].SrcA,
238 ctx->Color.Blend[0].DstA);
241 GET_COLORMASK_BIT(ctx->Color
[all...]

Completed in 18 milliseconds

123456789