/external/mesa3d/src/mesa/swrast/ |
D | s_texcombine.c | 122 rgba[i][GCOMP] = CHAN_TO_FLOAT(rgbaChan[i][GCOMP]); in texture_combine() 209 dst[i][GCOMP] = 1.0F - src[i][GCOMP]; in texture_combine() 216 dst[i][GCOMP] = in texture_combine() 223 dst[i][GCOMP] = in texture_combine() 309 rgba[i][GCOMP] = arg0[i][GCOMP] * scaleRGB; in texture_combine() 316 rgba[i][GCOMP] = arg0[i][GCOMP] * arg1[i][GCOMP] * scaleRGB; in texture_combine() 326 rgba[i][GCOMP] = (arg0[i][GCOMP] * arg1[i][GCOMP] + in texture_combine() 327 arg2[i][GCOMP] * arg3[i][GCOMP]) * scaleRGB; in texture_combine() 336 rgba[i][GCOMP] = (arg0[i][GCOMP] + arg1[i][GCOMP]) * scaleRGB; in texture_combine() 347 rgba[i][GCOMP] = (arg0[i][GCOMP] * arg1[i][GCOMP] + in texture_combine() [all …]
|
D | s_blend.c | 145 const GLint g = DIV255((rgba[i][GCOMP] - dest[i][GCOMP]) * t) + dest[i][GCOMP]; in blend_transparency_ubyte() 153 rgba[i][GCOMP] = (GLubyte) g; in blend_transparency_ubyte() 190 GLushort g = (GLushort) ((rgba[i][GCOMP] - dest[i][GCOMP]) * tt + dest[i][GCOMP]); in blend_transparency_ushort() 227 GLfloat g = (rgba[i][GCOMP] - dest[i][GCOMP]) * t + dest[i][GCOMP]; in blend_transparency_float() 260 GLint g = rgba[i][GCOMP] + dest[i][GCOMP]; in blend_add() 264 rgba[i][GCOMP] = (GLubyte) MIN2( g, 255 ); in blend_add() 276 GLint g = rgba[i][GCOMP] + dest[i][GCOMP]; in blend_add() 280 rgba[i][GCOMP] = (GLshort) MIN2( g, 255 ); in blend_add() 294 rgba[i][GCOMP] += dest[i][GCOMP]; in blend_add() 323 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_min() [all …]
|
D | s_masking.c | 73 const GLushort gMask = ctx->Color.ColorMask[buf][GCOMP] ? 0xffff : 0x0; in _swrast_mask_rgba_span() 81 src[i][GCOMP] = (src[i][GCOMP] & gMask) | (dst[i][GCOMP] & ~gMask); in _swrast_mask_rgba_span() 89 const GLuint gMask = ctx->Color.ColorMask[buf][GCOMP] ? ~0x0 : 0x0; in _swrast_mask_rgba_span() 97 src[i][GCOMP] = (src[i][GCOMP] & gMask) | (dst[i][GCOMP] & ~gMask); in _swrast_mask_rgba_span()
|
D | s_fog.c | 100 rgba[i][GCOMP] = (TYPE) (f * rgba[i][GCOMP] + oneMinusF * gFog); \ 117 rgba[i][GCOMP] = (TYPE) (f * rgba[i][GCOMP] + oneMinusF * gFog); \ 143 gFog = ctx->Fog.Color[GCOMP] * 255.0F; in _swrast_fog_rgba_span() 148 gFog = ctx->Fog.Color[GCOMP] * 65535.0F; in _swrast_fog_rgba_span() 153 gFog = ctx->Fog.Color[GCOMP]; in _swrast_fog_rgba_span()
|
D | s_triangle.c | 155 rgba[i][GCOMP] = texture[pos+1]; \ 216 rgba[i][GCOMP] = texture[pos+1]; \ 284 sample[GCOMP] = tex00[1]; \ in affine_span() 290 sample[GCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\ in affine_span() 296 sample[GCOMP] = tex00[2]; \ in affine_span() 302 sample[GCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\ in affine_span() 308 dest[GCOMP] = span->green * (sample[GCOMP] + 1u) >> (FIXED_SHIFT + 8); \ in affine_span() 316 dest[GCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->green + \ in affine_span() 317 ((sample[ACOMP] + 1) * sample[GCOMP] << FIXED_SHIFT)) \ in affine_span() 327 dest[GCOMP] = ((CHAN_MAX - sample[GCOMP]) * span->green \ in affine_span() [all …]
|
D | s_blit.c | 433 srcColor0[srcCol0][GCOMP], srcColor0[srcCol1][GCOMP], in resample_linear_row_ub() 434 srcColor1[srcCol0][GCOMP], srcColor1[srcCol1][GCOMP]); in resample_linear_row_ub() 443 dstColor[dstCol][GCOMP] = IFLOOR(green); in resample_linear_row_ub() 488 srcColor0[srcCol0][GCOMP], srcColor0[srcCol1][GCOMP], in resample_linear_row_float() 489 srcColor1[srcCol0][GCOMP], srcColor1[srcCol1][GCOMP]); in resample_linear_row_float() 498 dstColor[dstCol][GCOMP] = green; in resample_linear_row_float()
|
D | s_aatritemp.h | 124 compute_plane(p0, p1, p2, v0->color[GCOMP], v1->color[GCOMP], v2->color[GCOMP], gPlane); 130 constant_plane(v2->color[GCOMP], gPlane); 230 array->rgba[count][GCOMP] = solve_plane_chan(cx, cy, gPlane); 293 array->rgba[ix][GCOMP] = solve_plane_chan(cx, cy, gPlane);
|
D | s_aalinetemp.h | 63 line->span.array->rgba[i][GCOMP] = solve_plane_chan(fx, fy, line->gPlane); in NAME() 145 v0->color[GCOMP], v1->color[GCOMP], line.gPlane); in NAME() 153 constant_plane(v1->color[GCOMP], line.gPlane); in NAME()
|
D | s_tritemp.h | 364 GLfloat eMaj_dg = (GLfloat) (vMax->color[GCOMP] - vMin->color[GCOMP]); in NAME() 365 GLfloat eBot_dg = (GLfloat) (vMid->color[GCOMP] - vMin->color[GCOMP]); in NAME() 649 gLeft = (GLint)(ChanToFixed(vLower->color[GCOMP]) in NAME() 672 gLeft = ChanToFixed(v2->color[GCOMP]); in NAME()
|
D | s_span.c | 237 color[GCOMP] = FixedToInt(span->green); in interpolate_int_colors() 255 rgba[i][GCOMP] = FixedToChan(g); in interpolate_int_colors() 272 color[GCOMP] = FixedToInt(span->green); in interpolate_int_colors() 293 rgba[i][GCOMP] = FixedToChan(g); in interpolate_int_colors() 922 rgba[i][GCOMP] = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); in clamp_colors()
|
/external/mesa3d/src/mesa/main/ |
D | texcompress_s3tc.c | 369 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgb_dxt1() 386 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt1() 403 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt3() 420 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt5() 438 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgb_dxt1() 455 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgba_dxt1() 472 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgba_dxt3() 489 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgba_dxt5()
|
D | texcompress_fxt1.c | 983 FX64_MOV32(hi, 9 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */ in fxt1_quantize_MIXED1() 1108 if ((GLint)((lolo >> 1) & 1) != (((vec[1][GCOMP] ^ vec[0][GCOMP]) >> 2) & 1)) { in fxt1_quantize_MIXED0() 1141 if ((GLint)((lohi >> 1) & 1) != (((vec[3][GCOMP] ^ vec[2][GCOMP]) >> 2) & 1)) { in fxt1_quantize_MIXED0() 1152 FX64_MOV32(hi, 8 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */ in fxt1_quantize_MIXED0() 1387 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI() 1405 rgba[GCOMP] = g; in fxt1_decode_1HI() 1429 rgba[GCOMP] = UP5(kk >> 5); in fxt1_decode_1CHROMA() 1448 col[0][GCOMP] = CC_SEL(cc, 99); in fxt1_decode_1MIXED() 1452 col[1][GCOMP] = CC_SEL(cc, 114); in fxt1_decode_1MIXED() 1460 col[0][GCOMP] = CC_SEL(cc, 69); in fxt1_decode_1MIXED() [all …]
|
D | pixeltransfer.c | 60 rgba[i][GCOMP] = rgba[i][GCOMP] * gScale + gBias; in _mesa_scale_and_bias_rgba() 95 GLfloat g = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); in _mesa_map_rgba() 99 rgba[i][GCOMP] = gMap[(int)_mesa_lroundevenf(g * gscale)]; in _mesa_map_rgba() 123 rgba[i][GCOMP] = gMap[index[i] & gmask]; in _mesa_map_ci_to_rgba() 185 rgba[i][GCOMP] = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
|
D | texcompress_rgtc.c | 321 texel[GCOMP] = 0.0; in fetch_red_rgtc1() 333 texel[GCOMP] = in fetch_l_latc1() 346 texel[GCOMP] = 0.0; in fetch_signed_red_rgtc1() 359 texel[GCOMP] = in fetch_signed_l_latc1() 376 texel[GCOMP] = UBYTE_TO_FLOAT(green); in fetch_rg_rgtc2() 393 texel[GCOMP] = in fetch_la_latc2() 411 texel[GCOMP] = BYTE_TO_FLOAT_TEX(green); in fetch_signed_rg_rgtc2() 429 texel[GCOMP] = in fetch_signed_la_latc2()
|
D | accum.c | 290 acc[i * 4 + 1] = (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load() 299 acc[i * 4 + 1] += (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load() 350 !ctx->Color.ColorMask[buffer][GCOMP] || in accum_return() 395 if (ctx->Color.ColorMask[buffer][GCOMP] == 0) { in accum_return() 397 rgba[i][GCOMP] = dest[i][GCOMP]; in accum_return()
|
D | image.c | 496 dst2[i][GCOMP] = UBYTE_TO_USHORT(src1[i][GCOMP]); in _mesa_convert_colors() 512 dst4[i][GCOMP] = UBYTE_TO_FLOAT(src1[i][GCOMP]); in _mesa_convert_colors() 529 dst1[i][GCOMP] = USHORT_TO_UBYTE(src2[i][GCOMP]); in _mesa_convert_colors() 545 dst4[i][GCOMP] = USHORT_TO_FLOAT(src2[i][GCOMP]); in _mesa_convert_colors() 574 UNCLAMPED_FLOAT_TO_USHORT(dst2[i][GCOMP], src4[i][GCOMP]); in _mesa_convert_colors()
|
D | texcompress_etc.c | 1269 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc1_rgb8() 1291 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc2_rgb8() 1312 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(dst[1]); in fetch_etc2_srgb8() 1331 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc2_rgba8_eac() 1350 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(dst[1]); in fetch_etc2_srgb8_alpha8_eac() 1369 texel[GCOMP] = 0.0f; in fetch_etc2_r11_eac() 1393 texel[GCOMP] = USHORT_TO_FLOAT(dst[1]); in fetch_etc2_rg11_eac() 1412 texel[GCOMP] = 0.0f; in fetch_etc2_signed_r11_eac() 1436 texel[GCOMP] = SHORT_TO_FLOAT(dst[1]); in fetch_etc2_signed_rg11_eac() 1457 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc2_rgb8_punchthrough_alpha1() [all …]
|
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() 1491 (uint64_t) rgba[i][GCOMP] + in _mesa_pack_luminance_from_rgba_integer() 1495 (int64_t) ((int32_t) rgba[i][GCOMP]) + in _mesa_pack_luminance_from_rgba_integer() 1526 (uint64_t) rgba[i][GCOMP] + in _mesa_pack_luminance_from_rgba_integer() 1530 (int64_t) ((int32_t) rgba[i][GCOMP]) + in _mesa_pack_luminance_from_rgba_integer()
|
D | config.h | 305 #define GCOMP 1 macro
|
D | blend.c | 804 tmp[GCOMP] = green ? 0xff : 0x0; in _mesa_ColorMask() 847 tmp[GCOMP] = green ? 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() 76 FLOAT_TO_UBYTE(c[GCOMP]), in pack_rgba_f()
|
D | nv04_state_raster.c | 167 if (ctx->Color.ColorMask[0][GCOMP]) in nv04_emit_control()
|
D | nv04_context.c | 61 ctx->Color.ColorMask[0][GCOMP] && in nv04_context_engine()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_line.c | 206 pixelPtr->g = color[GCOMP]; \ 355 pixelPtr->g = color[GCOMP]; \
|
D | xm_tri.c | 445 ptr->g = color[GCOMP]; \ 529 color[GCOMP], color[BCOMP]); \ 830 pixel->g = color[GCOMP]; \ 894 color[GCOMP], color[BCOMP]); \
|