Home
last modified time | relevance | path

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

/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv10_state_raster.c44 PUSH_DATA (push, FLOAT_TO_UBYTE(ctx->Color.AlphaRef)); in nv10_emit_alpha_func()
53 PUSH_DATA (push, FLOAT_TO_UBYTE(ctx->Color.BlendColor[3]) << 24 | in nv10_emit_blend_color()
54 FLOAT_TO_UBYTE(ctx->Color.BlendColor[0]) << 16 | in nv10_emit_blend_color()
55 FLOAT_TO_UBYTE(ctx->Color.BlendColor[1]) << 8 | in nv10_emit_blend_color()
56 FLOAT_TO_UBYTE(ctx->Color.BlendColor[2]) << 0); in nv10_emit_blend_color()
Dnouveau_util.h75 FLOAT_TO_UBYTE(c[RCOMP]), in pack_rgba_f()
76 FLOAT_TO_UBYTE(c[GCOMP]), in pack_rgba_f()
77 FLOAT_TO_UBYTE(c[BCOMP]), in pack_rgba_f()
78 FLOAT_TO_UBYTE(c[ACOMP]) }); in pack_rgba_f()
Dnv04_state_raster.c160 FLOAT_TO_UBYTE(ctx->Color.AlphaRef); in nv04_emit_control()
/external/mesa3d/src/mesa/swrast/
Ds_chan.h95 #define CHAN_TO_UBYTE(c) FLOAT_TO_UBYTE(c)
/external/mesa3d/src/mesa/main/
Dpack.c1335 dst[i] = FLOAT_TO_UBYTE(rgba[i][RCOMP]); in _mesa_pack_rgba_span_float()
1339 dst[i] = FLOAT_TO_UBYTE(rgba[i][GCOMP]); in _mesa_pack_rgba_span_float()
1343 dst[i] = FLOAT_TO_UBYTE(rgba[i][BCOMP]); in _mesa_pack_rgba_span_float()
1347 dst[i] = FLOAT_TO_UBYTE(rgba[i][ACOMP]); in _mesa_pack_rgba_span_float()
1351 dst[i] = FLOAT_TO_UBYTE(luminance[i]); in _mesa_pack_rgba_span_float()
1355 dst[i*2+0] = FLOAT_TO_UBYTE(luminance[i]); in _mesa_pack_rgba_span_float()
1356 dst[i*2+1] = FLOAT_TO_UBYTE(rgba[i][ACOMP]); in _mesa_pack_rgba_span_float()
1361 dst[i*2+0] = FLOAT_TO_UBYTE(rgba[i][RCOMP]); in _mesa_pack_rgba_span_float()
1362 dst[i*2+1] = FLOAT_TO_UBYTE(rgba[i][GCOMP]); in _mesa_pack_rgba_span_float()
1367 dst[i*3+0] = FLOAT_TO_UBYTE(rgba[i][RCOMP]); in _mesa_pack_rgba_span_float()
[all …]
Dmacros.h47 #define FLOAT_TO_UBYTE(X) ((GLubyte) (GLint) ((X) * 255.0F)) macro
Dformat_pack.c78 GLubyte res = FLOAT_TO_UBYTE(linear_to_srgb(cl)); in linear_float_to_srgb_ubyte()
86 GLubyte res = FLOAT_TO_UBYTE(linear_to_srgb(cl / 255.0f)); in linear_ubyte_to_srgb_ubyte()