Home
last modified time | relevance | path

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

/third_party/mesa3d/src/mesa/swrast/
Ds_context.h437 #define FloatToFixed(X) (lroundf((X) * FIXED_SCALE)) macro
445 #define PosFloatToFixed(X) FloatToFixed(X)
446 #define SignedFloatToFixed(X) FloatToFixed(X)
Ds_triangle.c565 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \
566 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \
567 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \
568 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \
645 const GLfixed s_fix = FloatToFixed(s_tmp) - FIXED_HALF; \ in fast_persp_span()
646 const GLfixed t_fix = FloatToFixed(t_tmp) - FIXED_HALF; \ in fast_persp_span()
831 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \
832 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \
833 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \
834 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \
Ds_tritemp.h179 const GLfixed fy0 = FloatToFixed(v0->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask; in NAME()
180 const GLfixed fy1 = FloatToFixed(v1->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask; in NAME()
181 const GLfixed fy2 = FloatToFixed(v2->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask; in NAME()
221 vMin_fx = FloatToFixed(vMin->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask; in NAME()
222 vMid_fx = FloatToFixed(vMid->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask; in NAME()
223 vMax_fx = FloatToFixed(vMax->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask; in NAME()
Ds_linetemp.h248 span.z = FloatToFixed(vert0->attrib[VARYING_SLOT_POS][2]) + FIXED_HALF; in NAME()
249 span.zStep = FloatToFixed( vert1->attrib[VARYING_SLOT_POS][2] in NAME()
Ds_points.c95 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F); in sprite_point()
245 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F); in smooth_point()
365 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F); in large_point()
Ds_span.c75 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F); in _swrast_span_default_attribs()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DContext_gles_1_0.cpp193 equation[i] = FloatToFixed(equationf[i]); in getClipPlanex()
214 params[i] = FloatToFixed(paramsf[i]); in getLightxv()
230 params[i] = FloatToFixed(paramsf[i]); in getMaterialxv()
Dqueryutils.cpp2459 output[0] = FloatToFixed(input[0]); in ConvertTextureEnvToFixed()
2464 output[i] = FloatToFixed(input[i]); in ConvertTextureEnvToFixed()
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dmathutil.h463 inline uint32_t FloatToFixed(float floatInput) in FloatToFixed() function