Home
last modified time | relevance | path

Searched refs:USHORT_TO_FLOAT (Results 1 – 12 of 12) sorted by relevance

/external/mesa3d/src/mesa/main/
Dapi_arrayelt.c352 CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]))); in VertexAttrib1NusvNV()
364 CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]), in VertexAttrib2NusvNV()
365 USHORT_TO_FLOAT(v[1]))); in VertexAttrib2NusvNV()
378 CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]), in VertexAttrib3NusvNV()
379 USHORT_TO_FLOAT(v[1]), in VertexAttrib3NusvNV()
380 USHORT_TO_FLOAT(v[2]))); in VertexAttrib3NusvNV()
393 CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]), in VertexAttrib4NusvNV()
394 USHORT_TO_FLOAT(v[1]), in VertexAttrib4NusvNV()
395 USHORT_TO_FLOAT(v[2]), in VertexAttrib4NusvNV()
396 USHORT_TO_FLOAT(v[3]))); in VertexAttrib4NusvNV()
[all …]
Dapi_loopback.c131 COLORF( USHORT_TO_FLOAT(red), USHORT_TO_FLOAT(green), in loopback_Color3us_f()
132 USHORT_TO_FLOAT(blue), 1.0 ); in loopback_Color3us_f()
180 COLORF( USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]), in loopback_Color3usv_f()
181 USHORT_TO_FLOAT(v[2]), 1.0 ); in loopback_Color3usv_f()
232 COLORF( USHORT_TO_FLOAT(red), USHORT_TO_FLOAT(green), in loopback_Color4us_f()
233 USHORT_TO_FLOAT(blue), USHORT_TO_FLOAT(alpha) ); in loopback_Color4us_f()
284 COLORF( USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]), in loopback_Color4usv_f()
285 USHORT_TO_FLOAT(v[2]), USHORT_TO_FLOAT(v[3]) ); in loopback_Color4usv_f()
982 SECONDARYCOLORF(USHORT_TO_FLOAT(red), in loopback_SecondaryColor3usEXT_f()
983 USHORT_TO_FLOAT(green), in loopback_SecondaryColor3usEXT_f()
[all …]
Dimage.c530 dst4[i][RCOMP] = USHORT_TO_FLOAT(src2[i][RCOMP]); in _mesa_convert_colors()
531 dst4[i][GCOMP] = USHORT_TO_FLOAT(src2[i][GCOMP]); in _mesa_convert_colors()
532 dst4[i][BCOMP] = USHORT_TO_FLOAT(src2[i][BCOMP]); in _mesa_convert_colors()
533 dst4[i][ACOMP] = USHORT_TO_FLOAT(src2[i][ACOMP]); in _mesa_convert_colors()
Dformat_unpack.c360 dst[i][BCOMP] = USHORT_TO_FLOAT( s[i] & 0xffff ); in unpack_AL1616()
361 dst[i][ACOMP] = USHORT_TO_FLOAT( s[i] >> 16 ); in unpack_AL1616()
373 dst[i][BCOMP] = USHORT_TO_FLOAT( s[i] >> 16 ); in unpack_AL1616_REV()
374 dst[i][ACOMP] = USHORT_TO_FLOAT( s[i] & 0xffff ); in unpack_AL1616_REV()
414 dst[i][ACOMP] = USHORT_TO_FLOAT(s[i]); in unpack_A16()
439 dst[i][BCOMP] = USHORT_TO_FLOAT(s[i]); in unpack_L16()
466 dst[i][ACOMP] = USHORT_TO_FLOAT(s[i]); in unpack_I16()
565 dst[i][RCOMP] = USHORT_TO_FLOAT(s[i]); in unpack_R16()
578 dst[i][RCOMP] = USHORT_TO_FLOAT( s[i] & 0xffff ); in unpack_RG1616()
579 dst[i][GCOMP] = USHORT_TO_FLOAT( s[i] >> 16 ); in unpack_RG1616()
[all …]
Dmacros.h68 #define USHORT_TO_FLOAT(S) ((GLfloat) (S) * (1.0F / 65535.0F)) macro
Dpixel.c327 fvalues[i] = USHORT_TO_FLOAT( values[i] ); in _mesa_PixelMapusv()
Dpack.c3262 PROCESS(rSrc, RCOMP, 0.0F, 0, GLushort, USHORT_TO_FLOAT); in extract_float_rgba()
3263 PROCESS(gSrc, GCOMP, 0.0F, 0, GLushort, USHORT_TO_FLOAT); in extract_float_rgba()
3264 PROCESS(bSrc, BCOMP, 0.0F, 0, GLushort, USHORT_TO_FLOAT); in extract_float_rgba()
3265 PROCESS(aSrc, ACOMP, 1.0F, 0xffff, GLushort, USHORT_TO_FLOAT); in extract_float_rgba()
5503 DEPTH_VALUES(GLushort, USHORT_TO_FLOAT); in _mesa_unpack_depth_span()
Ddlist.c3233 fvalues[i] = USHORT_TO_FLOAT(values[i]); in save_PixelMapusv()
/external/mesa3d/src/mesa/swrast/
Ds_texfetch_tmp.h775 texel[RCOMP] = USHORT_TO_FLOAT(s); in FETCH()
807 texel[RCOMP] = USHORT_TO_FLOAT( s & 0xffff ); in FETCH()
808 texel[GCOMP] = USHORT_TO_FLOAT( s >> 16 ); in FETCH()
823 texel[RCOMP] = USHORT_TO_FLOAT( s >> 16 ); in FETCH()
824 texel[GCOMP] = USHORT_TO_FLOAT( s & 0xffff ); in FETCH()
841 texel[BCOMP] = USHORT_TO_FLOAT( s & 0xffff ); in FETCH()
842 texel[ACOMP] = USHORT_TO_FLOAT( s >> 16 ); in FETCH()
857 texel[BCOMP] = USHORT_TO_FLOAT( s >> 16 ); in FETCH()
858 texel[ACOMP] = USHORT_TO_FLOAT( s & 0xffff ); in FETCH()
907 texel[ACOMP] = USHORT_TO_FLOAT( src[0] ); in FETCH()
[all …]
Ds_blend.c865 rgbaF[i][RCOMP] = USHORT_TO_FLOAT(rgba[i][RCOMP]); in blend_general()
866 rgbaF[i][GCOMP] = USHORT_TO_FLOAT(rgba[i][GCOMP]); in blend_general()
867 rgbaF[i][BCOMP] = USHORT_TO_FLOAT(rgba[i][BCOMP]); in blend_general()
868 rgbaF[i][ACOMP] = USHORT_TO_FLOAT(rgba[i][ACOMP]); in blend_general()
869 destF[i][RCOMP] = USHORT_TO_FLOAT(dest[i][RCOMP]); in blend_general()
870 destF[i][GCOMP] = USHORT_TO_FLOAT(dest[i][GCOMP]); in blend_general()
871 destF[i][BCOMP] = USHORT_TO_FLOAT(dest[i][BCOMP]); in blend_general()
872 destF[i][ACOMP] = USHORT_TO_FLOAT(dest[i][ACOMP]); in blend_general()
/external/mesa3d/src/mesa/math/
Dm_translate.c281 #define TRX_3FN(f,n) USHORT_TO_FLOAT( PTR_ELT(f,n) )
283 #define TRX_4FN(f,n) USHORT_TO_FLOAT( PTR_ELT(f,n) )
/external/mesa3d/src/mesa/tnl/
Dt_draw.c201 CONVERT(GLushort, USHORT_TO_FLOAT); in _tnl_import_array()