Home
last modified time | relevance | path

Searched refs:BCOMP (Results 1 – 25 of 40) sorted by relevance

12

/external/mesa3d/src/mesa/swrast/
Ds_texcombine.c123 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 …]
Ds_blend.c146 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 …]
Ds_masking.c74 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()
Ds_fog.c101 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()
Ds_triangle.c156 rgba[i][BCOMP] = texture[pos+0]; \
217 rgba[i][BCOMP] = texture[pos+0]; \
285 sample[BCOMP] = tex00[0]; \ in affine_span()
291 sample[BCOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);\ in affine_span()
297 sample[BCOMP] = tex00[1]; \ in affine_span()
303 sample[BCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\ in affine_span()
309 dest[BCOMP] = span->blue * (sample[BCOMP] + 1u) >> (FIXED_SHIFT + 8); \ in affine_span()
319 dest[BCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->blue + \ in affine_span()
320 ((sample[ACOMP] + 1) * sample[BCOMP] << FIXED_SHIFT)) \ in affine_span()
329 dest[BCOMP] = ((CHAN_MAX - sample[BCOMP]) * span->blue \ in affine_span()
[all …]
Ds_blit.c436 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()
Ds_aatritemp.h125 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);
Ds_aalinetemp.h64 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()
Ds_tritemp.h366 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()
Ds_span.c238 color[BCOMP] = FixedToInt(span->blue); in interpolate_int_colors()
256 rgba[i][BCOMP] = FixedToChan(b); in interpolate_int_colors()
273 color[BCOMP] = FixedToInt(span->blue); in interpolate_int_colors()
294 rgba[i][BCOMP] = FixedToChan(b); in interpolate_int_colors()
923 rgba[i][BCOMP] = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in clamp_colors()
/external/mesa3d/src/mesa/main/
Dtexcompress_s3tc.c370 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgb_dxt1()
387 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt1()
404 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt3()
421 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt5()
439 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgb_dxt1()
456 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt1()
473 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt3()
490 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt5()
Dtexcompress_fxt1.c1387 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 …]
Dpixeltransfer.c66 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()
Dtexcompress_rgtc.c322 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()
Dimage.c497 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()
Daccum.c291 acc[i * 4 + 2] = (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load()
300 acc[i * 4 + 2] += (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load()
351 !ctx->Color.ColorMask[buffer][BCOMP] || in accum_return()
399 if (ctx->Color.ColorMask[buffer][BCOMP] == 0) { in accum_return()
401 rgba[i][BCOMP] = dest[i][BCOMP]; in accum_return()
Dtexcompress_etc.c1270 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 …]
Dpack.c1361 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1366 dst[i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1373 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1379 dst[2*i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1492 (uint64_t) rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_integer()
1496 (int64_t) ((int32_t) rgba[i][BCOMP]); in _mesa_pack_luminance_from_rgba_integer()
1527 (uint64_t) rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_integer()
1531 (int64_t) ((int32_t) rgba[i][BCOMP]); in _mesa_pack_luminance_from_rgba_integer()
Dconfig.h306 #define BCOMP 2 macro
Dsamplerobj.c616 samp->BorderColor.f[BCOMP] = params[2]; in set_sampler_border_colorf()
630 samp->BorderColor.i[BCOMP] = params[2]; in set_sampler_border_colori()
644 samp->BorderColor.ui[BCOMP] = params[2]; in set_sampler_border_colorui()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_util.h38 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()
Dnv04_state_raster.c169 if (ctx->Color.ColorMask[0][BCOMP]) in nv04_emit_control()
Dnv04_context.c62 ctx->Color.ColorMask[0][BCOMP] && in nv04_context_engine()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_line.c207 pixelPtr->b = color[BCOMP]; \
356 pixelPtr->b = color[BCOMP]; \
Dxm_tri.c446 ptr->b = color[BCOMP]; \
529 color[GCOMP], color[BCOMP]); \
831 pixel->b = color[BCOMP]; \
894 color[GCOMP], color[BCOMP]); \

12