Home
last modified time | relevance | path

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

/external/mesa3d/src/mesa/swrast/
Ds_lines.c167 GLfloat rSum, gSum, bSum; in _swrast_add_spec_terms_line() local
175 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_line()
178 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[1], gSum); in _swrast_add_spec_terms_line()
182 gSum = CHAN_TO_FLOAT(ncv1->color[1]) + ncv1->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_line()
185 UNCLAMPED_FLOAT_TO_CHAN(ncv1->color[1], gSum); in _swrast_add_spec_terms_line()
Ds_triangle.c339 GLint gSum = FixedToInt(span->green) + (GLint) sample[GCOMP]; \ in affine_span()
342 dest[GCOMP] = MIN2(gSum, CHAN_MAX); \ in affine_span()
935 GLfloat rSum, gSum, bSum; in _swrast_add_spec_terms_triangle() local
944 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_triangle()
947 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[1], gSum); in _swrast_add_spec_terms_triangle()
951 gSum = CHAN_TO_FLOAT(ncv1->color[1]) + ncv1->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_triangle()
954 UNCLAMPED_FLOAT_TO_CHAN(ncv1->color[1], gSum); in _swrast_add_spec_terms_triangle()
958 gSum = CHAN_TO_FLOAT(ncv2->color[1]) + ncv2->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_triangle()
961 UNCLAMPED_FLOAT_TO_CHAN(ncv2->color[1], gSum); in _swrast_add_spec_terms_triangle()
Ds_points.c518 GLfloat rSum, gSum, bSum; in _swrast_add_spec_terms_point() local
525 gSum = CHAN_TO_FLOAT(ncv0->color[1]) + ncv0->attrib[VARYING_SLOT_COL1][1]; in _swrast_add_spec_terms_point()
528 UNCLAMPED_FLOAT_TO_CHAN(ncv0->color[1], gSum); in _swrast_add_spec_terms_point()