Lines Matching refs:FRAG_ATTRIB_WPOS
156 v0->attrib[FRAG_ATTRIB_WPOS][0],
157 v0->attrib[FRAG_ATTRIB_WPOS][1],
158 v0->attrib[FRAG_ATTRIB_WPOS][2]);
160 v1->attrib[FRAG_ATTRIB_WPOS][0],
161 v1->attrib[FRAG_ATTRIB_WPOS][1],
162 v1->attrib[FRAG_ATTRIB_WPOS][2]);
164 v2->attrib[FRAG_ATTRIB_WPOS][0],
165 v2->attrib[FRAG_ATTRIB_WPOS][1],
166 v2->attrib[FRAG_ATTRIB_WPOS][2]);
173 const GLfixed fy0 = FloatToFixed(v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) & snapMask;
174 const GLfixed fy1 = FloatToFixed(v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) & snapMask;
175 const GLfixed fy2 = FloatToFixed(v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) & snapMask;
215 vMin_fx = FloatToFixed(vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) & snapMask;
216 vMid_fx = FloatToFixed(vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) & snapMask;
217 vMax_fx = FloatToFixed(vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) & snapMask;
336 GLfloat eMaj_dz = vMax->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
337 GLfloat eBot_dz = vMid->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
338 span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz);
339 if (span.attrStepX[FRAG_ATTRIB_WPOS][2] > maxDepth ||
340 span.attrStepX[FRAG_ATTRIB_WPOS][2] < -maxDepth) {
342 span.attrStepX[FRAG_ATTRIB_WPOS][2] = 0.0;
343 span.attrStepY[FRAG_ATTRIB_WPOS][2] = 0.0;
346 span.attrStepY[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj.dx * eBot_dz - eMaj_dz * eBot.dx);
349 span.zStep = SignedFloatToFixed(span.attrStepX[FRAG_ATTRIB_WPOS][2]);
351 span.zStep = (GLint) span.attrStepX[FRAG_ATTRIB_WPOS][2];
413 /* attrib[FRAG_ATTRIB_WPOS][3] is 1/W */
414 const GLfloat wMax = vMax->attrib[FRAG_ATTRIB_WPOS][3];
415 const GLfloat wMin = vMin->attrib[FRAG_ATTRIB_WPOS][3];
416 const GLfloat wMid = vMid->attrib[FRAG_ATTRIB_WPOS][3];
420 span.attrStepX[FRAG_ATTRIB_WPOS][3] = oneOverArea * (eMaj_dw * eBot.dy - eMaj.dy * eBot_dw);
421 span.attrStepY[FRAG_ATTRIB_WPOS][3] = oneOverArea * (eMaj.dx * eBot_dw - eMaj_dw * eBot.dx);
612 GLfloat z0 = vLower->attrib[FRAG_ATTRIB_WPOS][2];
616 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * adjx
617 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * adjy) + FIXED_HALF;
622 fdzOuter = SignedFloatToFixed(span.attrStepY[FRAG_ATTRIB_WPOS][2] +
623 dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]);
627 zLeft = (GLuint) (z0 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * FixedToFloat(adjx)
628 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * FixedToFloat(adjy));
629 fdzOuter = (GLint) (span.attrStepY[FRAG_ATTRIB_WPOS][2] +
630 dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]);
696 const GLuint attr = FRAG_ATTRIB_WPOS;
697 wLeft = vLower->attrib[FRAG_ATTRIB_WPOS][3]
703 const GLfloat invW = vLower->attrib[FRAG_ATTRIB_WPOS][3];
758 dwInner = dwOuter + span.attrStepX[FRAG_ATTRIB_WPOS][3];
794 span.attrStart[FRAG_ATTRIB_WPOS][3] = wLeft;