Home
last modified time | relevance | path

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

12

/external/mesa3d/src/mesa/swrast/
Ds_texcombine.c122 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 …]
Ds_texfetch_tmp.h109 texel[GCOMP] = src[1]; in FETCH()
127 texel[GCOMP] = _mesa_half_to_float(src[1]); in FETCH()
144 texel[GCOMP] = src[1]; in FETCH()
162 texel[GCOMP] = _mesa_half_to_float(src[1]); in FETCH()
180 texel[GCOMP] = in FETCH()
198 texel[GCOMP] = in FETCH()
216 texel[GCOMP] = in FETCH()
234 texel[GCOMP] = in FETCH()
252 texel[GCOMP] = in FETCH()
270 texel[GCOMP] = in FETCH()
[all …]
Ds_blend.c148 const GLint g = DIV255((rgba[i][GCOMP] - dest[i][GCOMP]) * t) + dest[i][GCOMP]; in blend_transparency_ubyte()
156 rgba[i][GCOMP] = (GLubyte) g; in blend_transparency_ubyte()
193 GLushort g = (GLushort) ((rgba[i][GCOMP] - dest[i][GCOMP]) * tt + dest[i][GCOMP]); in blend_transparency_ushort()
230 GLfloat g = (rgba[i][GCOMP] - dest[i][GCOMP]) * t + dest[i][GCOMP]; in blend_transparency_float()
263 GLint g = rgba[i][GCOMP] + dest[i][GCOMP]; in blend_add()
267 rgba[i][GCOMP] = (GLubyte) MIN2( g, 255 ); in blend_add()
279 GLint g = rgba[i][GCOMP] + dest[i][GCOMP]; in blend_add()
283 rgba[i][GCOMP] = (GLshort) MIN2( g, 255 ); in blend_add()
297 rgba[i][GCOMP] += dest[i][GCOMP]; in blend_add()
326 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_min()
[all …]
Ds_masking.c73 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()
Ds_fog.c100 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()
Ds_triangle.c155 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 …]
Ds_blit.c409 srcColor0[srcCol0][GCOMP], srcColor0[srcCol1][GCOMP], in resample_linear_row_ub()
410 srcColor1[srcCol0][GCOMP], srcColor1[srcCol1][GCOMP]); in resample_linear_row_ub()
419 dstColor[dstCol][GCOMP] = IFLOOR(green); in resample_linear_row_ub()
466 srcColor0[srcCol0][GCOMP], srcColor0[srcCol1][GCOMP], in resample_linear_row_float()
467 srcColor1[srcCol0][GCOMP], srcColor1[srcCol1][GCOMP]); in resample_linear_row_float()
476 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.h359 GLfloat eMaj_dg = (GLfloat) (vMax->color[GCOMP] - vMin->color[GCOMP]); in NAME()
360 GLfloat eBot_dg = (GLfloat) (vMid->color[GCOMP] - vMin->color[GCOMP]); in NAME()
644 gLeft = (GLint)(ChanToFixed(vLower->color[GCOMP]) in NAME()
667 gLeft = ChanToFixed(v2->color[GCOMP]); in NAME()
/external/mesa3d/src/mesa/main/
Dpack.c561 | (CLAMP(rgba[i][GCOMP], 0, 7) << 2) in _mesa_pack_rgba_span_from_uints()
573 | (CLAMP(rgba[i][GCOMP], 0, 7) << 3) in _mesa_pack_rgba_span_from_uints()
585 | (CLAMP(rgba[i][GCOMP], 0, 63) << 5) in _mesa_pack_rgba_span_from_uints()
597 | (CLAMP(rgba[i][GCOMP], 0, 63) << 5) in _mesa_pack_rgba_span_from_uints()
609 | (CLAMP(rgba[i][GCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
618 | (CLAMP(rgba[i][GCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
628 | (CLAMP(rgba[i][GCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
640 | (CLAMP(rgba[i][GCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
649 | (CLAMP(rgba[i][GCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
659 | (CLAMP(rgba[i][GCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
[all …]
Dpack_tmp.h42 dst[i] = SRC_CONVERT(rgba[i][GCOMP]); in FN_NAME()
61 dst[i*2+1] = SRC_CONVERT(rgba[i][GCOMP]); in FN_NAME()
68 dst[i*3+1] = SRC_CONVERT(rgba[i][GCOMP]); in FN_NAME()
76 dst[i*4+1] = SRC_CONVERT(rgba[i][GCOMP]); in FN_NAME()
85 dst[i*3+1] = SRC_CONVERT(rgba[i][GCOMP]); in FN_NAME()
93 dst[i*4+1] = SRC_CONVERT(rgba[i][GCOMP]); in FN_NAME()
102 rgba[i][GCOMP] + in FN_NAME()
110 rgba[i][GCOMP] + in FN_NAME()
Dformat_unpack.c97 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBA8888()
110 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBA8888_REV()
123 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_ARGB8888()
136 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_ARGB8888_REV()
149 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBX8888()
162 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBX8888_REV()
175 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_XRGB8888()
188 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_XRGB8888_REV()
201 dst[i][GCOMP] = UBYTE_TO_FLOAT( s[i*3+1] ); in unpack_RGB888()
214 dst[i][GCOMP] = UBYTE_TO_FLOAT( s[i*3+1] ); in unpack_BGR888()
[all …]
Dtexcompress_s3tc.c393 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_rgb_dxt1()
422 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_rgba_dxt1()
451 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_rgba_dxt3()
480 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_rgba_dxt5()
494 texel[GCOMP] = nonlinear_to_linear(rgba[GCOMP]); in _mesa_fetch_texel_srgb_dxt1()
507 texel[GCOMP] = nonlinear_to_linear(rgba[GCOMP]); in _mesa_fetch_texel_srgba_dxt1()
520 texel[GCOMP] = nonlinear_to_linear(rgba[GCOMP]); in _mesa_fetch_texel_srgba_dxt3()
533 texel[GCOMP] = nonlinear_to_linear(rgba[GCOMP]); in _mesa_fetch_texel_srgba_dxt5()
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()
206 src[i][GCOMP], src[i][BCOMP]); in pack_row_ubyte_ARGB8888()
231 *d = PACK_COLOR_8888(src[BCOMP], src[GCOMP], src[RCOMP], src[ACOMP]); in pack_ubyte_ARGB8888_REV()
248 d[i] = PACK_COLOR_8888(src[i][BCOMP], src[i][GCOMP], 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 …]
Dtexcompress_fxt1.c168 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_2d_f_rgba_fxt1()
183 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_2d_f_rgb_fxt1()
1011 FX64_MOV32(hi, 9 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */ in fxt1_quantize_MIXED1()
1136 if ((GLint)((lolo >> 1) & 1) != (((vec[1][GCOMP] ^ vec[0][GCOMP]) >> 2) & 1)) { in fxt1_quantize_MIXED0()
1169 if ((GLint)((lohi >> 1) & 1) != (((vec[3][GCOMP] ^ vec[2][GCOMP]) >> 2) & 1)) { in fxt1_quantize_MIXED0()
1180 FX64_MOV32(hi, 8 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */ in fxt1_quantize_MIXED0()
1417 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI()
1435 rgba[GCOMP] = g; in fxt1_decode_1HI()
1459 rgba[GCOMP] = UP5(kk >> 5); in fxt1_decode_1CHROMA()
1478 col[0][GCOMP] = CC_SEL(cc, 99); in fxt1_decode_1MIXED()
[all …]
Dpixeltransfer.c58 rgba[i][GCOMP] = rgba[i][GCOMP] * gScale + gBias; in _mesa_scale_and_bias_rgba()
93 GLfloat g = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); in _mesa_map_rgba()
97 rgba[i][GCOMP] = gMap[F_TO_I(g * gscale)]; in _mesa_map_rgba()
121 rgba[i][GCOMP] = gMap[index[i] & gmask]; in _mesa_map_ci_to_rgba()
183 rgba[i][GCOMP] = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
Dtexcompress_rgtc.c304 texel[GCOMP] = 0.0; in _mesa_fetch_texel_red_rgtc1()
319 texel[GCOMP] = 0.0; in _mesa_fetch_texel_signed_red_rgtc1()
337 texel[GCOMP] = UBYTE_TO_FLOAT(green); in _mesa_fetch_texel_rg_rgtc2()
355 texel[GCOMP] = BYTE_TO_FLOAT_TEX(green); in _mesa_fetch_texel_signed_rg_rgtc2()
370 texel[GCOMP] = in _mesa_fetch_texel_l_latc1()
385 texel[GCOMP] = in _mesa_fetch_texel_signed_l_latc1()
403 texel[GCOMP] = in _mesa_fetch_texel_la_latc2()
421 texel[GCOMP] = in _mesa_fetch_texel_signed_la_latc2()
Dimage.c482 dst2[i][GCOMP] = UBYTE_TO_USHORT(src1[i][GCOMP]); in _mesa_convert_colors()
498 dst4[i][GCOMP] = UBYTE_TO_FLOAT(src1[i][GCOMP]); in _mesa_convert_colors()
515 dst1[i][GCOMP] = USHORT_TO_UBYTE(src2[i][GCOMP]); in _mesa_convert_colors()
531 dst4[i][GCOMP] = USHORT_TO_FLOAT(src2[i][GCOMP]); in _mesa_convert_colors()
560 UNCLAMPED_FLOAT_TO_USHORT(dst2[i][GCOMP], src4[i][GCOMP]); in _mesa_convert_colors()
Daccum.c303 acc[i * 4 + 1] = (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load()
312 acc[i * 4 + 1] += (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load()
363 !ctx->Color.ColorMask[buffer][GCOMP] || in accum_return()
408 if (ctx->Color.ColorMask[buffer][GCOMP] == 0) { in accum_return()
410 rgba[i][GCOMP] = dest[i][GCOMP]; in accum_return()
Dtexcompress_etc.c68 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in _mesa_fetch_texel_2d_f_etc1_rgb8()
Dconfig.h278 #define GCOMP 1 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()
76 FLOAT_TO_UBYTE(c[GCOMP]), 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()
483 c.g=rgba[i][GCOMP]; in write_rgba_span_front()
495 c.g=rgba[i][GCOMP]; in write_rgba_span_front()
529 RGB(rgba[i][RCOMP], rgba[i][GCOMP], in write_rgba_pixels_front()
549 rgba[i][GCOMP] = GetGValue(Color); in read_rgba_span_front()
570 rgba[i][GCOMP] = GetGValue(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.c242 ctx->Color.ColorMask[i][GCOMP], in _mesa_init_driver_state()
250 ctx->Color.ColorMask[0][GCOMP], in _mesa_init_driver_state()

12