/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() 439 rgba[i][ACOMP] = 1.0; in texture_combine() 457 rgba[i][ACOMP] = arg0[i][ACOMP] * scaleA; in texture_combine() 462 rgba[i][ACOMP] = arg0[i][ACOMP] * arg1[i][ACOMP] * scaleA; in texture_combine() [all …]
|
D | s_texfetch_tmp.h | 111 texel[ACOMP] = src[3]; in FETCH() 129 texel[ACOMP] = _mesa_half_to_float(src[3]); in FETCH() 146 texel[ACOMP] = 1.0F; in FETCH() 164 texel[ACOMP] = 1.0F; in FETCH() 182 texel[ACOMP] = src[0]; in FETCH() 200 texel[ACOMP] = _mesa_half_to_float(src[0]); in FETCH() 218 texel[ACOMP] = 1.0F; in FETCH() 236 texel[ACOMP] = 1.0F; in FETCH() 254 texel[ACOMP] = src[1]; in FETCH() 272 texel[ACOMP] = _mesa_half_to_float(src[1]); in FETCH() [all …]
|
D | s_blend.c | 140 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */ in blend_transparency_ubyte() 150 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; in blend_transparency_ubyte() 158 rgba[i][ACOMP] = (GLubyte) a; in blend_transparency_ubyte() 185 const GLint t = rgba[i][ACOMP]; in blend_transparency_ushort() 195 GLushort a = (GLushort) ((rgba[i][ACOMP] - dest[i][ACOMP]) * tt + dest[i][ACOMP]); in blend_transparency_ushort() 223 const GLfloat t = rgba[i][ACOMP]; /* t in [0, 1] */ in blend_transparency_float() 232 GLfloat a = (rgba[i][ACOMP] - dest[i][ACOMP]) * t + dest[i][ACOMP]; in blend_transparency_float() 265 GLint a = rgba[i][ACOMP] + dest[i][ACOMP]; in blend_add() 269 rgba[i][ACOMP] = (GLubyte) MIN2( a, 255 ); in blend_add() 281 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 | 157 rgba[i][ACOMP] = 0xff; \ 218 rgba[i][ACOMP] = 0xff; \ 286 sample[ACOMP] = CHAN_MAX; in affine_span() 292 sample[ACOMP] = CHAN_MAX; in affine_span() 298 sample[ACOMP] = tex00[0]; in affine_span() 304 sample[ACOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]) in affine_span() 310 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1u) >> (FIXED_SHIFT + 8) in affine_span() 313 dest[RCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->red + \ in affine_span() 314 ((sample[ACOMP] + 1) * sample[RCOMP] << FIXED_SHIFT)) \ in affine_span() 316 dest[GCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->green + \ in affine_span() [all …]
|
D | s_alpha.c | 117 ALPHA_TEST(rgba[i][ACOMP], ;); in _swrast_alpha_test() 123 ALPHA_TEST(rgba[i][ACOMP], ;); in _swrast_alpha_test() 128 ALPHA_TEST(rgba[i][ACOMP], ;); in _swrast_alpha_test()
|
D | s_blit.c | 415 srcColor0[srcCol0][ACOMP], srcColor0[srcCol1][ACOMP], in resample_linear_row_ub() 416 srcColor1[srcCol0][ACOMP], srcColor1[srcCol1][ACOMP]); in resample_linear_row_ub() 421 dstColor[dstCol][ACOMP] = IFLOOR(alpha); in resample_linear_row_ub() 472 srcColor0[srcCol0][ACOMP], srcColor0[srcCol1][ACOMP], in resample_linear_row_float() 473 srcColor1[srcCol0][ACOMP], srcColor1[srcCol1][ACOMP]); in resample_linear_row_float() 478 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 | 238 color[ACOMP] = FixedToInt(span->alpha); in interpolate_int_colors() 256 rgba[i][ACOMP] = FixedToChan(a); in interpolate_int_colors() 273 color[ACOMP] = FixedToInt(span->alpha); in interpolate_int_colors() 294 rgba[i][ACOMP] = FixedToChan(a); in interpolate_int_colors() 887 const GLfloat a = rgba[i][ACOMP] * coverage[i]; in apply_aa_coverage() 888 rgba[i][ACOMP] = (GLubyte) CLAMP(a, 0.0, 255.0); in apply_aa_coverage() 896 const GLfloat a = rgba[i][ACOMP] * coverage[i]; in apply_aa_coverage() 897 rgba[i][ACOMP] = (GLushort) CLAMP(a, 0.0, 65535.0); in apply_aa_coverage() 903 rgba[i][ACOMP] = rgba[i][ACOMP] * coverage[i]; in apply_aa_coverage() 923 rgba[i][ACOMP] = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); in clamp_colors()
|
D | s_tritemp.h | 364 GLfloat eMaj_da = (GLfloat) (vMax->color[ACOMP] - vMin->color[ACOMP]); in NAME() 365 GLfloat eBot_da = (GLfloat) (vMid->color[ACOMP] - vMin->color[ACOMP]); in NAME() 657 aLeft = (GLint)(ChanToFixed(vLower->color[ACOMP]) in NAME() 671 aLeft = ChanToFixed(v2->color[ACOMP]); in NAME()
|
/external/mesa3d/src/mesa/main/ |
D | format_unpack.c | 99 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_RGBA8888() 112 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_RGBA8888_REV() 125 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_ARGB8888() 138 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_ARGB8888_REV() 151 dst[i][ACOMP] = 1.0f; in unpack_RGBX8888() 164 dst[i][ACOMP] = 1.0f; in unpack_RGBX8888_REV() 177 dst[i][ACOMP] = 1.0f; in unpack_XRGB8888() 190 dst[i][ACOMP] = 1.0f; in unpack_XRGB8888_REV() 203 dst[i][ACOMP] = 1.0F; in unpack_RGB888() 216 dst[i][ACOMP] = 1.0F; in unpack_BGR888() [all …]
|
D | texcompress_s3tc.c | 395 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_rgb_dxt1() 424 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_rgba_dxt1() 453 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_rgba_dxt3() 482 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_rgba_dxt5() 496 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_srgb_dxt1() 509 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_srgba_dxt1() 522 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_srgba_dxt3() 535 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_srgba_dxt5()
|
D | pack.c | 611 | (CLAMP(rgba[i][ACOMP], 0, 15) ); in _mesa_pack_rgba_span_from_uints() 620 | (CLAMP(rgba[i][ACOMP], 0, 15) ); in _mesa_pack_rgba_span_from_uints() 626 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) << 12) in _mesa_pack_rgba_span_from_uints() 642 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); in _mesa_pack_rgba_span_from_uints() 651 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); in _mesa_pack_rgba_span_from_uints() 657 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) ) in _mesa_pack_rgba_span_from_uints() 673 | (CLAMP(rgba[i][ACOMP], 0, 1) ); in _mesa_pack_rgba_span_from_uints() 682 | (CLAMP(rgba[i][ACOMP], 0, 1) ); in _mesa_pack_rgba_span_from_uints() 688 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_uints() 704 | (CLAMP(rgba[i][ACOMP], 0, 1) << 15); in _mesa_pack_rgba_span_from_uints() [all …]
|
D | format_pack.c | 101 *d = PACK_COLOR_8888(src[RCOMP], src[GCOMP], src[BCOMP], src[ACOMP]); in pack_ubyte_RGBA8888() 119 src[i][BCOMP], src[i][ACOMP]); in pack_row_ubyte_RGBA8888() 145 *d = PACK_COLOR_8888(src[ACOMP], src[BCOMP], src[GCOMP], src[RCOMP]); in pack_ubyte_RGBA8888_REV() 162 d[i] = PACK_COLOR_8888(src[i][ACOMP], src[i][BCOMP], in pack_row_ubyte_RGBA8888_REV() 188 *d = PACK_COLOR_8888(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]); in pack_ubyte_ARGB8888() 205 d[i] = PACK_COLOR_8888(src[i][ACOMP], src[i][RCOMP], in pack_row_ubyte_ARGB8888() 231 *d = PACK_COLOR_8888(src[BCOMP], src[GCOMP], src[RCOMP], src[ACOMP]); in pack_ubyte_ARGB8888_REV() 249 src[i][RCOMP], src[i][ACOMP]); in pack_row_ubyte_ARGB8888_REV() 545 *d = PACK_COLOR_4444(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]); in pack_ubyte_ARGB4444() 567 *d = PACK_COLOR_4444(src[GCOMP], src[BCOMP], src[ACOMP], src[RCOMP]); in pack_ubyte_ARGB4444_REV() [all …]
|
D | pack_tmp.h | 54 dst[i] = SRC_CONVERT(rgba[i][ACOMP]); in FN_NAME() 78 dst[i*4+3] = SRC_CONVERT(rgba[i][ACOMP]); in FN_NAME() 95 dst[i*4+3] = SRC_CONVERT(rgba[i][ACOMP]); in FN_NAME() 112 dst[i*2+1] = SRC_CONVERT(rgba[i][ACOMP]); in FN_NAME()
|
D | pixeltransfer.c | 70 rgba[i][ACOMP] = rgba[i][ACOMP] * aScale + aBias; in _mesa_scale_and_bias_rgba() 95 GLfloat a = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); in _mesa_map_rgba() 99 rgba[i][ACOMP] = aMap[F_TO_I(a * ascale)]; in _mesa_map_rgba() 123 rgba[i][ACOMP] = aMap[index[i] & amask]; in _mesa_map_ci_to_rgba() 185 rgba[i][ACOMP] = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
|
D | texcompress_rgtc.c | 306 texel[ACOMP] = 1.0; in _mesa_fetch_texel_red_rgtc1() 321 texel[ACOMP] = 1.0; in _mesa_fetch_texel_signed_red_rgtc1() 339 texel[ACOMP] = 1.0; in _mesa_fetch_texel_rg_rgtc2() 357 texel[ACOMP] = 1.0; in _mesa_fetch_texel_signed_rg_rgtc2() 372 texel[ACOMP] = 1.0; in _mesa_fetch_texel_l_latc1() 387 texel[ACOMP] = 1.0; in _mesa_fetch_texel_signed_l_latc1() 405 texel[ACOMP] = UBYTE_TO_FLOAT(green); in _mesa_fetch_texel_la_latc2() 423 texel[ACOMP] = BYTE_TO_FLOAT_TEX(green); in _mesa_fetch_texel_signed_la_latc2()
|
D | image.c | 484 dst2[i][ACOMP] = UBYTE_TO_USHORT(src1[i][ACOMP]); in _mesa_convert_colors() 500 dst4[i][ACOMP] = UBYTE_TO_FLOAT(src1[i][ACOMP]); in _mesa_convert_colors() 517 dst1[i][ACOMP] = USHORT_TO_UBYTE(src2[i][ACOMP]); in _mesa_convert_colors() 533 dst4[i][ACOMP] = USHORT_TO_FLOAT(src2[i][ACOMP]); in _mesa_convert_colors() 562 UNCLAMPED_FLOAT_TO_USHORT(dst2[i][ACOMP], src4[i][ACOMP]); in _mesa_convert_colors()
|
D | texcompress_fxt1.c | 170 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_2d_f_rgba_fxt1() 185 texel[ACOMP] = 1.0F; in _mesa_fetch_texel_2d_f_rgb_fxt1() 625 FX64_OR32(hi, (GLuint)(vec[j][ACOMP] / 8.0F)); in fxt1_quantize_ALPHA0() 796 FX64_OR32(hi, (GLuint)(vec[j][ACOMP] / 8.0F)); in fxt1_quantize_ALPHA1() 1240 if (reord[l][ACOMP] < (255 - ALPHA_TS)) { in fxt1_quantize() 1417 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI() 1437 rgba[ACOMP] = 255; in fxt1_decode_1HI() 1461 rgba[ACOMP] = 255; in fxt1_decode_1CHROMA() 1505 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED() 1524 rgba[ACOMP] = 255; in fxt1_decode_1MIXED() [all …]
|
D | accum.c | 305 acc[i * 4 + 3] = (GLshort) (rgba[i][ACOMP] * scale); in accum_or_load() 314 acc[i * 4 + 3] += (GLshort) (rgba[i][ACOMP] * scale); in accum_or_load() 365 !ctx->Color.ColorMask[buffer][ACOMP]); in accum_return() 416 if (ctx->Color.ColorMask[buffer][ACOMP] == 0) { in accum_return() 418 rgba[i][ACOMP] = dest[i][ACOMP]; in accum_return()
|
D | texcompress_etc.c | 70 texel[ACOMP] = 1.0f; in _mesa_fetch_texel_2d_f_etc1_rgb8()
|
D | config.h | 280 #define ACOMP 3 macro
|
/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()
|
/external/mesa3d/src/mesa/drivers/windows/gdi/ |
D | wmesa.c | 485 c.a=rgba[i][ACOMP]; in write_rgba_span_front() 497 c.a=rgba[i][ACOMP]; in write_rgba_span_front() 551 rgba[i][ACOMP] = 255; in read_rgba_span_front() 572 rgba[i][ACOMP] = 255; in read_rgba_pixels_front() 652 rgba[i][ACOMP] = 255; in read_rgba_span_32() 676 rgba[i][ACOMP] = 255; in read_rgba_pixels_32() 759 rgba[i][ACOMP] = 255; in read_rgba_span_24() 781 rgba[i][ACOMP] = 255; in read_rgba_pixels_24() 864 rgba[i][ACOMP] = 255; in read_rgba_span_16() 888 rgba[i][ACOMP] = 255; in read_rgba_pixels_16()
|