Home
last modified time | relevance | path

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

/third_party/mesa3d/src/mesa/main/
Dtexcompress_s3tc.c268 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgb_dxt1()
280 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt1()
292 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt3()
304 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt5()
317 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgb_dxt1()
329 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgba_dxt1()
341 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgba_dxt3()
353 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(tex[RCOMP]); in fetch_srgba_dxt5()
Dpixeltransfer.c54 rgba[i][RCOMP] = rgba[i][RCOMP] * rScale + rBias; in _mesa_scale_and_bias_rgba()
94 GLfloat r = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in _mesa_map_rgba()
98 rgba[i][RCOMP] = rMap[(int)_mesa_lroundevenf(r * rscale)]; in _mesa_map_rgba()
122 rgba[i][RCOMP] = rMap[index[i] & rmask]; in _mesa_map_ci_to_rgba()
184 rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
Dtexcompress_rgtc.c320 texel[RCOMP] = UBYTE_TO_FLOAT(red); in fetch_red_rgtc1()
332 texel[RCOMP] = in fetch_l_latc1()
345 texel[RCOMP] = BYTE_TO_FLOAT_TEX(red); in fetch_signed_red_rgtc1()
358 texel[RCOMP] = in fetch_signed_l_latc1()
375 texel[RCOMP] = UBYTE_TO_FLOAT(red); in fetch_rg_rgtc2()
392 texel[RCOMP] = in fetch_la_latc2()
410 texel[RCOMP] = BYTE_TO_FLOAT_TEX(red); in fetch_signed_rg_rgtc2()
428 texel[RCOMP] = in fetch_signed_la_latc2()
Dtexcompress_etc.c1283 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc1_rgb8()
1305 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgb8()
1326 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(dst[0]); in fetch_etc2_srgb8()
1345 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgba8_eac()
1364 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(dst[0]); in fetch_etc2_srgb8_alpha8_eac()
1383 texel[RCOMP] = USHORT_TO_FLOAT(dst); in fetch_etc2_r11_eac()
1407 texel[RCOMP] = USHORT_TO_FLOAT(dst[0]); in fetch_etc2_rg11_eac()
1426 texel[RCOMP] = SHORT_TO_FLOAT(dst); in fetch_etc2_signed_r11_eac()
1450 texel[RCOMP] = SHORT_TO_FLOAT(dst[0]); in fetch_etc2_signed_rg11_eac()
1471 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgb8_punchthrough_alpha1()
[all …]
Daccum.c245 acc[i * 4 + 0] = (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load()
254 acc[i * 4 + 0] += (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load()
350 rgba[i][RCOMP] = dest[i][RCOMP]; in accum_return()
Dtexcompress_bptc.c87 texel[RCOMP] = UBYTE_TO_FLOAT(texel_bytes[0]); in fetch_bptc_rgba_unorm()
102 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(texel_bytes[0]); in fetch_bptc_srgb_alpha_unorm()
Dtexcompress_s3tc_tmp.h37 #define RCOMP 0 macro
70 rgba[RCOMP] = UBYTE_TO_CHAN( EXP5TO8R(color0) ); in dxt135_decode_imageblock()
75 rgba[RCOMP] = UBYTE_TO_CHAN( EXP5TO8R(color1) ); in dxt135_decode_imageblock()
81 rgba[RCOMP] = UBYTE_TO_CHAN( ((EXP5TO8R(color0) * 2 + EXP5TO8R(color1)) / 3) ); in dxt135_decode_imageblock()
86 rgba[RCOMP] = UBYTE_TO_CHAN( ((EXP5TO8R(color0) + EXP5TO8R(color1)) / 2) ); in dxt135_decode_imageblock()
93 rgba[RCOMP] = UBYTE_TO_CHAN( ((EXP5TO8R(color0) + EXP5TO8R(color1) * 2) / 3) ); in dxt135_decode_imageblock()
98 rgba[RCOMP] = 0; in dxt135_decode_imageblock()
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()
1475 lum64 = (uint64_t) rgba[i][RCOMP] + in _mesa_pack_luminance_from_rgba_integer()
1479 lum64 = (int64_t) ((int32_t) rgba[i][RCOMP]) + in _mesa_pack_luminance_from_rgba_integer()
1510 lum64 = (uint64_t) rgba[i][RCOMP] + in _mesa_pack_luminance_from_rgba_integer()
1514 lum64 = (int64_t) ((int32_t) rgba[i][RCOMP]) + in _mesa_pack_luminance_from_rgba_integer()
Dconfig.h289 #define RCOMP 0 macro
Dtexparam.c852 texObj->Sampler.Attrib.state.border_color.f[RCOMP] = CLAMP(params[0], 0.0F, 1.0F); in set_tex_parameterf()
/third_party/mesa3d/src/util/format/
Du_format_fxt1.c32 #define RCOMP 0 macro
1266 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI()
1283 rgba[RCOMP] = r; in fxt1_decode_1HI()
1309 rgba[RCOMP] = UP5(kk >> 10); in fxt1_decode_1CHROMA()
1328 col[0][RCOMP] = CC_SEL(cc, 104); in fxt1_decode_1MIXED()
1332 col[1][RCOMP] = CC_SEL(cc, 119); in fxt1_decode_1MIXED()
1340 col[0][RCOMP] = CC_SEL(cc, 74); in fxt1_decode_1MIXED()
1344 col[1][RCOMP] = CC_SEL(cc, 89); in fxt1_decode_1MIXED()
1354 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED()
1360 r = UP5(col[0][RCOMP]); in fxt1_decode_1MIXED()
[all …]