Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_generic.c120 #define TO_8_UNORM(x) ((unsigned char) (x * 255.0f)) macro
198 ATTRIB( R8G8B8A8_UNORM, 4, float, ubyte, TO_8_UNORM )
199 ATTRIB( R8G8B8_UNORM, 3, float, ubyte, TO_8_UNORM )
200 ATTRIB( R8G8_UNORM, 2, float, ubyte, TO_8_UNORM )
201 ATTRIB( R8_UNORM, 1, float, ubyte, TO_8_UNORM )
243 out[0] = TO_8_UNORM(in[3]); in emit_A8R8G8B8_UNORM()
244 out[1] = TO_8_UNORM(in[0]); in emit_A8R8G8B8_UNORM()
245 out[2] = TO_8_UNORM(in[1]); in emit_A8R8G8B8_UNORM()
246 out[3] = TO_8_UNORM(in[2]); in emit_A8R8G8B8_UNORM()
254 out[2] = TO_8_UNORM(in[0]); in emit_B8G8R8A8_UNORM()
[all …]