Lines Matching refs:GLfixed
67 * This code uses fixed point arithmetic (the GLfixed type) to iterate
70 * GLfixed and the value of SUB_PIXEL_BITS has a direct bearing on the
76 * GLfixed to walk the edge without error. If the maximum viewport
79 * Historically, Mesa has used 11 fractional bits in GLfixed, snaps
84 * fractional bits in GLfixed. Unfortunately, there may be some issues
105 GLfixed endVal = span.CHANNEL + (LEN) * span.CHANNELSTEP; \
125 GLfixed fdxdy; /* dx/dy in fixed-point */
127 GLfixed fsx; /* first sample point x coord */
128 GLfixed fsy;
129 GLfixed fx0; /* fixed pt X of lower endpoint */
145 GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
178 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;
263 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy);
276 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy);
286 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy);
495 GLfixed fxLeftEdge = 0, fxRightEdge = 0;
496 GLfixed fdxLeftEdge = 0, fdxRightEdge = 0;
497 GLfixed fError = 0, fdError = 0;
510 GLfixed fdzOuter = 0, fdzInner;
521 GLfixed sLeft=0, dsOuter=0, dsInner;
522 GLfixed tLeft=0, dtOuter=0, dtInner;
574 const GLfixed fsy = eLeft->fsy;
575 const GLfixed fsx = eLeft->fsx; /* no fractional part */
576 const GLfixed fx = FixedCeil(fsx); /* no fractional part */
577 const GLfixed adjx = (GLfixed) (fx - eLeft->fx0); /* SCALED! */
578 const GLfixed adjy = (GLfixed) eLeft->adjy; /* SCALED! */
581 GLfixed fdxOuter;
624 zLeft = (GLfixed) tmp;
687 sLeft = (GLfixed)(s0 * FIXED_SCALE + span.attrStepX[VARYING_SLOT_TEX0][0] * adjx
693 tLeft = (GLfixed)(t0 * FIXED_SCALE + span.attrStepX[VARYING_SLOT_TEX0][1] * adjx