Searched refs:ncv0 (Results 1 – 3 of 3) sorted by relevance
/external/mesa3d/src/mesa/swrast/ |
D | s_lines.c | 165 SWvertex *ncv0 = (SWvertex *)v0; in _swrast_add_spec_terms_line() local 171 COPY_CHAN4(cSave[0], ncv0->color); in _swrast_add_spec_terms_line() 174 rSum = CHAN_TO_FLOAT(ncv0->color[0]) + ncv0->attrib[VARYING_SLOT_COL1][0]; in _swrast_add_spec_terms_line() 175 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_line() 176 bSum = CHAN_TO_FLOAT(ncv0->color[2]) + ncv0->attrib[VARYING_SLOT_COL1][2]; in _swrast_add_spec_terms_line() 177 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[0], rSum); in _swrast_add_spec_terms_line() 178 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[1], gSum); in _swrast_add_spec_terms_line() 179 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[2], bSum); in _swrast_add_spec_terms_line() 188 SWRAST_CONTEXT(ctx)->SpecLine( ctx, ncv0, ncv1 ); in _swrast_add_spec_terms_line() 190 COPY_CHAN4(ncv0->color, cSave[0]); in _swrast_add_spec_terms_line()
|
D | s_points.c | 517 SWvertex *ncv0 = (SWvertex *) v0; /* cast away const */ in _swrast_add_spec_terms_point() local 522 COPY_CHAN4(cSave, ncv0->color); in _swrast_add_spec_terms_point() 524 rSum = CHAN_TO_FLOAT(ncv0->color[0]) + ncv0->attrib[VARYING_SLOT_COL1][0]; in _swrast_add_spec_terms_point() 525 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_point() 526 bSum = CHAN_TO_FLOAT(ncv0->color[2]) + ncv0->attrib[VARYING_SLOT_COL1][2]; in _swrast_add_spec_terms_point() 527 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[0], rSum); in _swrast_add_spec_terms_point() 528 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[1], gSum); in _swrast_add_spec_terms_point() 529 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[2], bSum); in _swrast_add_spec_terms_point() 531 SWRAST_CONTEXT(ctx)->SpecPoint(ctx, ncv0); in _swrast_add_spec_terms_point() 533 COPY_CHAN4(ncv0->color, cSave); in _swrast_add_spec_terms_point()
|
D | s_triangle.c | 931 SWvertex *ncv0 = (SWvertex *)v0; /* drop const qualifier */ in _swrast_add_spec_terms_triangle() local 938 COPY_CHAN4( cSave[0], ncv0->color ); in _swrast_add_spec_terms_triangle() 942 rSum = CHAN_TO_FLOAT(ncv0->color[0]) + ncv0->attrib[VARYING_SLOT_COL1][0]; in _swrast_add_spec_terms_triangle() 943 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_triangle() 944 bSum = CHAN_TO_FLOAT(ncv0->color[2]) + ncv0->attrib[VARYING_SLOT_COL1][2]; in _swrast_add_spec_terms_triangle() 945 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[0], rSum); in _swrast_add_spec_terms_triangle() 946 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[1], gSum); in _swrast_add_spec_terms_triangle() 947 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[2], bSum); in _swrast_add_spec_terms_triangle() 963 SWRAST_CONTEXT(ctx)->SpecTriangle( ctx, ncv0, ncv1, ncv2 ); in _swrast_add_spec_terms_triangle() 965 COPY_CHAN4( ncv0->color, cSave[0] ); in _swrast_add_spec_terms_triangle()
|