Home
last modified time | relevance | path

Searched refs:ncv0 (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/mesa/swrast/
Ds_lines.c165 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()
Ds_points.c517 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()
Ds_triangle.c932 SWvertex *ncv0 = (SWvertex *)v0; /* drop const qualifier */ in _swrast_add_spec_terms_triangle() local
939 COPY_CHAN4( cSave[0], ncv0->color ); in _swrast_add_spec_terms_triangle()
943 rSum = CHAN_TO_FLOAT(ncv0->color[0]) + ncv0->attrib[VARYING_SLOT_COL1][0]; in _swrast_add_spec_terms_triangle()
944 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_triangle()
945 bSum = CHAN_TO_FLOAT(ncv0->color[2]) + ncv0->attrib[VARYING_SLOT_COL1][2]; in _swrast_add_spec_terms_triangle()
946 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[0], rSum); in _swrast_add_spec_terms_triangle()
947 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[1], gSum); in _swrast_add_spec_terms_triangle()
948 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[2], bSum); in _swrast_add_spec_terms_triangle()
964 SWRAST_CONTEXT(ctx)->SpecTriangle( ctx, ncv0, ncv1, ncv2 ); in _swrast_add_spec_terms_triangle()
966 COPY_CHAN4( ncv0->color, cSave[0] ); in _swrast_add_spec_terms_triangle()