/external/mesa3d/src/mesa/swrast/ |
D | s_texcombine.c | 124 rgba[i][ACOMP] = CHAN_TO_FLOAT(rgbaChan[i][ACOMP]); in texture_combine() 217 dst[i][BCOMP] = src[i][ACOMP]; in texture_combine() 224 dst[i][BCOMP] = 1.0F - src[i][ACOMP]; in texture_combine() 255 c[i][ACOMP] = alpha; in texture_combine() 265 c[i][ACOMP] = 0.0F; in texture_combine() 273 c[i][ACOMP] = 1.0F; in texture_combine() 293 dst[i][ACOMP] = 1.0F - src[i][ACOMP]; in texture_combine() 447 rgba[i][ACOMP] = arg0[i][ACOMP] * scaleA; in texture_combine() 452 rgba[i][ACOMP] = arg0[i][ACOMP] * arg1[i][ACOMP] * scaleA; in texture_combine() 459 rgba[i][ACOMP] = (arg0[i][ACOMP] * arg1[i][ACOMP] + in texture_combine() [all …]
|
D | s_blend.c | 137 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */ in blend_transparency_ubyte() 147 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; in blend_transparency_ubyte() 155 rgba[i][ACOMP] = (GLubyte) a; in blend_transparency_ubyte() 182 const GLint t = rgba[i][ACOMP]; in blend_transparency_ushort() 192 GLushort a = (GLushort) ((rgba[i][ACOMP] - dest[i][ACOMP]) * tt + dest[i][ACOMP]); in blend_transparency_ushort() 220 const GLfloat t = rgba[i][ACOMP]; /* t in [0, 1] */ in blend_transparency_float() 229 GLfloat a = (rgba[i][ACOMP] - dest[i][ACOMP]) * t + dest[i][ACOMP]; in blend_transparency_float() 262 GLint a = rgba[i][ACOMP] + dest[i][ACOMP]; in blend_add() 266 rgba[i][ACOMP] = (GLubyte) MIN2( a, 255 ); in blend_add() 278 GLint a = rgba[i][ACOMP] + dest[i][ACOMP]; in blend_add() [all …]
|
D | s_masking.c | 75 const GLushort aMask = ctx->Color.ColorMask[buf][ACOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span() 83 src[i][ACOMP] = (src[i][ACOMP] & aMask) | (dst[i][ACOMP] & ~aMask); in _swrast_mask_rgba_span() 91 const GLuint aMask = ctx->Color.ColorMask[buf][ACOMP] ? ~0x0 : 0x0; in _swrast_mask_rgba_span() 99 src[i][ACOMP] = (src[i][ACOMP] & aMask) | (dst[i][ACOMP] & ~aMask); in _swrast_mask_rgba_span()
|
D | s_triangle.c | 158 rgba[i][ACOMP] = 0xff; \ 219 rgba[i][ACOMP] = 0xff; \ 287 sample[ACOMP] = CHAN_MAX; in affine_span() 293 sample[ACOMP] = CHAN_MAX; in affine_span() 299 sample[ACOMP] = tex00[0]; in affine_span() 305 sample[ACOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]) in affine_span() 311 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1u) >> (FIXED_SHIFT + 8) in affine_span() 314 dest[RCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->red + \ in affine_span() 315 ((sample[ACOMP] + 1) * sample[RCOMP] << FIXED_SHIFT)) \ in affine_span() 317 dest[GCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->green + \ in affine_span() [all …]
|
D | s_alpha.c | 116 ALPHA_TEST(rgba[i][ACOMP], ;); in _swrast_alpha_test() 122 ALPHA_TEST(rgba[i][ACOMP], ;); in _swrast_alpha_test() 127 ALPHA_TEST(rgba[i][ACOMP], ;); in _swrast_alpha_test()
|
D | s_blit.c | 439 srcColor0[srcCol0][ACOMP], srcColor0[srcCol1][ACOMP], in resample_linear_row_ub() 440 srcColor1[srcCol0][ACOMP], srcColor1[srcCol1][ACOMP]); in resample_linear_row_ub() 445 dstColor[dstCol][ACOMP] = IFLOOR(alpha); in resample_linear_row_ub() 494 srcColor0[srcCol0][ACOMP], srcColor0[srcCol1][ACOMP], in resample_linear_row_float() 495 srcColor1[srcCol0][ACOMP], srcColor1[srcCol1][ACOMP]); in resample_linear_row_float() 500 dstColor[dstCol][ACOMP] = alpha; in resample_linear_row_float()
|
D | s_aatritemp.h | 126 compute_plane(p0, p1, p2, v0->color[ACOMP], v1->color[ACOMP], v2->color[ACOMP], aPlane); 132 constant_plane(v2->color[ACOMP], aPlane); 232 array->rgba[count][ACOMP] = solve_plane_chan(cx, cy, aPlane); 295 array->rgba[ix][ACOMP] = solve_plane_chan(cx, cy, aPlane);
|
D | s_aalinetemp.h | 65 line->span.array->rgba[i][ACOMP] = solve_plane_chan(fx, fy, line->aPlane); in NAME() 149 v0->color[ACOMP], v1->color[ACOMP], line.aPlane); in NAME() 155 constant_plane(v1->color[ACOMP], line.aPlane); in NAME()
|
D | s_span.c | 241 color[ACOMP] = FixedToInt(span->alpha); in interpolate_int_colors() 259 rgba[i][ACOMP] = FixedToChan(a); in interpolate_int_colors() 276 color[ACOMP] = FixedToInt(span->alpha); in interpolate_int_colors() 297 rgba[i][ACOMP] = FixedToChan(a); in interpolate_int_colors() 890 const GLfloat a = rgba[i][ACOMP] * coverage[i]; in apply_aa_coverage() 891 rgba[i][ACOMP] = (GLubyte) CLAMP(a, 0.0F, 255.0F); in apply_aa_coverage() 899 const GLfloat a = rgba[i][ACOMP] * coverage[i]; in apply_aa_coverage() 900 rgba[i][ACOMP] = (GLushort) CLAMP(a, 0.0F, 65535.0F); in apply_aa_coverage() 906 rgba[i][ACOMP] = rgba[i][ACOMP] * coverage[i]; in apply_aa_coverage() 926 rgba[i][ACOMP] = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); in clamp_colors()
|
D | s_tritemp.h | 369 GLfloat eMaj_da = (GLfloat) (vMax->color[ACOMP] - vMin->color[ACOMP]); in NAME() 370 GLfloat eBot_da = (GLfloat) (vMid->color[ACOMP] - vMin->color[ACOMP]); in NAME() 662 aLeft = (GLint)(ChanToFixed(vLower->color[ACOMP]) in NAME() 676 aLeft = ChanToFixed(v2->color[ACOMP]); in NAME()
|
/external/mesa3d/src/mesa/main/ |
D | texcompress_s3tc.c | 263 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgb_dxt1() 275 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgba_dxt1() 287 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgba_dxt3() 299 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgba_dxt5() 312 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_srgb_dxt1() 324 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_srgba_dxt1() 336 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_srgba_dxt3() 348 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_srgba_dxt5()
|
D | pixeltransfer.c | 72 rgba[i][ACOMP] = rgba[i][ACOMP] * aScale + aBias; in _mesa_scale_and_bias_rgba() 97 GLfloat a = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); in _mesa_map_rgba() 101 rgba[i][ACOMP] = aMap[(int)_mesa_lroundevenf(a * ascale)]; in _mesa_map_rgba() 125 rgba[i][ACOMP] = aMap[index[i] & amask]; in _mesa_map_ci_to_rgba() 187 rgba[i][ACOMP] = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
|
D | texcompress_rgtc.c | 323 texel[ACOMP] = 1.0; in fetch_red_rgtc1() 335 texel[ACOMP] = 1.0; in fetch_l_latc1() 348 texel[ACOMP] = 1.0; in fetch_signed_red_rgtc1() 361 texel[ACOMP] = 1.0; in fetch_signed_l_latc1() 378 texel[ACOMP] = 1.0; in fetch_rg_rgtc2() 395 texel[ACOMP] = UBYTE_TO_FLOAT(green); in fetch_la_latc2() 413 texel[ACOMP] = 1.0; in fetch_signed_rg_rgtc2() 431 texel[ACOMP] = BYTE_TO_FLOAT_TEX(green); in fetch_signed_la_latc2()
|
D | texcompress_fxt1.c | 597 FX64_OR32(hi, (GLuint)(vec[j][ACOMP] / 8.0F)); in fxt1_quantize_ALPHA0() 768 FX64_OR32(hi, (GLuint)(vec[j][ACOMP] / 8.0F)); in fxt1_quantize_ALPHA1() 1212 if (reord[l][ACOMP] < (255 - ALPHA_TS)) { in fxt1_quantize() 1387 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI() 1407 rgba[ACOMP] = 255; in fxt1_decode_1HI() 1431 rgba[ACOMP] = 255; in fxt1_decode_1CHROMA() 1475 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED() 1494 rgba[ACOMP] = 255; in fxt1_decode_1MIXED() 1516 rgba[ACOMP] = 255; in fxt1_decode_1MIXED() 1539 col0[ACOMP] = CC_SEL(cc, 119); in fxt1_decode_1ALPHA() [all …]
|
D | image.c | 498 dst2[i][ACOMP] = UBYTE_TO_USHORT(src1[i][ACOMP]); in _mesa_convert_colors() 514 dst4[i][ACOMP] = UBYTE_TO_FLOAT(src1[i][ACOMP]); in _mesa_convert_colors() 531 dst1[i][ACOMP] = USHORT_TO_UBYTE(src2[i][ACOMP]); in _mesa_convert_colors() 547 dst4[i][ACOMP] = USHORT_TO_FLOAT(src2[i][ACOMP]); in _mesa_convert_colors() 576 UNCLAMPED_FLOAT_TO_USHORT(dst2[i][ACOMP], src4[i][ACOMP]); in _mesa_convert_colors()
|
D | accum.c | 244 acc[i * 4 + 3] = (GLshort) (rgba[i][ACOMP] * scale); in accum_or_load() 253 acc[i * 4 + 3] += (GLshort) (rgba[i][ACOMP] * scale); in accum_or_load() 304 !ctx->Color.ColorMask[buffer][ACOMP]); in accum_return() 355 if (ctx->Color.ColorMask[buffer][ACOMP] == 0) { in accum_return() 357 rgba[i][ACOMP] = dest[i][ACOMP]; in accum_return()
|
D | texcompress_s3tc_tmp.h | 37 #define ACOMP 3 macro 64 rgba[ACOMP] = CHAN_MAX; in dxt135_decode_imageblock() 98 if (dxt_type == 1) rgba[ACOMP] = UBYTE_TO_CHAN(0); in dxt135_decode_imageblock() 142 rgba[ACOMP] = UBYTE_TO_CHAN( (GLubyte)(EXP4TO8(anibble)) ); in fetch_2d_texel_rgba_dxt3() 163 rgba[ACOMP] = UBYTE_TO_CHAN( alpha0 ); in fetch_2d_texel_rgba_dxt5() 165 rgba[ACOMP] = UBYTE_TO_CHAN( alpha1 ); in fetch_2d_texel_rgba_dxt5() 167 rgba[ACOMP] = UBYTE_TO_CHAN( ((alpha0 * (8 - code) + (alpha1 * (code - 1))) / 7) ); in fetch_2d_texel_rgba_dxt5() 169 rgba[ACOMP] = UBYTE_TO_CHAN( ((alpha0 * (6 - code) + (alpha1 * (code - 1))) / 5) ); in fetch_2d_texel_rgba_dxt5() 171 rgba[ACOMP] = 0; in fetch_2d_texel_rgba_dxt5() 173 rgba[ACOMP] = CHAN_MAX; in fetch_2d_texel_rgba_dxt5()
|
D | texcompress_etc.c | 1271 texel[ACOMP] = 1.0f; in fetch_etc1_rgb8() 1293 texel[ACOMP] = 1.0f; in fetch_etc2_rgb8() 1314 texel[ACOMP] = 1.0f; in fetch_etc2_srgb8() 1333 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]); in fetch_etc2_rgba8_eac() 1352 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]); in fetch_etc2_srgb8_alpha8_eac() 1371 texel[ACOMP] = 1.0f; in fetch_etc2_r11_eac() 1395 texel[ACOMP] = 1.0f; in fetch_etc2_rg11_eac() 1414 texel[ACOMP] = 1.0f; in fetch_etc2_signed_r11_eac() 1438 texel[ACOMP] = 1.0f; in fetch_etc2_signed_rg11_eac() 1459 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]); in fetch_etc2_rgb8_punchthrough_alpha1() [all …]
|
D | config.h | 307 #define ACOMP 3 macro
|
D | samplerobj.c | 661 samp->BorderColor.f[ACOMP] = params[3]; in set_sampler_border_colorf() 675 samp->BorderColor.i[ACOMP] = params[3]; in set_sampler_border_colori() 689 samp->BorderColor.ui[ACOMP] = params[3]; in set_sampler_border_colorui()
|
D | pack.c | 1358 dst[2*i+1] = rgba[i][ACOMP]; in _mesa_pack_luminance_from_rgba_float() 1363 dst[2*i+1] = rgba[i][ACOMP]; in _mesa_pack_luminance_from_rgba_float() 1518 alpha = convert_integer(rgba[i][ACOMP], dst_bits, in _mesa_pack_luminance_from_rgba_integer()
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nouveau_util.h | 38 return PACK_COLOR_8888(c[ACOMP], c[RCOMP], c[GCOMP], c[BCOMP]); in pack_rgba_i() 40 return PACK_COLOR_8888(c[BCOMP], c[GCOMP], c[RCOMP], c[ACOMP]); in pack_rgba_i() 46 return PACK_COLOR_8888(c[RCOMP], c[GCOMP], c[BCOMP], c[ACOMP]); in pack_rgba_i() 48 return PACK_COLOR_8888(c[ACOMP], c[BCOMP], c[GCOMP], c[RCOMP]); in pack_rgba_i() 78 FLOAT_TO_UBYTE(c[ACOMP]) }); in pack_rgba_f()
|
D | nv04_state_raster.c | 171 if (ctx->Color.ColorMask[0][ACOMP]) in nv04_emit_control()
|
D | nv04_context.c | 63 ctx->Color.ColorMask[0][ACOMP])) in nv04_context_engine()
|
/external/mesa3d/src/mesa/drivers/common/ |
D | driverfuncs.c | 238 ctx->Color.ColorMask[0][ACOMP]); in _mesa_init_driver_state()
|