Home
last modified time | relevance | path

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

12

/external/mesa3d/src/mesa/swrast/
Ds_texcombine.c123 rgba[i][GCOMP] = CHAN_TO_FLOAT(rgbaChan[i][GCOMP]); in texture_combine()
210 dst[i][GCOMP] = 1.0F - src[i][GCOMP]; in texture_combine()
217 dst[i][GCOMP] = in texture_combine()
224 dst[i][GCOMP] = in texture_combine()
310 rgba[i][GCOMP] = arg0[i][GCOMP] * scaleRGB; in texture_combine()
317 rgba[i][GCOMP] = arg0[i][GCOMP] * arg1[i][GCOMP] * scaleRGB; in texture_combine()
327 rgba[i][GCOMP] = (arg0[i][GCOMP] * arg1[i][GCOMP] + in texture_combine()
328 arg2[i][GCOMP] * arg3[i][GCOMP]) * scaleRGB; in texture_combine()
337 rgba[i][GCOMP] = (arg0[i][GCOMP] + arg1[i][GCOMP]) * scaleRGB; in texture_combine()
348 rgba[i][GCOMP] = (arg0[i][GCOMP] * arg1[i][GCOMP] + in texture_combine()
[all …]
Ds_blend.c145 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 …]
Ds_masking.c87 src[i][GCOMP] = (src[i][GCOMP] & gMask) | (dst[i][GCOMP] & ~gMask); in _swrast_mask_rgba_span()
103 src[i][GCOMP] = (src[i][GCOMP] & gMask) | (dst[i][GCOMP] & ~gMask); in _swrast_mask_rgba_span()
Ds_fog.c101 rgba[i][GCOMP] = (TYPE) (f * rgba[i][GCOMP] + oneMinusF * gFog); \
118 rgba[i][GCOMP] = (TYPE) (f * rgba[i][GCOMP] + oneMinusF * gFog); \
144 gFog = ctx->Fog.Color[GCOMP] * 255.0F; in _swrast_fog_rgba_span()
149 gFog = ctx->Fog.Color[GCOMP] * 65535.0F; in _swrast_fog_rgba_span()
154 gFog = ctx->Fog.Color[GCOMP]; in _swrast_fog_rgba_span()
Ds_triangle.c156 rgba[i][GCOMP] = texture[pos+1]; \
217 rgba[i][GCOMP] = texture[pos+1]; \
285 sample[GCOMP] = tex00[1]; \ in affine_span()
291 sample[GCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\ in affine_span()
297 sample[GCOMP] = tex00[2]; \ in affine_span()
303 sample[GCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\ in affine_span()
309 dest[GCOMP] = span->green * (sample[GCOMP] + 1u) >> (FIXED_SHIFT + 8); \ in affine_span()
317 dest[GCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->green + \ in affine_span()
318 ((sample[ACOMP] + 1) * sample[GCOMP] << FIXED_SHIFT)) \ in affine_span()
328 dest[GCOMP] = ((CHAN_MAX - sample[GCOMP]) * span->green \ in affine_span()
[all …]
Ds_blit.c435 srcColor0[srcCol0][GCOMP], srcColor0[srcCol1][GCOMP], in resample_linear_row_ub()
436 srcColor1[srcCol0][GCOMP], srcColor1[srcCol1][GCOMP]); in resample_linear_row_ub()
445 dstColor[dstCol][GCOMP] = util_ifloor(green); in resample_linear_row_ub()
490 srcColor0[srcCol0][GCOMP], srcColor0[srcCol1][GCOMP], in resample_linear_row_float()
491 srcColor1[srcCol0][GCOMP], srcColor1[srcCol1][GCOMP]); in resample_linear_row_float()
500 dstColor[dstCol][GCOMP] = green; in resample_linear_row_float()
Ds_aatritemp.h124 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);
Ds_aalinetemp.h63 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()
Ds_tritemp.h365 GLfloat eMaj_dg = (GLfloat) (vMax->color[GCOMP] - vMin->color[GCOMP]); in NAME()
366 GLfloat eBot_dg = (GLfloat) (vMid->color[GCOMP] - vMin->color[GCOMP]); in NAME()
650 gLeft = (GLint)(ChanToFixed(vLower->color[GCOMP]) in NAME()
673 gLeft = ChanToFixed(v2->color[GCOMP]); in NAME()
Ds_span.c240 color[GCOMP] = FixedToInt(span->green); in interpolate_int_colors()
258 rgba[i][GCOMP] = FixedToChan(g); in interpolate_int_colors()
275 color[GCOMP] = FixedToInt(span->green); in interpolate_int_colors()
296 rgba[i][GCOMP] = FixedToChan(g); in interpolate_int_colors()
925 rgba[i][GCOMP] = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); in clamp_colors()
Ds_texfetch.c97 texel[GCOMP] = 0.0; in fetch_null_texelf()
/external/mesa3d/src/mesa/main/
Dtexcompress_s3tc.c270 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgb_dxt1()
282 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt1()
294 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt3()
306 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt5()
319 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgb_dxt1()
331 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgba_dxt1()
343 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgba_dxt3()
355 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgba_dxt5()
Dtexcompress_fxt1.c988 FX64_MOV32(hi, 9 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */ in fxt1_quantize_MIXED1()
1113 if ((GLint)((lolo >> 1) & 1) != (((vec[1][GCOMP] ^ vec[0][GCOMP]) >> 2) & 1)) { in fxt1_quantize_MIXED0()
1146 if ((GLint)((lohi >> 1) & 1) != (((vec[3][GCOMP] ^ vec[2][GCOMP]) >> 2) & 1)) { in fxt1_quantize_MIXED0()
1157 FX64_MOV32(hi, 8 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */ in fxt1_quantize_MIXED0()
1392 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI()
1410 rgba[GCOMP] = g; in fxt1_decode_1HI()
1434 rgba[GCOMP] = UP5(kk >> 5); in fxt1_decode_1CHROMA()
1453 col[0][GCOMP] = CC_SEL(cc, 99); in fxt1_decode_1MIXED()
1457 col[1][GCOMP] = CC_SEL(cc, 114); in fxt1_decode_1MIXED()
1465 col[0][GCOMP] = CC_SEL(cc, 69); in fxt1_decode_1MIXED()
[all …]
Dpixeltransfer.c60 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()
Dtexcompress_rgtc.c321 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()
Dimage.c496 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()
Dtexcompress_etc.c1284 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc1_rgb8()
1306 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc2_rgb8()
1327 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(dst[1]); in fetch_etc2_srgb8()
1346 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc2_rgba8_eac()
1365 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(dst[1]); in fetch_etc2_srgb8_alpha8_eac()
1384 texel[GCOMP] = 0.0f; in fetch_etc2_r11_eac()
1408 texel[GCOMP] = USHORT_TO_FLOAT(dst[1]); in fetch_etc2_rg11_eac()
1427 texel[GCOMP] = 0.0f; in fetch_etc2_signed_r11_eac()
1451 texel[GCOMP] = SHORT_TO_FLOAT(dst[1]); in fetch_etc2_signed_rg11_eac()
1472 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc2_rgb8_punchthrough_alpha1()
[all …]
Daccum.c245 acc[i * 4 + 1] = (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load()
254 acc[i * 4 + 1] += (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load()
353 rgba[i][GCOMP] = dest[i][GCOMP]; in accum_return()
Dtexcompress_bptc.c88 texel[GCOMP] = UBYTE_TO_FLOAT(texel_bytes[1]); in fetch_bptc_rgba_unorm()
103 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(texel_bytes[1]); in fetch_bptc_srgb_alpha_unorm()
Dtexcompress_s3tc_tmp.h38 #define GCOMP 1 macro
71 rgba[GCOMP] = UBYTE_TO_CHAN( EXP6TO8G(color0) ); in dxt135_decode_imageblock()
76 rgba[GCOMP] = UBYTE_TO_CHAN( EXP6TO8G(color1) ); in dxt135_decode_imageblock()
82 rgba[GCOMP] = UBYTE_TO_CHAN( ((EXP6TO8G(color0) * 2 + EXP6TO8G(color1)) / 3) ); in dxt135_decode_imageblock()
87 rgba[GCOMP] = UBYTE_TO_CHAN( ((EXP6TO8G(color0) + EXP6TO8G(color1)) / 2) ); in dxt135_decode_imageblock()
94 rgba[GCOMP] = UBYTE_TO_CHAN( ((EXP6TO8G(color0) + EXP6TO8G(color1) * 2) / 3) ); in dxt135_decode_imageblock()
99 rgba[GCOMP] = 0; in dxt135_decode_imageblock()
Dconfig.h300 #define GCOMP 1 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()
1475 (uint64_t) rgba[i][GCOMP] + in _mesa_pack_luminance_from_rgba_integer()
1479 (int64_t) ((int32_t) rgba[i][GCOMP]) + in _mesa_pack_luminance_from_rgba_integer()
1510 (uint64_t) rgba[i][GCOMP] + in _mesa_pack_luminance_from_rgba_integer()
1514 (int64_t) ((int32_t) rgba[i][GCOMP]) + 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()
76 FLOAT_TO_UBYTE(c[GCOMP]), in pack_rgba_f()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_line.c206 pixelPtr->g = color[GCOMP]; \
355 pixelPtr->g = color[GCOMP]; \
Dxm_tri.c444 ptr->g = color[GCOMP]; \
528 color[GCOMP], color[BCOMP]); \
829 pixel->g = color[GCOMP]; \
893 color[GCOMP], color[BCOMP]); \

12