Home
last modified time | relevance | path

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

/external/mesa3d/src/mesa/main/
Daccum.c155 const GLshort clearR = FLOAT_TO_SHORT(ctx->Accum.ClearColor[0]); in _mesa_clear_accum_buffer()
156 const GLshort clearG = FLOAT_TO_SHORT(ctx->Accum.ClearColor[1]); in _mesa_clear_accum_buffer()
157 const GLshort clearB = FLOAT_TO_SHORT(ctx->Accum.ClearColor[2]); in _mesa_clear_accum_buffer()
158 const GLshort clearA = FLOAT_TO_SHORT(ctx->Accum.ClearColor[3]); in _mesa_clear_accum_buffer()
Dformat_pack.c1502 *d = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_R16()
1514 GLshort r = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_GR1616()
1515 GLshort g = FLOAT_TO_SHORT(CLAMP(src[GCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_GR1616()
1528 d[0] = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGB_16()
1529 d[1] = FLOAT_TO_SHORT(CLAMP(src[GCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGB_16()
1530 d[2] = FLOAT_TO_SHORT(CLAMP(src[BCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGB_16()
1542 d[0] = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGBA_16()
1543 d[1] = FLOAT_TO_SHORT(CLAMP(src[GCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGBA_16()
1544 d[2] = FLOAT_TO_SHORT(CLAMP(src[BCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGBA_16()
1545 d[3] = FLOAT_TO_SHORT(CLAMP(src[ACOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGBA_16()
[all …]
Dpack.c1806 dst[i] = FLOAT_TO_SHORT(rgba[i][RCOMP]); in _mesa_pack_rgba_span_float()
1810 dst[i] = FLOAT_TO_SHORT(rgba[i][GCOMP]); in _mesa_pack_rgba_span_float()
1814 dst[i] = FLOAT_TO_SHORT(rgba[i][BCOMP]); in _mesa_pack_rgba_span_float()
1818 dst[i] = FLOAT_TO_SHORT(rgba[i][ACOMP]); in _mesa_pack_rgba_span_float()
1822 dst[i] = FLOAT_TO_SHORT(luminance[i]); in _mesa_pack_rgba_span_float()
1826 dst[i*2+0] = FLOAT_TO_SHORT(luminance[i]); in _mesa_pack_rgba_span_float()
1827 dst[i*2+1] = FLOAT_TO_SHORT(rgba[i][ACOMP]); in _mesa_pack_rgba_span_float()
1832 dst[i*2+0] = FLOAT_TO_SHORT(rgba[i][RCOMP]); in _mesa_pack_rgba_span_float()
1833 dst[i*2+1] = FLOAT_TO_SHORT(rgba[i][GCOMP]); in _mesa_pack_rgba_span_float()
1838 dst[i*3+0] = FLOAT_TO_SHORT(rgba[i][RCOMP]); in _mesa_pack_rgba_span_float()
[all …]
Dmacros.h78 #define FLOAT_TO_SHORT(X) ( (((GLint) (65535.0F * (X))) - 1) / 2 ) macro