Home
last modified time | relevance | path

Searched refs:BCOMP (Results 1 – 25 of 44) 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_texfetch_tmp.h110 texel[BCOMP] = src[2]; in FETCH()
128 texel[BCOMP] = _mesa_half_to_float(src[2]); in FETCH()
145 texel[BCOMP] = src[2]; in FETCH()
163 texel[BCOMP] = _mesa_half_to_float(src[2]); in FETCH()
181 texel[BCOMP] = 0.0F; in FETCH()
199 texel[BCOMP] = 0.0F; in FETCH()
217 texel[BCOMP] = src[0]; in FETCH()
235 texel[BCOMP] = _mesa_half_to_float(src[0]); in FETCH()
253 texel[BCOMP] = src[0]; in FETCH()
271 texel[BCOMP] = _mesa_half_to_float(src[0]); in FETCH()
[all …]
Ds_blend.c149 const GLint b = DIV255((rgba[i][BCOMP] - dest[i][BCOMP]) * t) + dest[i][BCOMP]; in blend_transparency_ubyte()
157 rgba[i][BCOMP] = (GLubyte) b; in blend_transparency_ubyte()
194 GLushort b = (GLushort) ((rgba[i][BCOMP] - dest[i][BCOMP]) * tt + dest[i][BCOMP]); in blend_transparency_ushort()
231 GLfloat b = (rgba[i][BCOMP] - dest[i][BCOMP]) * t + dest[i][BCOMP]; in blend_transparency_float()
264 GLint b = rgba[i][BCOMP] + dest[i][BCOMP]; in blend_add()
268 rgba[i][BCOMP] = (GLubyte) MIN2( b, 255 ); in blend_add()
280 GLint b = rgba[i][BCOMP] + dest[i][BCOMP]; in blend_add()
284 rgba[i][BCOMP] = (GLshort) MIN2( b, 255 ); in blend_add()
298 rgba[i][BCOMP] += dest[i][BCOMP]; in blend_add()
327 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.c412 srcColor0[srcCol0][BCOMP], srcColor0[srcCol1][BCOMP], in resample_linear_row_ub()
413 srcColor1[srcCol0][BCOMP], srcColor1[srcCol1][BCOMP]); in resample_linear_row_ub()
420 dstColor[dstCol][BCOMP] = IFLOOR(blue); in resample_linear_row_ub()
469 srcColor0[srcCol0][BCOMP], srcColor0[srcCol1][BCOMP], in resample_linear_row_float()
470 srcColor1[srcCol0][BCOMP], srcColor1[srcCol1][BCOMP]); in resample_linear_row_float()
477 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.h361 GLfloat eMaj_db = (GLfloat) (vMax->color[BCOMP] - vMin->color[BCOMP]); in NAME()
362 GLfloat eBot_db = (GLfloat) (vMid->color[BCOMP] - vMin->color[BCOMP]); in NAME()
647 bLeft = (GLint)(ChanToFixed(vLower->color[BCOMP]) in NAME()
668 bLeft = ChanToFixed(v2->color[BCOMP]); in NAME()
/external/mesa3d/src/mesa/main/
Dpack.c562 | (CLAMP(rgba[i][BCOMP], 0, 3) ); in _mesa_pack_rgba_span_from_uints()
574 | (CLAMP(rgba[i][BCOMP], 0, 3) << 6); in _mesa_pack_rgba_span_from_uints()
586 | (CLAMP(rgba[i][BCOMP], 0, 31) ); in _mesa_pack_rgba_span_from_uints()
598 | (CLAMP(rgba[i][BCOMP], 0, 31) << 11); in _mesa_pack_rgba_span_from_uints()
610 | (CLAMP(rgba[i][BCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
617 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 15) << 12) in _mesa_pack_rgba_span_from_uints()
627 | (CLAMP(rgba[i][BCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
641 | (CLAMP(rgba[i][BCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
648 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 15) ) in _mesa_pack_rgba_span_from_uints()
658 | (CLAMP(rgba[i][BCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
[all …]
Dformat_unpack.c98 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBA8888()
111 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBA8888_REV()
124 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_ARGB8888()
137 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_ARGB8888_REV()
150 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBX8888()
163 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBX8888_REV()
176 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_XRGB8888()
189 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_XRGB8888_REV()
202 dst[i][BCOMP] = UBYTE_TO_FLOAT( s[i*3+0] ); in unpack_RGB888()
215 dst[i][BCOMP] = UBYTE_TO_FLOAT( s[i*3+2] ); in unpack_BGR888()
[all …]
Dpack_tmp.h48 dst[i] = SRC_CONVERT(rgba[i][BCOMP]); in FN_NAME()
69 dst[i*3+2] = SRC_CONVERT(rgba[i][BCOMP]); in FN_NAME()
77 dst[i*4+2] = SRC_CONVERT(rgba[i][BCOMP]); in FN_NAME()
84 dst[i*3+0] = SRC_CONVERT(rgba[i][BCOMP]); in FN_NAME()
92 dst[i*4+0] = SRC_CONVERT(rgba[i][BCOMP]); in FN_NAME()
103 rgba[i][BCOMP]); in FN_NAME()
111 rgba[i][BCOMP]); in FN_NAME()
Dtexcompress_s3tc.c394 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_rgb_dxt1()
423 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_rgba_dxt1()
452 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_rgba_dxt3()
481 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_rgba_dxt5()
495 texel[BCOMP] = nonlinear_to_linear(rgba[BCOMP]); in _mesa_fetch_texel_srgb_dxt1()
508 texel[BCOMP] = nonlinear_to_linear(rgba[BCOMP]); in _mesa_fetch_texel_srgba_dxt1()
521 texel[BCOMP] = nonlinear_to_linear(rgba[BCOMP]); in _mesa_fetch_texel_srgba_dxt3()
534 texel[BCOMP] = nonlinear_to_linear(rgba[BCOMP]); in _mesa_fetch_texel_srgba_dxt5()
Dformat_pack.c101 *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()
206 src[i][GCOMP], src[i][BCOMP]); in pack_row_ubyte_ARGB8888()
231 *d = PACK_COLOR_8888(src[BCOMP], src[GCOMP], src[RCOMP], src[ACOMP]); in pack_ubyte_ARGB8888_REV()
248 d[i] = PACK_COLOR_8888(src[i][BCOMP], src[i][GCOMP], in pack_row_ubyte_ARGB8888_REV()
274 *d = PACK_COLOR_8888(0x0, src[RCOMP], src[GCOMP], src[BCOMP]); in pack_ubyte_XRGB8888()
291 d[i] = PACK_COLOR_8888(0, src[i][RCOMP], src[i][GCOMP], src[i][BCOMP]); in pack_row_ubyte_XRGB8888()
[all …]
Dtexcompress_fxt1.c169 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_2d_f_rgba_fxt1()
184 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_2d_f_rgb_fxt1()
1417 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI()
1436 rgba[BCOMP] = b; in fxt1_decode_1HI()
1458 rgba[BCOMP] = UP5(kk); in fxt1_decode_1CHROMA()
1477 col[0][BCOMP] = (*(const GLuint *)(code + 11)) >> 6; in fxt1_decode_1MIXED()
1481 col[1][BCOMP] = CC_SEL(cc, 109); in fxt1_decode_1MIXED()
1489 col[0][BCOMP] = CC_SEL(cc, 64); in fxt1_decode_1MIXED()
1493 col[1][BCOMP] = CC_SEL(cc, 79); in fxt1_decode_1MIXED()
1505 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED()
[all …]
Dpixeltransfer.c64 rgba[i][BCOMP] = rgba[i][BCOMP] * bScale + bBias; in _mesa_scale_and_bias_rgba()
94 GLfloat b = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in _mesa_map_rgba()
98 rgba[i][BCOMP] = bMap[F_TO_I(b * bscale)]; in _mesa_map_rgba()
122 rgba[i][BCOMP] = bMap[index[i] & bmask]; in _mesa_map_ci_to_rgba()
184 rgba[i][BCOMP] = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
Dtexcompress_rgtc.c305 texel[BCOMP] = 0.0; in _mesa_fetch_texel_red_rgtc1()
320 texel[BCOMP] = 0.0; in _mesa_fetch_texel_signed_red_rgtc1()
338 texel[BCOMP] = 0.0; in _mesa_fetch_texel_rg_rgtc2()
356 texel[BCOMP] = 0.0; in _mesa_fetch_texel_signed_rg_rgtc2()
371 texel[BCOMP] = UBYTE_TO_FLOAT(red); in _mesa_fetch_texel_l_latc1()
386 texel[BCOMP] = BYTE_TO_FLOAT_TEX(red); in _mesa_fetch_texel_signed_l_latc1()
404 texel[BCOMP] = UBYTE_TO_FLOAT(red); in _mesa_fetch_texel_la_latc2()
422 texel[BCOMP] = BYTE_TO_FLOAT_TEX(red); in _mesa_fetch_texel_signed_la_latc2()
Dimage.c483 dst2[i][BCOMP] = UBYTE_TO_USHORT(src1[i][BCOMP]); in _mesa_convert_colors()
499 dst4[i][BCOMP] = UBYTE_TO_FLOAT(src1[i][BCOMP]); in _mesa_convert_colors()
516 dst1[i][BCOMP] = USHORT_TO_UBYTE(src2[i][BCOMP]); in _mesa_convert_colors()
532 dst4[i][BCOMP] = USHORT_TO_FLOAT(src2[i][BCOMP]); in _mesa_convert_colors()
561 UNCLAMPED_FLOAT_TO_USHORT(dst2[i][BCOMP], src4[i][BCOMP]); in _mesa_convert_colors()
Daccum.c304 acc[i * 4 + 2] = (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load()
313 acc[i * 4 + 2] += (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load()
364 !ctx->Color.ColorMask[buffer][BCOMP] || in accum_return()
412 if (ctx->Color.ColorMask[buffer][BCOMP] == 0) { in accum_return()
414 rgba[i][BCOMP] = dest[i][BCOMP]; in accum_return()
Dtexcompress_etc.c69 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in _mesa_fetch_texel_2d_f_etc1_rgb8()
Dconfig.h279 #define BCOMP 2 macro
/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()
/external/mesa3d/src/mesa/drivers/windows/gdi/
Dwmesa.c460 RGB(rgba[i][RCOMP], rgba[i][GCOMP], rgba[i][BCOMP])); in write_rgba_span_front()
465 RGB(rgba[i][RCOMP], rgba[i][GCOMP], rgba[i][BCOMP])); in write_rgba_span_front()
484 c.b=rgba[i][BCOMP]; in write_rgba_span_front()
496 c.b=rgba[i][BCOMP]; in write_rgba_span_front()
530 rgba[i][BCOMP])); in write_rgba_pixels_front()
550 rgba[i][BCOMP] = GetBValue(Color); in read_rgba_span_front()
571 rgba[i][BCOMP] = GetBValue(Color); in read_rgba_pixels_front()
606 rgba[i][BCOMP]); in write_rgba_span_32()
611 rgba[i][BCOMP]); in write_rgba_span_32()
629 rgba[i][RCOMP], rgba[i][GCOMP], rgba[i][BCOMP]); in write_rgba_pixels_32()
[all …]
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c243 ctx->Color.ColorMask[i][BCOMP], in _mesa_init_driver_state()
251 ctx->Color.ColorMask[0][BCOMP], in _mesa_init_driver_state()

12