Searched refs:FloatToFixed (Results 1 - 12 of 12) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/mesa/swrast/
H A Ds_context.h436 #define FloatToFixed(X) (IROUND((X) * FIXED_SCALE)) macro
444 #define PosFloatToFixed(X) FloatToFixed(X)
445 #define SignedFloatToFixed(X) FloatToFixed(X)
H A 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; \
646 const GLfixed t_fix = FloatToFixed(t_tmp) - FIXED_HALF; \
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(uni
[all...]
H A Ds_linetemp.h248 span.z = FloatToFixed(vert0->attrib[VARYING_SLOT_POS][2]) + FIXED_HALF;
249 span.zStep = FloatToFixed( vert1->attrib[VARYING_SLOT_POS][2]
H A Ds_tritemp.h178 const GLfixed fy0 = FloatToFixed(v0->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask;
179 const GLfixed fy1 = FloatToFixed(v1->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask;
180 const GLfixed fy2 = FloatToFixed(v2->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask;
220 vMin_fx = FloatToFixed(vMin->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask;
221 vMid_fx = FloatToFixed(vMid->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask;
222 vMax_fx = FloatToFixed(vMax->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask;
H A Ds_points.c95 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F);
252 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F);
372 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F);
H A Ds_span.c75 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F);
/xsrc/external/mit/MesaLib/dist/src/mesa/swrast/
H A Ds_context.h437 #define FloatToFixed(X) (lroundf((X) * FIXED_SCALE)) macro
445 #define PosFloatToFixed(X) FloatToFixed(X)
446 #define SignedFloatToFixed(X) FloatToFixed(X)
H A 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; \
646 const GLfixed t_fix = FloatToFixed(t_tmp) - FIXED_HALF; \
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(uni
[all...]
H A Ds_linetemp.h248 span.z = FloatToFixed(vert0->attrib[VARYING_SLOT_POS][2]) + FIXED_HALF;
249 span.zStep = FloatToFixed( vert1->attrib[VARYING_SLOT_POS][2]
H A Ds_tritemp.h179 const GLfixed fy0 = FloatToFixed(v0->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask;
180 const GLfixed fy1 = FloatToFixed(v1->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask;
181 const GLfixed fy2 = FloatToFixed(v2->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask;
221 vMin_fx = FloatToFixed(vMin->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask;
222 vMid_fx = FloatToFixed(vMid->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask;
223 vMax_fx = FloatToFixed(vMax->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask;
H A Ds_points.c95 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F);
245 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F);
365 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F);
H A Ds_span.c75 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F);

Completed in 19 milliseconds