Home
last modified time | relevance | path

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

/external/mesa3d/src/mesa/swrast/
Ds_lines.c166 SWvertex *ncv0 = (SWvertex *)v0; in _swrast_add_spec_terms_line() local
172 COPY_CHAN4(cSave[0], ncv0->color); in _swrast_add_spec_terms_line()
175 rSum = CHAN_TO_FLOAT(ncv0->color[0]) + ncv0->attrib[FRAG_ATTRIB_COL1][0]; in _swrast_add_spec_terms_line()
176 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[FRAG_ATTRIB_COL1][1]; in _swrast_add_spec_terms_line()
177 bSum = CHAN_TO_FLOAT(ncv0->color[2]) + ncv0->attrib[FRAG_ATTRIB_COL1][2]; in _swrast_add_spec_terms_line()
178 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[0], rSum); in _swrast_add_spec_terms_line()
179 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[1], gSum); in _swrast_add_spec_terms_line()
180 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[2], bSum); in _swrast_add_spec_terms_line()
189 SWRAST_CONTEXT(ctx)->SpecLine( ctx, ncv0, ncv1 ); in _swrast_add_spec_terms_line()
191 COPY_CHAN4(ncv0->color, cSave[0]); in _swrast_add_spec_terms_line()
Ds_points.c518 SWvertex *ncv0 = (SWvertex *) v0; /* cast away const */ in _swrast_add_spec_terms_point() local
523 COPY_CHAN4(cSave, ncv0->color); in _swrast_add_spec_terms_point()
525 rSum = CHAN_TO_FLOAT(ncv0->color[0]) + ncv0->attrib[FRAG_ATTRIB_COL1][0]; in _swrast_add_spec_terms_point()
526 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[FRAG_ATTRIB_COL1][1]; in _swrast_add_spec_terms_point()
527 bSum = CHAN_TO_FLOAT(ncv0->color[2]) + ncv0->attrib[FRAG_ATTRIB_COL1][2]; in _swrast_add_spec_terms_point()
528 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[0], rSum); in _swrast_add_spec_terms_point()
529 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[1], gSum); in _swrast_add_spec_terms_point()
530 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[2], bSum); in _swrast_add_spec_terms_point()
532 SWRAST_CONTEXT(ctx)->SpecPoint(ctx, ncv0); in _swrast_add_spec_terms_point()
534 COPY_CHAN4(ncv0->color, cSave); in _swrast_add_spec_terms_point()
Ds_triangle.c931 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[FRAG_ATTRIB_COL1][0]; in _swrast_add_spec_terms_triangle()
943 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[FRAG_ATTRIB_COL1][1]; in _swrast_add_spec_terms_triangle()
944 bSum = CHAN_TO_FLOAT(ncv0->color[2]) + ncv0->attrib[FRAG_ATTRIB_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()