/third_party/mesa3d/src/mesa/swrast/ |
D | s_texcombine.c | 125 rgba[i][ACOMP] = CHAN_TO_FLOAT(rgbaChan[i][ACOMP]); in texture_combine() 218 dst[i][BCOMP] = src[i][ACOMP]; in texture_combine() 225 dst[i][BCOMP] = 1.0F - src[i][ACOMP]; in texture_combine() 256 c[i][ACOMP] = alpha; in texture_combine() 266 c[i][ACOMP] = 0.0F; in texture_combine() 274 c[i][ACOMP] = 1.0F; in texture_combine() 294 dst[i][ACOMP] = 1.0F - src[i][ACOMP]; in texture_combine() 448 rgba[i][ACOMP] = arg0[i][ACOMP] * scaleA; in texture_combine() 453 rgba[i][ACOMP] = arg0[i][ACOMP] * arg1[i][ACOMP] * scaleA; in texture_combine() 460 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 | 89 src[i][ACOMP] = (src[i][ACOMP] & aMask) | (dst[i][ACOMP] & ~aMask); in _swrast_mask_rgba_span() 105 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 | 441 srcColor0[srcCol0][ACOMP], srcColor0[srcCol1][ACOMP], in resample_linear_row_ub() 442 srcColor1[srcCol0][ACOMP], srcColor1[srcCol1][ACOMP]); in resample_linear_row_ub() 447 dstColor[dstCol][ACOMP] = util_ifloor(alpha); in resample_linear_row_ub() 496 srcColor0[srcCol0][ACOMP], srcColor0[srcCol1][ACOMP], in resample_linear_row_float() 497 srcColor1[srcCol0][ACOMP], srcColor1[srcCol1][ACOMP]); in resample_linear_row_float() 502 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 | 242 color[ACOMP] = FixedToInt(span->alpha); in interpolate_int_colors() 260 rgba[i][ACOMP] = FixedToChan(a); in interpolate_int_colors() 277 color[ACOMP] = FixedToInt(span->alpha); in interpolate_int_colors() 298 rgba[i][ACOMP] = FixedToChan(a); in interpolate_int_colors() 891 const GLfloat a = rgba[i][ACOMP] * coverage[i]; in apply_aa_coverage() 892 rgba[i][ACOMP] = (GLubyte) CLAMP(a, 0.0F, 255.0F); in apply_aa_coverage() 900 const GLfloat a = rgba[i][ACOMP] * coverage[i]; in apply_aa_coverage() 901 rgba[i][ACOMP] = (GLushort) CLAMP(a, 0.0F, 65535.0F); in apply_aa_coverage() 907 rgba[i][ACOMP] = rgba[i][ACOMP] * coverage[i]; in apply_aa_coverage() 927 rgba[i][ACOMP] = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); in clamp_colors()
|
D | s_tritemp.h | 370 GLfloat eMaj_da = (GLfloat) (vMax->color[ACOMP] - vMin->color[ACOMP]); in NAME() 371 GLfloat eBot_da = (GLfloat) (vMid->color[ACOMP] - vMin->color[ACOMP]); in NAME() 663 aLeft = (GLint)(ChanToFixed(vLower->color[ACOMP]) in NAME() 677 aLeft = ChanToFixed(v2->color[ACOMP]); in NAME()
|
D | s_texfetch.c | 99 texel[ACOMP] = 0.0; in fetch_null_texelf()
|
D | s_points.c | 487 span->array->rgba[count][ACOMP] = vert->color[3]; in pixel_point()
|
/third_party/mesa3d/src/mesa/main/ |
D | texcompress_s3tc.c | 272 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgb_dxt1() 284 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgba_dxt1() 296 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgba_dxt3() 308 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgba_dxt5() 321 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_srgb_dxt1() 333 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_srgba_dxt1() 345 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_srgba_dxt3() 357 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 | 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 | texcompress_s3tc_tmp.h | 40 #define ACOMP 3 macro 67 rgba[ACOMP] = CHAN_MAX; in dxt135_decode_imageblock() 101 if (dxt_type == 1) rgba[ACOMP] = UBYTE_TO_CHAN(0); in dxt135_decode_imageblock() 145 rgba[ACOMP] = UBYTE_TO_CHAN( (GLubyte)(EXP4TO8(anibble)) ); in fetch_2d_texel_rgba_dxt3() 166 rgba[ACOMP] = UBYTE_TO_CHAN( alpha0 ); in fetch_2d_texel_rgba_dxt5() 168 rgba[ACOMP] = UBYTE_TO_CHAN( alpha1 ); in fetch_2d_texel_rgba_dxt5() 170 rgba[ACOMP] = UBYTE_TO_CHAN( ((alpha0 * (8 - code) + (alpha1 * (code - 1))) / 7) ); in fetch_2d_texel_rgba_dxt5() 172 rgba[ACOMP] = UBYTE_TO_CHAN( ((alpha0 * (6 - code) + (alpha1 * (code - 1))) / 5) ); in fetch_2d_texel_rgba_dxt5() 174 rgba[ACOMP] = 0; in fetch_2d_texel_rgba_dxt5() 176 rgba[ACOMP] = CHAN_MAX; in fetch_2d_texel_rgba_dxt5()
|
D | texcompress_etc.c | 1286 texel[ACOMP] = 1.0f; in fetch_etc1_rgb8() 1308 texel[ACOMP] = 1.0f; in fetch_etc2_rgb8() 1329 texel[ACOMP] = 1.0f; in fetch_etc2_srgb8() 1348 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]); in fetch_etc2_rgba8_eac() 1367 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]); in fetch_etc2_srgb8_alpha8_eac() 1386 texel[ACOMP] = 1.0f; in fetch_etc2_r11_eac() 1410 texel[ACOMP] = 1.0f; in fetch_etc2_rg11_eac() 1429 texel[ACOMP] = 1.0f; in fetch_etc2_signed_r11_eac() 1453 texel[ACOMP] = 1.0f; in fetch_etc2_signed_rg11_eac() 1474 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]); in fetch_etc2_rgb8_punchthrough_alpha1() [all …]
|
D | accum.c | 248 acc[i * 4 + 3] = (GLshort) (rgba[i][ACOMP] * scale); in accum_or_load() 257 acc[i * 4 + 3] += (GLshort) (rgba[i][ACOMP] * scale); in accum_or_load() 362 rgba[i][ACOMP] = dest[i][ACOMP]; in accum_return()
|
D | texcompress_bptc.c | 90 texel[ACOMP] = UBYTE_TO_FLOAT(texel_bytes[3]); in fetch_bptc_rgba_unorm() 105 texel[ACOMP] = UBYTE_TO_FLOAT(texel_bytes[3]); in fetch_bptc_srgb_alpha_unorm()
|
D | config.h | 288 #define ACOMP 3 macro
|
D | pack.c | 1360 dst[2*i+1] = rgba[i][ACOMP]; in _mesa_pack_luminance_from_rgba_float() 1365 dst[2*i+1] = rgba[i][ACOMP]; in _mesa_pack_luminance_from_rgba_float() 1520 alpha = convert_integer(rgba[i][ACOMP], dst_bits, in _mesa_pack_luminance_from_rgba_integer()
|
/third_party/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()
|
/third_party/mesa3d/src/util/format/ |
D | u_format_fxt1.c | 35 #define ACOMP 3 macro 480 FX64_OR32(hi, (uint32_t)(vec[j][ACOMP] / 8.0F)); in fxt1_quantize_ALPHA0() 651 FX64_OR32(hi, (uint32_t)(vec[j][ACOMP] / 8.0F)); in fxt1_quantize_ALPHA1() 1095 if (reord[l][ACOMP] < (255 - ALPHA_TS)) { in fxt1_quantize() 1266 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI() 1286 rgba[ACOMP] = 255; in fxt1_decode_1HI() 1310 rgba[ACOMP] = 255; in fxt1_decode_1CHROMA() 1354 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED() 1373 rgba[ACOMP] = 255; in fxt1_decode_1MIXED() 1395 rgba[ACOMP] = 255; in fxt1_decode_1MIXED() [all …]
|
/third_party/mesa3d/src/mesa/drivers/dri/i915/ |
D | i830_state.c | 269 UNCLAMPED_FLOAT_TO_UBYTE(a, color[ACOMP]); in i830BlendColor()
|