Home
last modified time | relevance | path

Searched refs:RCOMP (Results 1 – 25 of 32) sorted by relevance

12

/external/mesa3d/src/mesa/swrast/
Ds_texcombine.c122 rgba[i][RCOMP] = CHAN_TO_FLOAT(rgbaChan[i][RCOMP]); in texture_combine()
209 dst[i][RCOMP] = 1.0F - src[i][RCOMP]; in texture_combine()
216 dst[i][RCOMP] = in texture_combine()
223 dst[i][RCOMP] = in texture_combine()
309 rgba[i][RCOMP] = arg0[i][RCOMP] * scaleRGB; in texture_combine()
316 rgba[i][RCOMP] = arg0[i][RCOMP] * arg1[i][RCOMP] * scaleRGB; in texture_combine()
325 rgba[i][RCOMP] = (arg0[i][RCOMP] * arg1[i][RCOMP] + in texture_combine()
326 arg2[i][RCOMP] * arg3[i][RCOMP]) * scaleRGB; in texture_combine()
336 rgba[i][RCOMP] = (arg0[i][RCOMP] + arg1[i][RCOMP]) * scaleRGB; in texture_combine()
346 rgba[i][RCOMP] = (arg0[i][RCOMP] * arg1[i][RCOMP] + in texture_combine()
[all …]
Ds_blend.c144 const GLint r = DIV255((rgba[i][RCOMP] - dest[i][RCOMP]) * t) + dest[i][RCOMP]; in blend_transparency_ubyte()
152 rgba[i][RCOMP] = (GLubyte) r; in blend_transparency_ubyte()
189 GLushort r = (GLushort) ((rgba[i][RCOMP] - dest[i][RCOMP]) * tt + dest[i][RCOMP]); in blend_transparency_ushort()
226 GLfloat r = (rgba[i][RCOMP] - dest[i][RCOMP]) * t + dest[i][RCOMP]; in blend_transparency_float()
259 GLint r = rgba[i][RCOMP] + dest[i][RCOMP]; in blend_add()
263 rgba[i][RCOMP] = (GLubyte) MIN2( r, 255 ); in blend_add()
275 GLint r = rgba[i][RCOMP] + dest[i][RCOMP]; in blend_add()
279 rgba[i][RCOMP] = (GLshort) MIN2( r, 255 ); in blend_add()
293 rgba[i][RCOMP] += dest[i][RCOMP]; in blend_add()
322 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_min()
[all …]
Ds_masking.c86 src[i][RCOMP] = (src[i][RCOMP] & rMask) | (dst[i][RCOMP] & ~rMask); in _swrast_mask_rgba_span()
102 src[i][RCOMP] = (src[i][RCOMP] & rMask) | (dst[i][RCOMP] & ~rMask); in _swrast_mask_rgba_span()
Ds_fog.c100 rgba[i][RCOMP] = (TYPE) (f * rgba[i][RCOMP] + oneMinusF * rFog); \
117 rgba[i][RCOMP] = (TYPE) (f * rgba[i][RCOMP] + oneMinusF * rFog); \
143 rFog = ctx->Fog.Color[RCOMP] * 255.0F; in _swrast_fog_rgba_span()
148 rFog = ctx->Fog.Color[RCOMP] * 65535.0F; in _swrast_fog_rgba_span()
153 rFog = ctx->Fog.Color[RCOMP]; in _swrast_fog_rgba_span()
Ds_triangle.c155 rgba[i][RCOMP] = texture[pos+2]; \
216 rgba[i][RCOMP] = texture[pos+2]; \
284 sample[RCOMP] = tex00[2]; \ in affine_span()
290 sample[RCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\ in affine_span()
296 sample[RCOMP] = tex00[3]; \ in affine_span()
302 sample[RCOMP] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]);\ in affine_span()
308 dest[RCOMP] = span->red * (sample[RCOMP] + 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()
326 dest[RCOMP] = ((CHAN_MAX - sample[RCOMP]) * span->red \ in affine_span()
[all …]
Ds_blit.c432 srcColor0[srcCol0][RCOMP], srcColor0[srcCol1][RCOMP], in resample_linear_row_ub()
433 srcColor1[srcCol0][RCOMP], srcColor1[srcCol1][RCOMP]); in resample_linear_row_ub()
444 dstColor[dstCol][RCOMP] = util_ifloor(red); in resample_linear_row_ub()
487 srcColor0[srcCol0][RCOMP], srcColor0[srcCol1][RCOMP], in resample_linear_row_float()
488 srcColor1[srcCol0][RCOMP], srcColor1[srcCol1][RCOMP]); in resample_linear_row_float()
499 dstColor[dstCol][RCOMP] = red; in resample_linear_row_float()
Ds_aatritemp.h123 compute_plane(p0, p1, p2, v0->color[RCOMP], v1->color[RCOMP], v2->color[RCOMP], rPlane);
129 constant_plane(v2->color[RCOMP], rPlane);
229 array->rgba[count][RCOMP] = solve_plane_chan(cx, cy, rPlane);
292 array->rgba[ix][RCOMP] = solve_plane_chan(cx, cy, rPlane);
Ds_aalinetemp.h62 line->span.array->rgba[i][RCOMP] = solve_plane_chan(fx, fy, line->rPlane); in NAME()
143 v0->color[RCOMP], v1->color[RCOMP], line.rPlane); in NAME()
152 constant_plane(v1->color[RCOMP], line.rPlane); in NAME()
Ds_tritemp.h363 GLfloat eMaj_dr = (GLfloat) (vMax->color[RCOMP] - vMin->color[RCOMP]); in NAME()
364 GLfloat eBot_dr = (GLfloat) (vMid->color[RCOMP] - vMin->color[RCOMP]); in NAME()
647 rLeft = (GLint)(ChanToFixed(vLower->color[RCOMP]) in NAME()
672 rLeft = ChanToFixed(v2->color[RCOMP]); in NAME()
Ds_span.c239 color[RCOMP] = FixedToInt(span->red); in interpolate_int_colors()
257 rgba[i][RCOMP] = FixedToChan(r); in interpolate_int_colors()
274 color[RCOMP] = FixedToInt(span->red); in interpolate_int_colors()
295 rgba[i][RCOMP] = FixedToChan(r); in interpolate_int_colors()
924 rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in clamp_colors()
Ds_texfetch.c96 texel[RCOMP] = 0.0; in fetch_null_texelf()
/external/mesa3d/src/mesa/main/
Dtexcompress_s3tc.c269 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgb_dxt1()
281 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt1()
293 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt3()
305 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt5()
318 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgb_dxt1()
330 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgba_dxt1()
342 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgba_dxt3()
354 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgba_dxt5()
Dtexcompress_fxt1.c1392 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI()
1409 rgba[RCOMP] = r; in fxt1_decode_1HI()
1435 rgba[RCOMP] = UP5(kk >> 10); in fxt1_decode_1CHROMA()
1454 col[0][RCOMP] = CC_SEL(cc, 104); in fxt1_decode_1MIXED()
1458 col[1][RCOMP] = CC_SEL(cc, 119); in fxt1_decode_1MIXED()
1466 col[0][RCOMP] = CC_SEL(cc, 74); in fxt1_decode_1MIXED()
1470 col[1][RCOMP] = CC_SEL(cc, 89); in fxt1_decode_1MIXED()
1480 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED()
1486 r = UP5(col[0][RCOMP]); in fxt1_decode_1MIXED()
1490 r = UP5(col[1][RCOMP]); in fxt1_decode_1MIXED()
[all …]
Dpixeltransfer.c54 rgba[i][RCOMP] = rgba[i][RCOMP] * rScale + rBias; in _mesa_scale_and_bias_rgba()
94 GLfloat r = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in _mesa_map_rgba()
98 rgba[i][RCOMP] = rMap[(int)_mesa_lroundevenf(r * rscale)]; in _mesa_map_rgba()
122 rgba[i][RCOMP] = rMap[index[i] & rmask]; in _mesa_map_ci_to_rgba()
184 rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
Dtexcompress_rgtc.c320 texel[RCOMP] = UBYTE_TO_FLOAT(red); in fetch_red_rgtc1()
332 texel[RCOMP] = in fetch_l_latc1()
345 texel[RCOMP] = BYTE_TO_FLOAT_TEX(red); in fetch_signed_red_rgtc1()
358 texel[RCOMP] = in fetch_signed_l_latc1()
375 texel[RCOMP] = UBYTE_TO_FLOAT(red); in fetch_rg_rgtc2()
392 texel[RCOMP] = in fetch_la_latc2()
410 texel[RCOMP] = BYTE_TO_FLOAT_TEX(red); in fetch_signed_rg_rgtc2()
428 texel[RCOMP] = in fetch_signed_la_latc2()
Dimage.c495 dst2[i][RCOMP] = UBYTE_TO_USHORT(src1[i][RCOMP]); in _mesa_convert_colors()
511 dst4[i][RCOMP] = UBYTE_TO_FLOAT(src1[i][RCOMP]); in _mesa_convert_colors()
528 dst1[i][RCOMP] = USHORT_TO_UBYTE(src2[i][RCOMP]); in _mesa_convert_colors()
544 dst4[i][RCOMP] = USHORT_TO_FLOAT(src2[i][RCOMP]); in _mesa_convert_colors()
573 UNCLAMPED_FLOAT_TO_USHORT(dst2[i][RCOMP], src4[i][RCOMP]); in _mesa_convert_colors()
Dtexcompress_etc.c1283 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc1_rgb8()
1305 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgb8()
1326 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(dst[0]); in fetch_etc2_srgb8()
1345 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgba8_eac()
1364 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(dst[0]); in fetch_etc2_srgb8_alpha8_eac()
1383 texel[RCOMP] = USHORT_TO_FLOAT(dst); in fetch_etc2_r11_eac()
1407 texel[RCOMP] = USHORT_TO_FLOAT(dst[0]); in fetch_etc2_rg11_eac()
1426 texel[RCOMP] = SHORT_TO_FLOAT(dst); in fetch_etc2_signed_r11_eac()
1450 texel[RCOMP] = SHORT_TO_FLOAT(dst[0]); in fetch_etc2_signed_rg11_eac()
1471 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgb8_punchthrough_alpha1()
[all …]
Daccum.c244 acc[i * 4 + 0] = (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load()
253 acc[i * 4 + 0] += (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load()
349 rgba[i][RCOMP] = dest[i][RCOMP]; in accum_return()
Dtexcompress_bptc.c87 texel[RCOMP] = UBYTE_TO_FLOAT(texel_bytes[0]); in fetch_bptc_rgba_unorm()
102 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(texel_bytes[0]); in fetch_bptc_srgb_alpha_unorm()
Dtexcompress_s3tc_tmp.h37 #define RCOMP 0 macro
70 rgba[RCOMP] = UBYTE_TO_CHAN( EXP5TO8R(color0) ); in dxt135_decode_imageblock()
75 rgba[RCOMP] = UBYTE_TO_CHAN( EXP5TO8R(color1) ); in dxt135_decode_imageblock()
81 rgba[RCOMP] = UBYTE_TO_CHAN( ((EXP5TO8R(color0) * 2 + EXP5TO8R(color1)) / 3) ); in dxt135_decode_imageblock()
86 rgba[RCOMP] = UBYTE_TO_CHAN( ((EXP5TO8R(color0) + EXP5TO8R(color1)) / 2) ); in dxt135_decode_imageblock()
93 rgba[RCOMP] = UBYTE_TO_CHAN( ((EXP5TO8R(color0) + EXP5TO8R(color1) * 2) / 3) ); in dxt135_decode_imageblock()
98 rgba[RCOMP] = 0; in dxt135_decode_imageblock()
Dconfig.h299 #define RCOMP 0 macro
Dpack.c1345 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()
1474 lum64 = (uint64_t) rgba[i][RCOMP] + in _mesa_pack_luminance_from_rgba_integer()
1478 lum64 = (int64_t) ((int32_t) rgba[i][RCOMP]) + in _mesa_pack_luminance_from_rgba_integer()
1509 lum64 = (uint64_t) rgba[i][RCOMP] + in _mesa_pack_luminance_from_rgba_integer()
1513 lum64 = (int64_t) ((int32_t) rgba[i][RCOMP]) + in _mesa_pack_luminance_from_rgba_integer()
/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()
75 FLOAT_TO_UBYTE(c[RCOMP]), in pack_rgba_f()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_line.c205 pixelPtr->r = color[RCOMP]; \
354 pixelPtr->r = color[RCOMP]; \
Dxm_tri.c443 ptr->r = color[RCOMP]; \
527 PACK_TRUEDITHER(pRow[i], x, y, color[RCOMP], \
828 pixel->r = color[RCOMP]; \
892 PACK_TRUEDITHER(pRow[i], x, y, color[RCOMP], \

12