Home
last modified time | relevance | path

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

/third_party/mesa3d/src/mesa/main/
Dtexcompress_s3tc.c269 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgb_dxt1()
281 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt1()
293 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt3()
305 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt5()
318 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgb_dxt1()
330 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgba_dxt1()
342 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgba_dxt3()
354 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(tex[GCOMP]); in fetch_srgba_dxt5()
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()
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.c246 acc[i * 4 + 1] = (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load()
255 acc[i * 4 + 1] += (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load()
354 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.h290 #define GCOMP 1 macro
Dpack.c1346 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1351 dst[i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1358 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1364 dst[2*i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1476 (uint64_t) rgba[i][GCOMP] + in _mesa_pack_luminance_from_rgba_integer()
1480 (int64_t) ((int32_t) rgba[i][GCOMP]) + in _mesa_pack_luminance_from_rgba_integer()
1511 (uint64_t) rgba[i][GCOMP] + in _mesa_pack_luminance_from_rgba_integer()
1515 (int64_t) ((int32_t) rgba[i][GCOMP]) + in _mesa_pack_luminance_from_rgba_integer()
Dtexparam.c853 texObj->Sampler.Attrib.state.border_color.f[GCOMP] = CLAMP(params[1], 0.0F, 1.0F); in set_tex_parameterf()
/third_party/mesa3d/src/util/format/
Du_format_fxt1.c33 #define GCOMP 1 macro
866 FX64_MOV32(hi, 9 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */ in fxt1_quantize_MIXED1()
991 if ((int32_t)((lolo >> 1) & 1) != (((vec[1][GCOMP] ^ vec[0][GCOMP]) >> 2) & 1)) { in fxt1_quantize_MIXED0()
1024 if ((int32_t)((lohi >> 1) & 1) != (((vec[3][GCOMP] ^ vec[2][GCOMP]) >> 2) & 1)) { in fxt1_quantize_MIXED0()
1035 FX64_MOV32(hi, 8 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */ in fxt1_quantize_MIXED0()
1266 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI()
1284 rgba[GCOMP] = g; in fxt1_decode_1HI()
1308 rgba[GCOMP] = UP5(kk >> 5); in fxt1_decode_1CHROMA()
1327 col[0][GCOMP] = CC_SEL(cc, 99); in fxt1_decode_1MIXED()
1331 col[1][GCOMP] = CC_SEL(cc, 114); in fxt1_decode_1MIXED()
[all …]