/external/mesa3d/src/mesa/swrast/ |
D | s_texcombine.c | 121 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 …]
|
D | s_blend.c | 144 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 …]
|
D | s_masking.c | 72 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()
|
D | s_fog.c | 99 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()
|
D | s_triangle.c | 154 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 …]
|
D | s_blit.c | 430 srcColor0[srcCol0][RCOMP], srcColor0[srcCol1][RCOMP], in resample_linear_row_ub() 431 srcColor1[srcCol0][RCOMP], srcColor1[srcCol1][RCOMP]); in resample_linear_row_ub() 442 dstColor[dstCol][RCOMP] = IFLOOR(red); in resample_linear_row_ub() 485 srcColor0[srcCol0][RCOMP], srcColor0[srcCol1][RCOMP], in resample_linear_row_float() 486 srcColor1[srcCol0][RCOMP], srcColor1[srcCol1][RCOMP]); in resample_linear_row_float() 497 dstColor[dstCol][RCOMP] = red; in resample_linear_row_float()
|
D | s_aatritemp.h | 123 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);
|
D | s_aalinetemp.h | 62 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()
|
D | s_tritemp.h | 362 GLfloat eMaj_dr = (GLfloat) (vMax->color[RCOMP] - vMin->color[RCOMP]); in NAME() 363 GLfloat eBot_dr = (GLfloat) (vMid->color[RCOMP] - vMin->color[RCOMP]); in NAME() 646 rLeft = (GLint)(ChanToFixed(vLower->color[RCOMP]) in NAME() 671 rLeft = ChanToFixed(v2->color[RCOMP]); in NAME()
|
D | s_span.c | 236 color[RCOMP] = FixedToInt(span->red); in interpolate_int_colors() 254 rgba[i][RCOMP] = FixedToChan(r); in interpolate_int_colors() 271 color[RCOMP] = FixedToInt(span->red); in interpolate_int_colors() 292 rgba[i][RCOMP] = FixedToChan(r); in interpolate_int_colors() 921 rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in clamp_colors()
|
/external/mesa3d/src/mesa/main/ |
D | texcompress_s3tc.c | 368 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgb_dxt1() 385 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt1() 402 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt3() 419 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt5() 437 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgb_dxt1() 454 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgba_dxt1() 471 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgba_dxt3() 488 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgba_dxt5()
|
D | texcompress_fxt1.c | 1387 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI() 1404 rgba[RCOMP] = r; in fxt1_decode_1HI() 1430 rgba[RCOMP] = UP5(kk >> 10); in fxt1_decode_1CHROMA() 1449 col[0][RCOMP] = CC_SEL(cc, 104); in fxt1_decode_1MIXED() 1453 col[1][RCOMP] = CC_SEL(cc, 119); in fxt1_decode_1MIXED() 1461 col[0][RCOMP] = CC_SEL(cc, 74); in fxt1_decode_1MIXED() 1465 col[1][RCOMP] = CC_SEL(cc, 89); in fxt1_decode_1MIXED() 1475 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED() 1481 r = UP5(col[0][RCOMP]); in fxt1_decode_1MIXED() 1485 r = UP5(col[1][RCOMP]); in fxt1_decode_1MIXED() [all …]
|
D | pixeltransfer.c | 54 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()
|
D | texcompress_rgtc.c | 320 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()
|
D | accum.c | 289 acc[i * 4 + 0] = (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load() 298 acc[i * 4 + 0] += (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load() 349 const GLboolean masking = (!ctx->Color.ColorMask[buffer][RCOMP] || in accum_return() 391 if (ctx->Color.ColorMask[buffer][RCOMP] == 0) { in accum_return() 393 rgba[i][RCOMP] = dest[i][RCOMP]; in accum_return()
|
D | image.c | 495 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()
|
D | texcompress_etc.c | 1268 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc1_rgb8() 1290 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgb8() 1311 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(dst[0]); in fetch_etc2_srgb8() 1330 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgba8_eac() 1349 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(dst[0]); in fetch_etc2_srgb8_alpha8_eac() 1368 texel[RCOMP] = USHORT_TO_FLOAT(dst); in fetch_etc2_r11_eac() 1392 texel[RCOMP] = USHORT_TO_FLOAT(dst[0]); in fetch_etc2_rg11_eac() 1411 texel[RCOMP] = SHORT_TO_FLOAT(dst); in fetch_etc2_signed_r11_eac() 1435 texel[RCOMP] = SHORT_TO_FLOAT(dst[0]); in fetch_etc2_signed_rg11_eac() 1456 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgb8_punchthrough_alpha1() [all …]
|
D | config.h | 304 #define RCOMP 0 macro
|
D | pack.c | 1361 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() 1490 lum64 = (uint64_t) rgba[i][RCOMP] + in _mesa_pack_luminance_from_rgba_integer() 1494 lum64 = (int64_t) ((int32_t) rgba[i][RCOMP]) + in _mesa_pack_luminance_from_rgba_integer() 1525 lum64 = (uint64_t) rgba[i][RCOMP] + in _mesa_pack_luminance_from_rgba_integer() 1529 lum64 = (int64_t) ((int32_t) rgba[i][RCOMP]) + in _mesa_pack_luminance_from_rgba_integer()
|
D | blend.c | 803 tmp[RCOMP] = red ? 0xff : 0x0; in _mesa_ColorMask() 846 tmp[RCOMP] = red ? 0xff : 0x0; in _mesa_ColorMaski()
|
/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() 75 FLOAT_TO_UBYTE(c[RCOMP]), in pack_rgba_f()
|
D | nv04_state_raster.c | 165 if (ctx->Color.ColorMask[0][RCOMP]) in nv04_emit_control()
|
D | nv04_context.c | 60 !(ctx->Color.ColorMask[0][RCOMP] && in nv04_context_engine()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_line.c | 205 pixelPtr->r = color[RCOMP]; \ 354 pixelPtr->r = color[RCOMP]; \
|
D | xm_tri.c | 444 ptr->r = color[RCOMP]; \ 528 PACK_TRUEDITHER(pRow[i], x, y, color[RCOMP], \ 829 pixel->r = color[RCOMP]; \ 893 PACK_TRUEDITHER(pRow[i], x, y, color[RCOMP], \
|