Home
last modified time | relevance | path

Searched refs:UBYTE_TO_FLOAT (Results 1 – 17 of 17) sorted by relevance

/third_party/mesa3d/src/mesa/main/
Dtexcompress_s3tc.c269 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgb_dxt1()
270 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgb_dxt1()
271 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgb_dxt1()
272 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgb_dxt1()
281 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt1()
282 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt1()
283 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgba_dxt1()
284 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgba_dxt1()
293 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt3()
294 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt3()
[all …]
Dtexcompress_bptc.c87 texel[RCOMP] = UBYTE_TO_FLOAT(texel_bytes[0]); in fetch_bptc_rgba_unorm()
88 texel[GCOMP] = UBYTE_TO_FLOAT(texel_bytes[1]); in fetch_bptc_rgba_unorm()
89 texel[BCOMP] = UBYTE_TO_FLOAT(texel_bytes[2]); in fetch_bptc_rgba_unorm()
90 texel[ACOMP] = UBYTE_TO_FLOAT(texel_bytes[3]); in fetch_bptc_rgba_unorm()
105 texel[ACOMP] = UBYTE_TO_FLOAT(texel_bytes[3]); in fetch_bptc_srgb_alpha_unorm()
Dapi_arrayelt.c153 CALL_VertexAttrib1fNV(get_dispatch(), (index, UBYTE_TO_FLOAT(v[0]))); in VertexAttrib1NubvNV()
165 CALL_VertexAttrib2fNV(get_dispatch(), (index, UBYTE_TO_FLOAT(v[0]), in VertexAttrib2NubvNV()
166 UBYTE_TO_FLOAT(v[1]))); in VertexAttrib2NubvNV()
178 CALL_VertexAttrib3fNV(get_dispatch(), (index, UBYTE_TO_FLOAT(v[0]), in VertexAttrib3NubvNV()
179 UBYTE_TO_FLOAT(v[1]), in VertexAttrib3NubvNV()
180 UBYTE_TO_FLOAT(v[2]))); in VertexAttrib3NubvNV()
192 CALL_VertexAttrib4fNV(get_dispatch(), (index, UBYTE_TO_FLOAT(v[0]), in VertexAttrib4NubvNV()
193 UBYTE_TO_FLOAT(v[1]), in VertexAttrib4NubvNV()
194 UBYTE_TO_FLOAT(v[2]), in VertexAttrib4NubvNV()
195 UBYTE_TO_FLOAT(v[3]))); in VertexAttrib4NubvNV()
[all …]
Dtexcompress_etc.c1283 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc1_rgb8()
1284 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc1_rgb8()
1285 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc1_rgb8()
1305 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgb8()
1306 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc2_rgb8()
1307 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgb8()
1345 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in fetch_etc2_rgba8_eac()
1346 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in fetch_etc2_rgba8_eac()
1347 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in fetch_etc2_rgba8_eac()
1348 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]); in fetch_etc2_rgba8_eac()
[all …]
Dtexcompress_rgtc.c320 texel[RCOMP] = UBYTE_TO_FLOAT(red); in fetch_red_rgtc1()
334 texel[BCOMP] = UBYTE_TO_FLOAT(red); in fetch_l_latc1()
375 texel[RCOMP] = UBYTE_TO_FLOAT(red); in fetch_rg_rgtc2()
376 texel[GCOMP] = UBYTE_TO_FLOAT(green); in fetch_rg_rgtc2()
394 texel[BCOMP] = UBYTE_TO_FLOAT(red); in fetch_la_latc2()
395 texel[ACOMP] = UBYTE_TO_FLOAT(green); in fetch_la_latc2()
Dimage.c511 dst4[i][RCOMP] = UBYTE_TO_FLOAT(src1[i][RCOMP]); in _mesa_convert_colors()
512 dst4[i][GCOMP] = UBYTE_TO_FLOAT(src1[i][GCOMP]); in _mesa_convert_colors()
513 dst4[i][BCOMP] = UBYTE_TO_FLOAT(src1[i][BCOMP]); in _mesa_convert_colors()
514 dst4[i][ACOMP] = UBYTE_TO_FLOAT(src1[i][ACOMP]); in _mesa_convert_colors()
Dmacros.h49 #define UBYTE_TO_FLOAT(u) _mesa_ubyte_to_float_color_tab[(unsigned int)(u)] macro
Dpack.c843 DEPTH_VALUES(GLubyte, UBYTE_TO_FLOAT); in _mesa_unpack_depth_span()
/third_party/mesa3d/src/mesa/tnl/
Dt_vertex_generic.c695 out[0] = UBYTE_TO_FLOAT(v[0]); in extract_4ub_4f_rgba()
696 out[1] = UBYTE_TO_FLOAT(v[1]); in extract_4ub_4f_rgba()
697 out[2] = UBYTE_TO_FLOAT(v[2]); in extract_4ub_4f_rgba()
698 out[3] = UBYTE_TO_FLOAT(v[3]); in extract_4ub_4f_rgba()
705 out[2] = UBYTE_TO_FLOAT(v[0]); in extract_4ub_4f_bgra()
706 out[1] = UBYTE_TO_FLOAT(v[1]); in extract_4ub_4f_bgra()
707 out[0] = UBYTE_TO_FLOAT(v[2]); in extract_4ub_4f_bgra()
708 out[3] = UBYTE_TO_FLOAT(v[3]); in extract_4ub_4f_bgra()
715 out[3] = UBYTE_TO_FLOAT(v[0]); in extract_4ub_4f_argb()
716 out[0] = UBYTE_TO_FLOAT(v[1]); in extract_4ub_4f_argb()
[all …]
Dt_draw.c111 *fptr++ = UBYTE_TO_FLOAT(in[2]); /* red */ in convert_bgra_to_float()
112 *fptr++ = UBYTE_TO_FLOAT(in[1]); /* green */ in convert_bgra_to_float()
113 *fptr++ = UBYTE_TO_FLOAT(in[0]); /* blue */ in convert_bgra_to_float()
114 *fptr++ = UBYTE_TO_FLOAT(in[3]); /* alpha */ in convert_bgra_to_float()
204 CONVERT(GLubyte, UBYTE_TO_FLOAT); in _tnl_import_array()
/third_party/mesa3d/src/mesa/vbo/
Dvbo_attrib_tmp.h1698 ATTR4F(VBO_ATTRIB_COLOR0, UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green), in TAG()
1699 UBYTE_TO_FLOAT(blue), 1.0); in TAG()
1754 ATTR4F(VBO_ATTRIB_COLOR0, UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), in TAG()
1755 UBYTE_TO_FLOAT(v[2]), 1.0); in TAG()
1813 ATTR4F(VBO_ATTRIB_COLOR0, UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green), in TAG()
1814 UBYTE_TO_FLOAT(blue), UBYTE_TO_FLOAT(alpha)); in TAG()
1872 ATTR4F(VBO_ATTRIB_COLOR0, UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), in TAG()
1873 UBYTE_TO_FLOAT(v[2]), UBYTE_TO_FLOAT(v[3])); in TAG()
2630 ATTR3F(VBO_ATTRIB_COLOR1, UBYTE_TO_FLOAT(red), in TAG()
2631 UBYTE_TO_FLOAT(green), in TAG()
[all …]
/third_party/mesa3d/src/mesa/swrast/
Ds_blend.c837 rgbaF[i][RCOMP] = UBYTE_TO_FLOAT(rgba[i][RCOMP]); in blend_general()
838 rgbaF[i][GCOMP] = UBYTE_TO_FLOAT(rgba[i][GCOMP]); in blend_general()
839 rgbaF[i][BCOMP] = UBYTE_TO_FLOAT(rgba[i][BCOMP]); in blend_general()
840 rgbaF[i][ACOMP] = UBYTE_TO_FLOAT(rgba[i][ACOMP]); in blend_general()
841 destF[i][RCOMP] = UBYTE_TO_FLOAT(dest[i][RCOMP]); in blend_general()
842 destF[i][GCOMP] = UBYTE_TO_FLOAT(dest[i][GCOMP]); in blend_general()
843 destF[i][BCOMP] = UBYTE_TO_FLOAT(dest[i][BCOMP]); in blend_general()
844 destF[i][ACOMP] = UBYTE_TO_FLOAT(dest[i][ACOMP]); in blend_general()
Ds_chan.h75 #define CHAN_TO_FLOAT(c) UBYTE_TO_FLOAT(c)
Ds_span.c334 col0[i][0] = UBYTE_TO_FLOAT(span->array->rgba8[i][0]); in interpolate_float_colors()
335 col0[i][1] = UBYTE_TO_FLOAT(span->array->rgba8[i][1]); in interpolate_float_colors()
336 col0[i][2] = UBYTE_TO_FLOAT(span->array->rgba8[i][2]); in interpolate_float_colors()
337 col0[i][3] = UBYTE_TO_FLOAT(span->array->rgba8[i][3]); in interpolate_float_colors()
Ds_texfilter.c1442 rgba[k][RCOMP] = UBYTE_TO_FLOAT(texel[2]); in opt_sample_rgb_2d()
1443 rgba[k][GCOMP] = UBYTE_TO_FLOAT(texel[1]); in opt_sample_rgb_2d()
1444 rgba[k][BCOMP] = UBYTE_TO_FLOAT(texel[0]); in opt_sample_rgb_2d()
1487 rgba[i][RCOMP] = UBYTE_TO_FLOAT( (texel >> 24) ); in opt_sample_rgba_2d()
1488 rgba[i][GCOMP] = UBYTE_TO_FLOAT( (texel >> 16) & 0xff ); in opt_sample_rgba_2d()
1489 rgba[i][BCOMP] = UBYTE_TO_FLOAT( (texel >> 8) & 0xff ); in opt_sample_rgba_2d()
1490 rgba[i][ACOMP] = UBYTE_TO_FLOAT( (texel ) & 0xff ); in opt_sample_rgba_2d()
/third_party/mesa3d/src/mesa/math/
Dm_translate.c174 #define TRX_3FN(f,n) UBYTE_TO_FLOAT(PTR_ELT(f,n))
176 #define TRX_4FN(f,n) UBYTE_TO_FLOAT(PTR_ELT(f,n))
/third_party/mesa3d/src/mesa/drivers/common/
Dmeta.c2447 _mesa_AlphaFunc(GL_NOTEQUAL, UBYTE_TO_FLOAT(bg)); in _mesa_meta_Bitmap()