/external/mesa3d/src/mesa/swrast/ |
D | s_texcombine.c | 123 rgba[i][BCOMP] = CHAN_TO_FLOAT(rgbaChan[i][BCOMP]); in texture_combine() 210 dst[i][BCOMP] = 1.0F - src[i][BCOMP]; 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() 310 rgba[i][BCOMP] = arg0[i][BCOMP] * scaleRGB; in texture_combine() 317 rgba[i][BCOMP] = arg0[i][BCOMP] * arg1[i][BCOMP] * scaleRGB; in texture_combine() 328 rgba[i][BCOMP] = (arg0[i][BCOMP] * arg1[i][BCOMP] + in texture_combine() 329 arg2[i][BCOMP] * arg3[i][BCOMP]) * scaleRGB; in texture_combine() 337 rgba[i][BCOMP] = (arg0[i][BCOMP] + arg1[i][BCOMP]) * scaleRGB; in texture_combine() 349 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 | 74 const GLushort bMask = ctx->Color.ColorMask[buf][BCOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span() 82 src[i][BCOMP] = (src[i][BCOMP] & bMask) | (dst[i][BCOMP] & ~bMask); in _swrast_mask_rgba_span() 90 const GLuint bMask = ctx->Color.ColorMask[buf][BCOMP] ? ~0x0 : 0x0; in _swrast_mask_rgba_span() 98 src[i][BCOMP] = (src[i][BCOMP] & bMask) | (dst[i][BCOMP] & ~bMask); in _swrast_mask_rgba_span()
|
D | s_fog.c | 101 rgba[i][BCOMP] = (TYPE) (f * rgba[i][BCOMP] + oneMinusF * bFog); \ 118 rgba[i][BCOMP] = (TYPE) (f * rgba[i][BCOMP] + oneMinusF * bFog); \ 144 bFog = ctx->Fog.Color[BCOMP] * 255.0F; in _swrast_fog_rgba_span() 149 bFog = ctx->Fog.Color[BCOMP] * 65535.0F; in _swrast_fog_rgba_span() 154 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 | 436 srcColor0[srcCol0][BCOMP], srcColor0[srcCol1][BCOMP], in resample_linear_row_ub() 437 srcColor1[srcCol0][BCOMP], srcColor1[srcCol1][BCOMP]); in resample_linear_row_ub() 444 dstColor[dstCol][BCOMP] = IFLOOR(blue); in resample_linear_row_ub() 491 srcColor0[srcCol0][BCOMP], srcColor0[srcCol1][BCOMP], in resample_linear_row_float() 492 srcColor1[srcCol0][BCOMP], srcColor1[srcCol1][BCOMP]); in resample_linear_row_float() 499 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 | 366 GLfloat eMaj_db = (GLfloat) (vMax->color[BCOMP] - vMin->color[BCOMP]); in NAME() 367 GLfloat eBot_db = (GLfloat) (vMid->color[BCOMP] - vMin->color[BCOMP]); in NAME() 652 bLeft = (GLint)(ChanToFixed(vLower->color[BCOMP]) in NAME() 673 bLeft = ChanToFixed(v2->color[BCOMP]); in NAME()
|
D | s_span.c | 240 color[BCOMP] = FixedToInt(span->blue); in interpolate_int_colors() 258 rgba[i][BCOMP] = FixedToChan(b); in interpolate_int_colors() 275 color[BCOMP] = FixedToInt(span->blue); in interpolate_int_colors() 296 rgba[i][BCOMP] = FixedToChan(b); in interpolate_int_colors() 925 rgba[i][BCOMP] = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in clamp_colors()
|
/external/mesa3d/src/mesa/main/ |
D | texcompress_s3tc.c | 262 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgb_dxt1() 274 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt1() 286 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt3() 298 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt5() 311 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgb_dxt1() 323 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt1() 335 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt3() 347 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt5()
|
D | texcompress_fxt1.c | 1387 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI() 1406 rgba[BCOMP] = b; in fxt1_decode_1HI() 1428 rgba[BCOMP] = UP5(kk); in fxt1_decode_1CHROMA() 1447 col[0][BCOMP] = (*(const GLuint *)(code + 11)) >> 6; in fxt1_decode_1MIXED() 1451 col[1][BCOMP] = CC_SEL(cc, 109); in fxt1_decode_1MIXED() 1459 col[0][BCOMP] = CC_SEL(cc, 64); in fxt1_decode_1MIXED() 1463 col[1][BCOMP] = CC_SEL(cc, 79); in fxt1_decode_1MIXED() 1475 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED() 1479 b = UP5(col[0][BCOMP]); in fxt1_decode_1MIXED() 1483 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 | accum.c | 243 acc[i * 4 + 2] = (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load() 252 acc[i * 4 + 2] += (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load() 303 !ctx->Color.ColorMask[buffer][BCOMP] || in accum_return() 351 if (ctx->Color.ColorMask[buffer][BCOMP] == 0) { in accum_return() 353 rgba[i][BCOMP] = dest[i][BCOMP]; in accum_return()
|
D | texcompress_etc.c | 1270 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc1_rgb8() 1292 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgb8() 1313 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(dst[2]); in fetch_etc2_srgb8() 1332 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgba8_eac() 1351 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(dst[2]); in fetch_etc2_srgb8_alpha8_eac() 1370 texel[BCOMP] = 0.0f; in fetch_etc2_r11_eac() 1394 texel[BCOMP] = 0.0f; in fetch_etc2_rg11_eac() 1413 texel[BCOMP] = 0.0f; in fetch_etc2_signed_r11_eac() 1437 texel[BCOMP] = 0.0f; in fetch_etc2_signed_rg11_eac() 1458 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgb8_punchthrough_alpha1() [all …]
|
D | texcompress_s3tc_tmp.h | 36 #define BCOMP 2 macro 69 rgba[BCOMP] = UBYTE_TO_CHAN( EXP5TO8B(color0) ); in dxt135_decode_imageblock() 74 rgba[BCOMP] = UBYTE_TO_CHAN( EXP5TO8B(color1) ); in dxt135_decode_imageblock() 80 rgba[BCOMP] = UBYTE_TO_CHAN( ((EXP5TO8B(color0) * 2 + EXP5TO8B(color1)) / 3) ); in dxt135_decode_imageblock() 85 rgba[BCOMP] = UBYTE_TO_CHAN( ((EXP5TO8B(color0) + EXP5TO8B(color1)) / 2) ); in dxt135_decode_imageblock() 92 rgba[BCOMP] = UBYTE_TO_CHAN( ((EXP5TO8B(color0) + EXP5TO8B(color1) * 2) / 3) ); in dxt135_decode_imageblock() 97 rgba[BCOMP] = 0; in dxt135_decode_imageblock()
|
D | pack.c | 1344 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float() 1349 dst[i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float() 1356 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float() 1362 dst[2*i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float() 1475 (uint64_t) rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_integer() 1479 (int64_t) ((int32_t) rgba[i][BCOMP]); in _mesa_pack_luminance_from_rgba_integer() 1510 (uint64_t) rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_integer() 1514 (int64_t) ((int32_t) rgba[i][BCOMP]); in _mesa_pack_luminance_from_rgba_integer()
|
D | config.h | 306 #define BCOMP 2 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() 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()
|
D | nv04_state_raster.c | 169 if (ctx->Color.ColorMask[0][BCOMP]) in nv04_emit_control()
|
D | nv04_context.c | 62 ctx->Color.ColorMask[0][BCOMP] && in nv04_context_engine()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_line.c | 207 pixelPtr->b = color[BCOMP]; \ 356 pixelPtr->b = color[BCOMP]; \
|
D | xm_tri.c | 446 ptr->b = color[BCOMP]; \ 529 color[GCOMP], color[BCOMP]); \ 831 pixel->b = color[BCOMP]; \ 894 color[GCOMP], color[BCOMP]); \
|