/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_texcombine.c | 132 rgba[i][ACOMP] = CHAN_TO_FLOAT(rgbaChan[i][ACOMP]); 225 dst[i][BCOMP] = src[i][ACOMP]; 232 dst[i][BCOMP] = 1.0F - src[i][ACOMP]; 263 c[i][ACOMP] = alpha; 273 c[i][ACOMP] = 0.0F; 281 c[i][ACOMP] = 1.0F; 301 dst[i][ACOMP] = 1.0F - src[i][ACOMP]; 447 rgba[i][ACOMP] = 1.0 [all...] |
s_texfetch_tmp.h | 111 texel[ACOMP] = src[3]; 129 texel[ACOMP] = _mesa_half_to_float(src[3]); 146 texel[ACOMP] = 1.0F; 164 texel[ACOMP] = 1.0F; 182 texel[ACOMP] = src[0]; 200 texel[ACOMP] = _mesa_half_to_float(src[0]); 218 texel[ACOMP] = 1.0F; 236 texel[ACOMP] = 1.0F; 254 texel[ACOMP] = src[1]; 272 texel[ACOMP] = _mesa_half_to_float(src[1]) [all...] |
s_blend.c | 140 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */ 150 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; 158 rgba[i][ACOMP] = (GLubyte) a; 185 const GLint t = rgba[i][ACOMP]; 195 GLushort a = (GLushort) ((rgba[i][ACOMP] - dest[i][ACOMP]) * tt + dest[i][ACOMP]); 223 const GLfloat t = rgba[i][ACOMP]; /* t in [0, 1] * [all...] |
s_masking.c | 75 const GLushort aMask = ctx->Color.ColorMask[buf][ACOMP] ? 0xffff : 0x0; 83 src[i][ACOMP] = (src[i][ACOMP] & aMask) | (dst[i][ACOMP] & ~aMask); 91 const GLuint aMask = ctx->Color.ColorMask[buf][ACOMP] ? ~0x0 : 0x0; 99 src[i][ACOMP] = (src[i][ACOMP] & aMask) | (dst[i][ACOMP] & ~aMask);
|
s_triangle.c | 157 rgba[i][ACOMP] = 0xff; \ 218 rgba[i][ACOMP] = 0xff; \ 286 sample[ACOMP] = CHAN_MAX; 292 sample[ACOMP] = CHAN_MAX; 298 sample[ACOMP] = tex00[0]; 304 sample[ACOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]) 310 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1u) >> (FIXED_SHIFT + 8) 313 dest[RCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->red + \ 314 ((sample[ACOMP] + 1) * sample[RCOMP] << FIXED_SHIFT)) [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_texcombine.c | 124 rgba[i][ACOMP] = CHAN_TO_FLOAT(rgbaChan[i][ACOMP]); 217 dst[i][BCOMP] = src[i][ACOMP]; 224 dst[i][BCOMP] = 1.0F - src[i][ACOMP]; 255 c[i][ACOMP] = alpha; 265 c[i][ACOMP] = 0.0F; 273 c[i][ACOMP] = 1.0F; 293 dst[i][ACOMP] = 1.0F - src[i][ACOMP]; 439 rgba[i][ACOMP] = 1.0 [all...] |
s_texfetch_tmp.h | 111 texel[ACOMP] = src[3]; 129 texel[ACOMP] = _mesa_half_to_float(src[3]); 146 texel[ACOMP] = 1.0F; 164 texel[ACOMP] = 1.0F; 182 texel[ACOMP] = src[0]; 200 texel[ACOMP] = _mesa_half_to_float(src[0]); 218 texel[ACOMP] = 1.0F; 236 texel[ACOMP] = 1.0F; 254 texel[ACOMP] = src[1]; 272 texel[ACOMP] = _mesa_half_to_float(src[1]) [all...] |
s_blend.c | 140 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */ 150 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; 158 rgba[i][ACOMP] = (GLubyte) a; 185 const GLint t = rgba[i][ACOMP]; 195 GLushort a = (GLushort) ((rgba[i][ACOMP] - dest[i][ACOMP]) * tt + dest[i][ACOMP]); 223 const GLfloat t = rgba[i][ACOMP]; /* t in [0, 1] * [all...] |
s_masking.c | 75 const GLushort aMask = ctx->Color.ColorMask[buf][ACOMP] ? 0xffff : 0x0; 83 src[i][ACOMP] = (src[i][ACOMP] & aMask) | (dst[i][ACOMP] & ~aMask); 91 const GLuint aMask = ctx->Color.ColorMask[buf][ACOMP] ? ~0x0 : 0x0; 99 src[i][ACOMP] = (src[i][ACOMP] & aMask) | (dst[i][ACOMP] & ~aMask);
|
s_triangle.c | 157 rgba[i][ACOMP] = 0xff; \ 218 rgba[i][ACOMP] = 0xff; \ 286 sample[ACOMP] = CHAN_MAX; 292 sample[ACOMP] = CHAN_MAX; 298 sample[ACOMP] = tex00[0]; 304 sample[ACOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]) 310 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1u) >> (FIXED_SHIFT + 8) 313 dest[RCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->red + \ 314 ((sample[ACOMP] + 1) * sample[RCOMP] << FIXED_SHIFT)) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
texcompress_s3tc.c | 395 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 424 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 453 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 482 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 496 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); [all...] |
format_unpack.c | 99 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); 112 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); 125 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); 138 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); 151 dst[i][ACOMP] = 1.0f; 164 dst[i][ACOMP] = 1.0f; 177 dst[i][ACOMP] = 1.0f; 190 dst[i][ACOMP] = 1.0f; 203 dst[i][ACOMP] = 1.0F; 216 dst[i][ACOMP] = 1.0F [all...] |
pack_tmp.h | 54 dst[i] = SRC_CONVERT(rgba[i][ACOMP]); 78 dst[i*4+3] = SRC_CONVERT(rgba[i][ACOMP]); 95 dst[i*4+3] = SRC_CONVERT(rgba[i][ACOMP]); 112 dst[i*2+1] = SRC_CONVERT(rgba[i][ACOMP]);
|
pack.c | 611 | (CLAMP(rgba[i][ACOMP], 0, 15) ); 620 | (CLAMP(rgba[i][ACOMP], 0, 15) ); 626 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) << 12) 642 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); 651 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); 657 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) ) 673 | (CLAMP(rgba[i][ACOMP], 0, 1) ); 682 | (CLAMP(rgba[i][ACOMP], 0, 1) ); 688 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 31) << 11) 704 | (CLAMP(rgba[i][ACOMP], 0, 1) << 15) [all...] |
format_pack.c | 101 *d = PACK_COLOR_8888(src[RCOMP], src[GCOMP], src[BCOMP], src[ACOMP]); 119 src[i][BCOMP], src[i][ACOMP]); 145 *d = PACK_COLOR_8888(src[ACOMP], src[BCOMP], src[GCOMP], src[RCOMP]); 162 d[i] = PACK_COLOR_8888(src[i][ACOMP], src[i][BCOMP], 188 *d = PACK_COLOR_8888(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]); 205 d[i] = PACK_COLOR_8888(src[i][ACOMP], src[i][RCOMP], 231 *d = PACK_COLOR_8888(src[BCOMP], src[GCOMP], src[RCOMP], src[ACOMP]); 249 src[i][RCOMP], src[i][ACOMP]); 545 *d = PACK_COLOR_4444(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]); 567 *d = PACK_COLOR_4444(src[GCOMP], src[BCOMP], src[ACOMP], src[RCOMP]) [all...] |
texcompress_rgtc.c | 306 texel[ACOMP] = 1.0; 321 texel[ACOMP] = 1.0; 339 texel[ACOMP] = 1.0; 357 texel[ACOMP] = 1.0; 372 texel[ACOMP] = 1.0; 387 texel[ACOMP] = 1.0; 405 texel[ACOMP] = UBYTE_TO_FLOAT(green); 423 texel[ACOMP] = BYTE_TO_FLOAT_TEX(green);
|
pixeltransfer.c | 70 rgba[i][ACOMP] = rgba[i][ACOMP] * aScale + aBias; 95 GLfloat a = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); 99 rgba[i][ACOMP] = aMap[F_TO_I(a * ascale)]; 123 rgba[i][ACOMP] = aMap[index[i] & amask]; 185 rgba[i][ACOMP] = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F);
|
/external/mesa3d/src/mesa/main/ |
texcompress_s3tc.c | 395 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 424 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 453 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 482 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 496 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); [all...] |
format_unpack.c | 99 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); 112 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); 125 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); 138 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); 151 dst[i][ACOMP] = 1.0f; 164 dst[i][ACOMP] = 1.0f; 177 dst[i][ACOMP] = 1.0f; 190 dst[i][ACOMP] = 1.0f; 203 dst[i][ACOMP] = 1.0F; 216 dst[i][ACOMP] = 1.0F [all...] |
pack_tmp.h | 54 dst[i] = SRC_CONVERT(rgba[i][ACOMP]); 78 dst[i*4+3] = SRC_CONVERT(rgba[i][ACOMP]); 95 dst[i*4+3] = SRC_CONVERT(rgba[i][ACOMP]); 112 dst[i*2+1] = SRC_CONVERT(rgba[i][ACOMP]);
|
pack.c | 611 | (CLAMP(rgba[i][ACOMP], 0, 15) ); 620 | (CLAMP(rgba[i][ACOMP], 0, 15) ); 626 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) << 12) 642 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); 651 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); 657 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) ) 673 | (CLAMP(rgba[i][ACOMP], 0, 1) ); 682 | (CLAMP(rgba[i][ACOMP], 0, 1) ); 688 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 31) << 11) 704 | (CLAMP(rgba[i][ACOMP], 0, 1) << 15) [all...] |
format_pack.c | 101 *d = PACK_COLOR_8888(src[RCOMP], src[GCOMP], src[BCOMP], src[ACOMP]); 119 src[i][BCOMP], src[i][ACOMP]); 145 *d = PACK_COLOR_8888(src[ACOMP], src[BCOMP], src[GCOMP], src[RCOMP]); 162 d[i] = PACK_COLOR_8888(src[i][ACOMP], src[i][BCOMP], 188 *d = PACK_COLOR_8888(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]); 205 d[i] = PACK_COLOR_8888(src[i][ACOMP], src[i][RCOMP], 231 *d = PACK_COLOR_8888(src[BCOMP], src[GCOMP], src[RCOMP], src[ACOMP]); 249 src[i][RCOMP], src[i][ACOMP]); 545 *d = PACK_COLOR_4444(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]); 567 *d = PACK_COLOR_4444(src[GCOMP], src[BCOMP], src[ACOMP], src[RCOMP]) [all...] |
texcompress_rgtc.c | 306 texel[ACOMP] = 1.0; 321 texel[ACOMP] = 1.0; 339 texel[ACOMP] = 1.0; 357 texel[ACOMP] = 1.0; 372 texel[ACOMP] = 1.0; 387 texel[ACOMP] = 1.0; 405 texel[ACOMP] = UBYTE_TO_FLOAT(green); 423 texel[ACOMP] = BYTE_TO_FLOAT_TEX(green);
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/ |
nouveau_util.h | 38 return PACK_COLOR_8888(c[ACOMP], c[RCOMP], c[GCOMP], c[BCOMP]); 40 return PACK_COLOR_8888(c[BCOMP], c[GCOMP], c[RCOMP], c[ACOMP]); 46 return PACK_COLOR_8888(c[RCOMP], c[GCOMP], c[BCOMP], c[ACOMP]); 48 return PACK_COLOR_8888(c[ACOMP], c[BCOMP], c[GCOMP], c[RCOMP]); 78 FLOAT_TO_UBYTE(c[ACOMP]) });
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nouveau_util.h | 38 return PACK_COLOR_8888(c[ACOMP], c[RCOMP], c[GCOMP], c[BCOMP]); 40 return PACK_COLOR_8888(c[BCOMP], c[GCOMP], c[RCOMP], c[ACOMP]); 46 return PACK_COLOR_8888(c[RCOMP], c[GCOMP], c[BCOMP], c[ACOMP]); 48 return PACK_COLOR_8888(c[ACOMP], c[BCOMP], c[GCOMP], c[RCOMP]); 78 FLOAT_TO_UBYTE(c[ACOMP]) });
|