Home
last modified time | relevance | path

Searched refs:BYTE_TO_FLOAT (Results 1 – 7 of 7) sorted by relevance

/external/mesa3d/src/mesa/main/
Dapi_loopback.c95 COLORF( BYTE_TO_FLOAT(red), in loopback_Color3b_f()
96 BYTE_TO_FLOAT(green), in loopback_Color3b_f()
97 BYTE_TO_FLOAT(blue), in loopback_Color3b_f()
146 COLORF( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), in loopback_Color3bv_f()
147 BYTE_TO_FLOAT(v[2]), 1.0 ); in loopback_Color3bv_f()
196 COLORF( BYTE_TO_FLOAT(red), BYTE_TO_FLOAT(green), in loopback_Color4b_f()
197 BYTE_TO_FLOAT(blue), BYTE_TO_FLOAT(alpha) ); in loopback_Color4b_f()
255 COLORF( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), in loopback_Color4bv_f()
256 BYTE_TO_FLOAT(v[2]), BYTE_TO_FLOAT(v[3]) ); in loopback_Color4bv_f()
368 NORMAL( BYTE_TO_FLOAT(nx), BYTE_TO_FLOAT(ny), BYTE_TO_FLOAT(nz) ); in loopback_Normal3b()
[all …]
Dapi_arrayelt.c181 CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]))); in VertexAttrib1NbvNV()
193 CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]))); in VertexAttrib2NbvNV()
205 CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]), in VertexAttrib3NbvNV()
206 BYTE_TO_FLOAT(v[1]), in VertexAttrib3NbvNV()
207 BYTE_TO_FLOAT(v[2]))); in VertexAttrib3NbvNV()
219 CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]), in VertexAttrib4NbvNV()
220 BYTE_TO_FLOAT(v[1]), in VertexAttrib4NbvNV()
221 BYTE_TO_FLOAT(v[2]), in VertexAttrib4NbvNV()
222 BYTE_TO_FLOAT(v[3]))); in VertexAttrib4NbvNV()
686 CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]))); in VertexAttrib1NbvARB()
[all …]
Dmacros.h51 #define BYTE_TO_FLOAT(B) ((2.0F * (B) + 1.0F) * (1.0F/255.0F)) macro
58 #define BYTE_TO_FLOATZ(B) ((B) == 0 ? 0.0F : BYTE_TO_FLOAT(B))
Dformat_unpack.c1148 dst[i][RCOMP] = BYTE_TO_FLOAT(s[i*2+0]); in unpack_DUDV8()
1149 dst[i][GCOMP] = BYTE_TO_FLOAT(s[i*2+1]); in unpack_DUDV8()
/external/mesa3d/src/mesa/math/
Dm_translate.c122 #define TRX_3FN(f,n) BYTE_TO_FLOAT( PTR_ELT(f,n) )
124 #define TRX_4F(f,n) BYTE_TO_FLOAT( PTR_ELT(f,n) )
128 #define TRX_4FN(f,n) BYTE_TO_FLOAT( PTR_ELT(f,n) )
/external/mesa3d/src/mesa/tnl/
Dt_draw.c186 CONVERT(GLbyte, BYTE_TO_FLOAT); in _tnl_import_array()
/external/mesa3d/src/mesa/swrast/
Ds_texfetch_tmp.h1148 texel[RCOMP] = BYTE_TO_FLOAT(src[0]); in FETCH()
1149 texel[GCOMP] = BYTE_TO_FLOAT(src[1]); in FETCH()