Home
last modified time | relevance | path

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

12

/external/mesa3d/src/mesa/swrast/
Ds_texcombine.c121 rgba[i][RCOMP] = CHAN_TO_FLOAT(rgbaChan[i][RCOMP]); in texture_combine()
208 dst[i][RCOMP] = 1.0F - src[i][RCOMP]; in texture_combine()
215 dst[i][RCOMP] = in texture_combine()
222 dst[i][RCOMP] = in texture_combine()
308 rgba[i][RCOMP] = arg0[i][RCOMP] * scaleRGB; in texture_combine()
315 rgba[i][RCOMP] = arg0[i][RCOMP] * arg1[i][RCOMP] * scaleRGB; in texture_combine()
324 rgba[i][RCOMP] = (arg0[i][RCOMP] * arg1[i][RCOMP] + in texture_combine()
325 arg2[i][RCOMP] * arg3[i][RCOMP]) * scaleRGB; in texture_combine()
335 rgba[i][RCOMP] = (arg0[i][RCOMP] + arg1[i][RCOMP]) * scaleRGB; in texture_combine()
345 rgba[i][RCOMP] = (arg0[i][RCOMP] * arg1[i][RCOMP] + in texture_combine()
[all …]
Ds_texfetch_tmp.h108 texel[RCOMP] = src[0]; in FETCH()
126 texel[RCOMP] = _mesa_half_to_float(src[0]); in FETCH()
143 texel[RCOMP] = src[0]; in FETCH()
161 texel[RCOMP] = _mesa_half_to_float(src[0]); in FETCH()
179 texel[RCOMP] = in FETCH()
197 texel[RCOMP] = in FETCH()
215 texel[RCOMP] = in FETCH()
233 texel[RCOMP] = in FETCH()
251 texel[RCOMP] = in FETCH()
269 texel[RCOMP] = in FETCH()
[all …]
Ds_blend.c147 const GLint r = DIV255((rgba[i][RCOMP] - dest[i][RCOMP]) * t) + dest[i][RCOMP]; in blend_transparency_ubyte()
155 rgba[i][RCOMP] = (GLubyte) r; in blend_transparency_ubyte()
192 GLushort r = (GLushort) ((rgba[i][RCOMP] - dest[i][RCOMP]) * tt + dest[i][RCOMP]); in blend_transparency_ushort()
229 GLfloat r = (rgba[i][RCOMP] - dest[i][RCOMP]) * t + dest[i][RCOMP]; in blend_transparency_float()
262 GLint r = rgba[i][RCOMP] + dest[i][RCOMP]; in blend_add()
266 rgba[i][RCOMP] = (GLubyte) MIN2( r, 255 ); in blend_add()
278 GLint r = rgba[i][RCOMP] + dest[i][RCOMP]; in blend_add()
282 rgba[i][RCOMP] = (GLshort) MIN2( r, 255 ); in blend_add()
296 rgba[i][RCOMP] += dest[i][RCOMP]; in blend_add()
325 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_min()
[all …]
Ds_masking.c72 const GLushort rMask = ctx->Color.ColorMask[buf][RCOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span()
80 src[i][RCOMP] = (src[i][RCOMP] & rMask) | (dst[i][RCOMP] & ~rMask); in _swrast_mask_rgba_span()
88 const GLuint rMask = ctx->Color.ColorMask[buf][RCOMP] ? ~0x0 : 0x0; in _swrast_mask_rgba_span()
96 src[i][RCOMP] = (src[i][RCOMP] & rMask) | (dst[i][RCOMP] & ~rMask); in _swrast_mask_rgba_span()
Ds_fog.c99 rgba[i][RCOMP] = (TYPE) (f * rgba[i][RCOMP] + oneMinusF * rFog); \
116 rgba[i][RCOMP] = (TYPE) (f * rgba[i][RCOMP] + oneMinusF * rFog); \
142 rFog = ctx->Fog.Color[RCOMP] * 255.0F; in _swrast_fog_rgba_span()
147 rFog = ctx->Fog.Color[RCOMP] * 65535.0F; in _swrast_fog_rgba_span()
152 rFog = ctx->Fog.Color[RCOMP]; in _swrast_fog_rgba_span()
Ds_triangle.c154 rgba[i][RCOMP] = texture[pos+2]; \
215 rgba[i][RCOMP] = texture[pos+2]; \
283 sample[RCOMP] = tex00[2]; \ in affine_span()
289 sample[RCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\ in affine_span()
295 sample[RCOMP] = tex00[3]; \ in affine_span()
301 sample[RCOMP] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]);\ in affine_span()
307 dest[RCOMP] = span->red * (sample[RCOMP] + 1u) >> (FIXED_SHIFT + 8); \ in affine_span()
313 dest[RCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->red + \ in affine_span()
314 ((sample[ACOMP] + 1) * sample[RCOMP] << FIXED_SHIFT)) \ in affine_span()
325 dest[RCOMP] = ((CHAN_MAX - sample[RCOMP]) * span->red \ in affine_span()
[all …]
Ds_blit.c406 srcColor0[srcCol0][RCOMP], srcColor0[srcCol1][RCOMP], in resample_linear_row_ub()
407 srcColor1[srcCol0][RCOMP], srcColor1[srcCol1][RCOMP]); in resample_linear_row_ub()
418 dstColor[dstCol][RCOMP] = IFLOOR(red); in resample_linear_row_ub()
463 srcColor0[srcCol0][RCOMP], srcColor0[srcCol1][RCOMP], in resample_linear_row_float()
464 srcColor1[srcCol0][RCOMP], srcColor1[srcCol1][RCOMP]); in resample_linear_row_float()
475 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.h357 GLfloat eMaj_dr = (GLfloat) (vMax->color[RCOMP] - vMin->color[RCOMP]); in NAME()
358 GLfloat eBot_dr = (GLfloat) (vMid->color[RCOMP] - vMin->color[RCOMP]); in NAME()
641 rLeft = (GLint)(ChanToFixed(vLower->color[RCOMP]) in NAME()
666 rLeft = ChanToFixed(v2->color[RCOMP]); in NAME()
/external/mesa3d/src/mesa/main/
Dformat_pack.c101 *d = PACK_COLOR_8888(src[RCOMP], src[GCOMP], src[BCOMP], src[ACOMP]); in pack_ubyte_RGBA8888()
118 d[i] = PACK_COLOR_8888(src[i][RCOMP], src[i][GCOMP], in pack_row_ubyte_RGBA8888()
145 *d = PACK_COLOR_8888(src[ACOMP], src[BCOMP], src[GCOMP], src[RCOMP]); in pack_ubyte_RGBA8888_REV()
163 src[i][GCOMP], src[i][RCOMP]); in pack_row_ubyte_RGBA8888_REV()
188 *d = PACK_COLOR_8888(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]); in pack_ubyte_ARGB8888()
205 d[i] = PACK_COLOR_8888(src[i][ACOMP], src[i][RCOMP], in pack_row_ubyte_ARGB8888()
231 *d = PACK_COLOR_8888(src[BCOMP], src[GCOMP], src[RCOMP], src[ACOMP]); in pack_ubyte_ARGB8888_REV()
249 src[i][RCOMP], src[i][ACOMP]); 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 …]
Dpack.c560 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) << 5) in _mesa_pack_rgba_span_from_uints()
572 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) ) in _mesa_pack_rgba_span_from_uints()
584 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_uints()
596 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) ) in _mesa_pack_rgba_span_from_uints()
608 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 15) << 12) in _mesa_pack_rgba_span_from_uints()
619 | (CLAMP(rgba[i][RCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
629 | (CLAMP(rgba[i][RCOMP], 0, 15) ); in _mesa_pack_rgba_span_from_uints()
639 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 15) ) in _mesa_pack_rgba_span_from_uints()
650 | (CLAMP(rgba[i][RCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
660 | (CLAMP(rgba[i][RCOMP], 0, 15) << 12); in _mesa_pack_rgba_span_from_uints()
[all …]
Dpack_tmp.h36 dst[i] = SRC_CONVERT(rgba[i][RCOMP]); in FN_NAME()
60 dst[i*2+0] = SRC_CONVERT(rgba[i][RCOMP]); in FN_NAME()
67 dst[i*3+0] = SRC_CONVERT(rgba[i][RCOMP]); in FN_NAME()
75 dst[i*4+0] = SRC_CONVERT(rgba[i][RCOMP]); in FN_NAME()
86 dst[i*3+2] = SRC_CONVERT(rgba[i][RCOMP]); in FN_NAME()
94 dst[i*4+2] = SRC_CONVERT(rgba[i][RCOMP]); in FN_NAME()
101 dst[i] = SRC_CONVERT(rgba[i][RCOMP] + in FN_NAME()
109 dst[i*2+0] = SRC_CONVERT(rgba[i][RCOMP] + in FN_NAME()
Dformat_unpack.c96 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_RGBA8888()
109 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_RGBA8888_REV()
122 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_ARGB8888()
135 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_ARGB8888_REV()
148 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_RGBX8888()
161 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_RGBX8888_REV()
174 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_XRGB8888()
187 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_XRGB8888_REV()
200 dst[i][RCOMP] = UBYTE_TO_FLOAT( s[i*3+2] ); in unpack_RGB888()
213 dst[i][RCOMP] = UBYTE_TO_FLOAT( s[i*3+0] ); in unpack_BGR888()
[all …]
Dtexcompress_s3tc.c392 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_rgb_dxt1()
421 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_rgba_dxt1()
450 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_rgba_dxt3()
479 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_rgba_dxt5()
493 texel[RCOMP] = nonlinear_to_linear(rgba[RCOMP]); in _mesa_fetch_texel_srgb_dxt1()
506 texel[RCOMP] = nonlinear_to_linear(rgba[RCOMP]); in _mesa_fetch_texel_srgba_dxt1()
519 texel[RCOMP] = nonlinear_to_linear(rgba[RCOMP]); in _mesa_fetch_texel_srgba_dxt3()
532 texel[RCOMP] = nonlinear_to_linear(rgba[RCOMP]); in _mesa_fetch_texel_srgba_dxt5()
Dtexcompress_fxt1.c167 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_2d_f_rgba_fxt1()
182 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_2d_f_rgb_fxt1()
1417 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI()
1434 rgba[RCOMP] = r; in fxt1_decode_1HI()
1460 rgba[RCOMP] = UP5(kk >> 10); in fxt1_decode_1CHROMA()
1479 col[0][RCOMP] = CC_SEL(cc, 104); in fxt1_decode_1MIXED()
1483 col[1][RCOMP] = CC_SEL(cc, 119); in fxt1_decode_1MIXED()
1491 col[0][RCOMP] = CC_SEL(cc, 74); in fxt1_decode_1MIXED()
1495 col[1][RCOMP] = CC_SEL(cc, 89); in fxt1_decode_1MIXED()
1505 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED()
[all …]
Dpixeltransfer.c52 rgba[i][RCOMP] = rgba[i][RCOMP] * rScale + rBias; in _mesa_scale_and_bias_rgba()
92 GLfloat r = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in _mesa_map_rgba()
96 rgba[i][RCOMP] = rMap[F_TO_I(r * rscale)]; in _mesa_map_rgba()
120 rgba[i][RCOMP] = rMap[index[i] & rmask]; in _mesa_map_ci_to_rgba()
182 rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
Dtexcompress_rgtc.c303 texel[RCOMP] = UBYTE_TO_FLOAT(red); in _mesa_fetch_texel_red_rgtc1()
318 texel[RCOMP] = BYTE_TO_FLOAT_TEX(red); in _mesa_fetch_texel_signed_red_rgtc1()
336 texel[RCOMP] = UBYTE_TO_FLOAT(red); in _mesa_fetch_texel_rg_rgtc2()
354 texel[RCOMP] = BYTE_TO_FLOAT_TEX(red); in _mesa_fetch_texel_signed_rg_rgtc2()
369 texel[RCOMP] = in _mesa_fetch_texel_l_latc1()
384 texel[RCOMP] = in _mesa_fetch_texel_signed_l_latc1()
402 texel[RCOMP] = in _mesa_fetch_texel_la_latc2()
420 texel[RCOMP] = in _mesa_fetch_texel_signed_la_latc2()
Dimage.c481 dst2[i][RCOMP] = UBYTE_TO_USHORT(src1[i][RCOMP]); in _mesa_convert_colors()
497 dst4[i][RCOMP] = UBYTE_TO_FLOAT(src1[i][RCOMP]); in _mesa_convert_colors()
514 dst1[i][RCOMP] = USHORT_TO_UBYTE(src2[i][RCOMP]); in _mesa_convert_colors()
530 dst4[i][RCOMP] = USHORT_TO_FLOAT(src2[i][RCOMP]); in _mesa_convert_colors()
559 UNCLAMPED_FLOAT_TO_USHORT(dst2[i][RCOMP], src4[i][RCOMP]); in _mesa_convert_colors()
Daccum.c302 acc[i * 4 + 0] = (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load()
311 acc[i * 4 + 0] += (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load()
362 const GLboolean masking = (!ctx->Color.ColorMask[buffer][RCOMP] || in accum_return()
404 if (ctx->Color.ColorMask[buffer][RCOMP] == 0) { in accum_return()
406 rgba[i][RCOMP] = dest[i][RCOMP]; in accum_return()
Dtexcompress_etc.c67 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in _mesa_fetch_texel_2d_f_etc1_rgb8()
Dconfig.h277 #define RCOMP 0 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()
75 FLOAT_TO_UBYTE(c[RCOMP]), 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()
482 c.r=rgba[i][RCOMP]; in write_rgba_span_front()
494 c.r=rgba[i][RCOMP]; in write_rgba_span_front()
529 RGB(rgba[i][RCOMP], rgba[i][GCOMP], in write_rgba_pixels_front()
548 rgba[i][RCOMP] = GetRValue(Color); in read_rgba_span_front()
569 rgba[i][RCOMP] = GetRValue(Color); in read_rgba_pixels_front()
605 lpdw[i] = BGR32(rgba[i][RCOMP], rgba[i][GCOMP], in write_rgba_span_32()
610 *lpdw++ = BGR32(rgba[i][RCOMP], rgba[i][GCOMP], 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.c241 ctx->Color.ColorMask[i][RCOMP], in _mesa_init_driver_state()
249 ctx->Color.ColorMask[0][RCOMP], in _mesa_init_driver_state()

12