/external/mesa3d/src/mesa/swrast/ |
D | s_texcombine.c | 124 rgba[i][BCOMP] = CHAN_TO_FLOAT(rgbaChan[i][BCOMP]); in texture_combine() 211 dst[i][BCOMP] = 1.0F - src[i][BCOMP]; 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() 311 rgba[i][BCOMP] = arg0[i][BCOMP] * scaleRGB; in texture_combine() 318 rgba[i][BCOMP] = arg0[i][BCOMP] * arg1[i][BCOMP] * scaleRGB; in texture_combine() 329 rgba[i][BCOMP] = (arg0[i][BCOMP] * arg1[i][BCOMP] + in texture_combine() 330 arg2[i][BCOMP] * arg3[i][BCOMP]) * scaleRGB; in texture_combine() 338 rgba[i][BCOMP] = (arg0[i][BCOMP] + arg1[i][BCOMP]) * scaleRGB; in texture_combine() 350 rgba[i][BCOMP] = (arg0[i][BCOMP] * arg1[i][BCOMP] + in texture_combine() [all …]
|
D | s_blend.c | 146 const GLint b = DIV255((rgba[i][BCOMP] - dest[i][BCOMP]) * t) + dest[i][BCOMP]; in blend_transparency_ubyte() 154 rgba[i][BCOMP] = (GLubyte) b; in blend_transparency_ubyte() 191 GLushort b = (GLushort) ((rgba[i][BCOMP] - dest[i][BCOMP]) * tt + dest[i][BCOMP]); in blend_transparency_ushort() 228 GLfloat b = (rgba[i][BCOMP] - dest[i][BCOMP]) * t + dest[i][BCOMP]; in blend_transparency_float() 261 GLint b = rgba[i][BCOMP] + dest[i][BCOMP]; in blend_add() 265 rgba[i][BCOMP] = (GLubyte) MIN2( b, 255 ); in blend_add() 277 GLint b = rgba[i][BCOMP] + dest[i][BCOMP]; in blend_add() 281 rgba[i][BCOMP] = (GLshort) MIN2( b, 255 ); in blend_add() 295 rgba[i][BCOMP] += dest[i][BCOMP]; in blend_add() 324 rgba[i][BCOMP] = MIN2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_min() [all …]
|
D | s_masking.c | 88 src[i][BCOMP] = (src[i][BCOMP] & bMask) | (dst[i][BCOMP] & ~bMask); in _swrast_mask_rgba_span() 104 src[i][BCOMP] = (src[i][BCOMP] & bMask) | (dst[i][BCOMP] & ~bMask); in _swrast_mask_rgba_span()
|
D | s_fog.c | 102 rgba[i][BCOMP] = (TYPE) (f * rgba[i][BCOMP] + oneMinusF * bFog); \ 119 rgba[i][BCOMP] = (TYPE) (f * rgba[i][BCOMP] + oneMinusF * bFog); \ 145 bFog = ctx->Fog.Color[BCOMP] * 255.0F; in _swrast_fog_rgba_span() 150 bFog = ctx->Fog.Color[BCOMP] * 65535.0F; in _swrast_fog_rgba_span() 155 bFog = ctx->Fog.Color[BCOMP]; in _swrast_fog_rgba_span()
|
D | s_triangle.c | 157 rgba[i][BCOMP] = texture[pos+0]; \ 218 rgba[i][BCOMP] = texture[pos+0]; \ 286 sample[BCOMP] = tex00[0]; \ in affine_span() 292 sample[BCOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);\ in affine_span() 298 sample[BCOMP] = tex00[1]; \ in affine_span() 304 sample[BCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\ in affine_span() 310 dest[BCOMP] = span->blue * (sample[BCOMP] + 1u) >> (FIXED_SHIFT + 8); \ in affine_span() 320 dest[BCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->blue + \ in affine_span() 321 ((sample[ACOMP] + 1) * sample[BCOMP] << FIXED_SHIFT)) \ in affine_span() 330 dest[BCOMP] = ((CHAN_MAX - sample[BCOMP]) * span->blue \ in affine_span() [all …]
|
D | s_blit.c | 438 srcColor0[srcCol0][BCOMP], srcColor0[srcCol1][BCOMP], in resample_linear_row_ub() 439 srcColor1[srcCol0][BCOMP], srcColor1[srcCol1][BCOMP]); in resample_linear_row_ub() 446 dstColor[dstCol][BCOMP] = util_ifloor(blue); in resample_linear_row_ub() 493 srcColor0[srcCol0][BCOMP], srcColor0[srcCol1][BCOMP], in resample_linear_row_float() 494 srcColor1[srcCol0][BCOMP], srcColor1[srcCol1][BCOMP]); in resample_linear_row_float() 501 dstColor[dstCol][BCOMP] = blue; in resample_linear_row_float()
|
D | s_aatritemp.h | 125 compute_plane(p0, p1, p2, v0->color[BCOMP], v1->color[BCOMP], v2->color[BCOMP], bPlane); 131 constant_plane(v2->color[BCOMP], bPlane); 231 array->rgba[count][BCOMP] = solve_plane_chan(cx, cy, bPlane); 294 array->rgba[ix][BCOMP] = solve_plane_chan(cx, cy, bPlane);
|
D | s_aalinetemp.h | 64 line->span.array->rgba[i][BCOMP] = solve_plane_chan(fx, fy, line->bPlane); in NAME() 147 v0->color[BCOMP], v1->color[BCOMP], line.bPlane); in NAME() 154 constant_plane(v1->color[BCOMP], line.bPlane); in NAME()
|
D | s_tritemp.h | 367 GLfloat eMaj_db = (GLfloat) (vMax->color[BCOMP] - vMin->color[BCOMP]); in NAME() 368 GLfloat eBot_db = (GLfloat) (vMid->color[BCOMP] - vMin->color[BCOMP]); in NAME() 653 bLeft = (GLint)(ChanToFixed(vLower->color[BCOMP]) in NAME() 674 bLeft = ChanToFixed(v2->color[BCOMP]); in NAME()
|
D | s_span.c | 241 color[BCOMP] = FixedToInt(span->blue); in interpolate_int_colors() 259 rgba[i][BCOMP] = FixedToChan(b); in interpolate_int_colors() 276 color[BCOMP] = FixedToInt(span->blue); in interpolate_int_colors() 297 rgba[i][BCOMP] = FixedToChan(b); in interpolate_int_colors() 926 rgba[i][BCOMP] = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in clamp_colors()
|
D | s_texfetch.c | 98 texel[BCOMP] = 0.0; in fetch_null_texelf()
|
/external/mesa3d/src/mesa/main/ |
D | texcompress_s3tc.c | 271 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgb_dxt1() 283 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt1() 295 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt3() 307 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt5() 320 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgb_dxt1() 332 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt1() 344 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt3() 356 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt5()
|
D | texcompress_fxt1.c | 1392 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI() 1411 rgba[BCOMP] = b; in fxt1_decode_1HI() 1433 rgba[BCOMP] = UP5(kk); in fxt1_decode_1CHROMA() 1452 col[0][BCOMP] = (*(const GLuint *)(code + 11)) >> 6; in fxt1_decode_1MIXED() 1456 col[1][BCOMP] = CC_SEL(cc, 109); in fxt1_decode_1MIXED() 1464 col[0][BCOMP] = CC_SEL(cc, 64); in fxt1_decode_1MIXED() 1468 col[1][BCOMP] = CC_SEL(cc, 79); in fxt1_decode_1MIXED() 1480 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED() 1484 b = UP5(col[0][BCOMP]); in fxt1_decode_1MIXED() 1488 b = UP5(col[1][BCOMP]); in fxt1_decode_1MIXED() [all …]
|
D | pixeltransfer.c | 66 rgba[i][BCOMP] = rgba[i][BCOMP] * bScale + bBias; in _mesa_scale_and_bias_rgba() 96 GLfloat b = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in _mesa_map_rgba() 100 rgba[i][BCOMP] = bMap[(int)_mesa_lroundevenf(b * bscale)]; in _mesa_map_rgba() 124 rgba[i][BCOMP] = bMap[index[i] & bmask]; in _mesa_map_ci_to_rgba() 186 rgba[i][BCOMP] = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
|
D | texcompress_rgtc.c | 322 texel[BCOMP] = 0.0; in fetch_red_rgtc1() 334 texel[BCOMP] = UBYTE_TO_FLOAT(red); in fetch_l_latc1() 347 texel[BCOMP] = 0.0; in fetch_signed_red_rgtc1() 360 texel[BCOMP] = BYTE_TO_FLOAT(red); in fetch_signed_l_latc1() 377 texel[BCOMP] = 0.0; in fetch_rg_rgtc2() 394 texel[BCOMP] = UBYTE_TO_FLOAT(red); in fetch_la_latc2() 412 texel[BCOMP] = 0.0; in fetch_signed_rg_rgtc2() 430 texel[BCOMP] = BYTE_TO_FLOAT_TEX(red); in fetch_signed_la_latc2()
|
D | image.c | 497 dst2[i][BCOMP] = UBYTE_TO_USHORT(src1[i][BCOMP]); in _mesa_convert_colors() 513 dst4[i][BCOMP] = UBYTE_TO_FLOAT(src1[i][BCOMP]); in _mesa_convert_colors() 530 dst1[i][BCOMP] = USHORT_TO_UBYTE(src2[i][BCOMP]); in _mesa_convert_colors() 546 dst4[i][BCOMP] = USHORT_TO_FLOAT(src2[i][BCOMP]); in _mesa_convert_colors() 575 UNCLAMPED_FLOAT_TO_USHORT(dst2[i][BCOMP], src4[i][BCOMP]); in _mesa_convert_colors()
|
D | texcompress_etc.c | 1285 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc1_rgb8() 1307 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgb8() 1328 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(dst[2]); in fetch_etc2_srgb8() 1347 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgba8_eac() 1366 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(dst[2]); in fetch_etc2_srgb8_alpha8_eac() 1385 texel[BCOMP] = 0.0f; in fetch_etc2_r11_eac() 1409 texel[BCOMP] = 0.0f; in fetch_etc2_rg11_eac() 1428 texel[BCOMP] = 0.0f; in fetch_etc2_signed_r11_eac() 1452 texel[BCOMP] = 0.0f; in fetch_etc2_signed_rg11_eac() 1473 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgb8_punchthrough_alpha1() [all …]
|
D | accum.c | 246 acc[i * 4 + 2] = (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load() 255 acc[i * 4 + 2] += (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load() 357 rgba[i][BCOMP] = dest[i][BCOMP]; in accum_return()
|
D | texcompress_bptc.c | 89 texel[BCOMP] = UBYTE_TO_FLOAT(texel_bytes[2]); in fetch_bptc_rgba_unorm() 104 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(texel_bytes[2]); in fetch_bptc_srgb_alpha_unorm()
|
D | texcompress_s3tc_tmp.h | 39 #define BCOMP 2 macro 72 rgba[BCOMP] = UBYTE_TO_CHAN( EXP5TO8B(color0) ); in dxt135_decode_imageblock() 77 rgba[BCOMP] = UBYTE_TO_CHAN( EXP5TO8B(color1) ); in dxt135_decode_imageblock() 83 rgba[BCOMP] = UBYTE_TO_CHAN( ((EXP5TO8B(color0) * 2 + EXP5TO8B(color1)) / 3) ); in dxt135_decode_imageblock() 88 rgba[BCOMP] = UBYTE_TO_CHAN( ((EXP5TO8B(color0) + EXP5TO8B(color1)) / 2) ); in dxt135_decode_imageblock() 95 rgba[BCOMP] = UBYTE_TO_CHAN( ((EXP5TO8B(color0) + EXP5TO8B(color1) * 2) / 3) ); in dxt135_decode_imageblock() 100 rgba[BCOMP] = 0; in dxt135_decode_imageblock()
|
D | config.h | 301 #define BCOMP 2 macro
|
D | pack.c | 1345 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float() 1350 dst[i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float() 1357 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float() 1363 dst[2*i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float() 1476 (uint64_t) rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_integer() 1480 (int64_t) ((int32_t) rgba[i][BCOMP]); in _mesa_pack_luminance_from_rgba_integer() 1511 (uint64_t) rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_integer() 1515 (int64_t) ((int32_t) rgba[i][BCOMP]); 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() 42 return PACK_COLOR_8888(0, c[RCOMP], c[GCOMP], c[BCOMP]); in pack_rgba_i() 44 return PACK_COLOR_8888(c[BCOMP], c[GCOMP], c[RCOMP], 0); 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() 50 return PACK_COLOR_565(c[RCOMP], c[GCOMP], c[BCOMP]); in pack_rgba_i() 77 FLOAT_TO_UBYTE(c[BCOMP]), in pack_rgba_f()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_line.c | 207 pixelPtr->b = color[BCOMP]; \ 356 pixelPtr->b = color[BCOMP]; \
|
D | xm_tri.c | 445 ptr->b = color[BCOMP]; \ 528 color[GCOMP], color[BCOMP]); \ 830 pixel->b = color[BCOMP]; \ 893 color[GCOMP], color[BCOMP]); \
|