Home
last modified time | relevance | path

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

/third_party/mesa3d/src/mesa/main/
Dtexcompress_s3tc.c270 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgb_dxt1()
282 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt1()
294 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt3()
306 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt5()
319 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgb_dxt1()
331 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt1()
343 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt3()
355 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(tex[BCOMP]); in fetch_srgba_dxt5()
Dpixeltransfer.c66 rgba[i][BCOMP] = rgba[i][BCOMP] * bScale + bBias; in _mesa_scale_and_bias_rgba()
96 GLfloat b = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in _mesa_map_rgba()
100 rgba[i][BCOMP] = bMap[(int)_mesa_lroundevenf(b * bscale)]; in _mesa_map_rgba()
124 rgba[i][BCOMP] = bMap[index[i] & bmask]; in _mesa_map_ci_to_rgba()
186 rgba[i][BCOMP] = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in _mesa_apply_rgba_transfer_ops()
Dtexcompress_rgtc.c322 texel[BCOMP] = 0.0; in fetch_red_rgtc1()
334 texel[BCOMP] = UBYTE_TO_FLOAT(red); in fetch_l_latc1()
347 texel[BCOMP] = 0.0; in fetch_signed_red_rgtc1()
360 texel[BCOMP] = BYTE_TO_FLOAT(red); in fetch_signed_l_latc1()
377 texel[BCOMP] = 0.0; in fetch_rg_rgtc2()
394 texel[BCOMP] = UBYTE_TO_FLOAT(red); in fetch_la_latc2()
412 texel[BCOMP] = 0.0; in fetch_signed_rg_rgtc2()
430 texel[BCOMP] = BYTE_TO_FLOAT_TEX(red); in fetch_signed_la_latc2()
Dtexcompress_etc.c1285 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc1_rgb8()
1307 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgb8()
1328 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(dst[2]); in fetch_etc2_srgb8()
1347 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgba8_eac()
1366 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(dst[2]); in fetch_etc2_srgb8_alpha8_eac()
1385 texel[BCOMP] = 0.0f; in fetch_etc2_r11_eac()
1409 texel[BCOMP] = 0.0f; in fetch_etc2_rg11_eac()
1428 texel[BCOMP] = 0.0f; in fetch_etc2_signed_r11_eac()
1452 texel[BCOMP] = 0.0f; in fetch_etc2_signed_rg11_eac()
1473 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgb8_punchthrough_alpha1()
[all …]
Daccum.c247 acc[i * 4 + 2] = (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load()
256 acc[i * 4 + 2] += (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load()
358 rgba[i][BCOMP] = dest[i][BCOMP]; in accum_return()
Dtexcompress_bptc.c89 texel[BCOMP] = UBYTE_TO_FLOAT(texel_bytes[2]); in fetch_bptc_rgba_unorm()
104 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(texel_bytes[2]); in fetch_bptc_srgb_alpha_unorm()
Dtexcompress_s3tc_tmp.h39 #define BCOMP 2 macro
72 rgba[BCOMP] = UBYTE_TO_CHAN( EXP5TO8B(color0) ); in dxt135_decode_imageblock()
77 rgba[BCOMP] = UBYTE_TO_CHAN( EXP5TO8B(color1) ); in dxt135_decode_imageblock()
83 rgba[BCOMP] = UBYTE_TO_CHAN( ((EXP5TO8B(color0) * 2 + EXP5TO8B(color1)) / 3) ); in dxt135_decode_imageblock()
88 rgba[BCOMP] = UBYTE_TO_CHAN( ((EXP5TO8B(color0) + EXP5TO8B(color1)) / 2) ); in dxt135_decode_imageblock()
95 rgba[BCOMP] = UBYTE_TO_CHAN( ((EXP5TO8B(color0) + EXP5TO8B(color1) * 2) / 3) ); in dxt135_decode_imageblock()
100 rgba[BCOMP] = 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()
1477 (uint64_t) rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_integer()
1481 (int64_t) ((int32_t) rgba[i][BCOMP]); in _mesa_pack_luminance_from_rgba_integer()
1512 (uint64_t) rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_integer()
1516 (int64_t) ((int32_t) rgba[i][BCOMP]); in _mesa_pack_luminance_from_rgba_integer()
Dconfig.h291 #define BCOMP 2 macro
Dtexparam.c854 texObj->Sampler.Attrib.state.border_color.f[BCOMP] = CLAMP(params[2], 0.0F, 1.0F); in set_tex_parameterf()
/third_party/mesa3d/src/util/format/
Du_format_fxt1.c34 #define BCOMP 2 macro
1266 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI()
1285 rgba[BCOMP] = b; in fxt1_decode_1HI()
1307 rgba[BCOMP] = UP5(kk); in fxt1_decode_1CHROMA()
1326 col[0][BCOMP] = (*(const uint32_t *)(code + 11)) >> 6; in fxt1_decode_1MIXED()
1330 col[1][BCOMP] = CC_SEL(cc, 109); in fxt1_decode_1MIXED()
1338 col[0][BCOMP] = CC_SEL(cc, 64); in fxt1_decode_1MIXED()
1342 col[1][BCOMP] = CC_SEL(cc, 79); in fxt1_decode_1MIXED()
1354 rgba[RCOMP] = rgba[BCOMP] = rgba[GCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1MIXED()
1358 b = UP5(col[0][BCOMP]); in fxt1_decode_1MIXED()
[all …]