Home
last modified time | relevance | path

Searched refs:CHAN_TO_FLOAT (Results 1 – 6 of 6) sorted by relevance

/external/mesa3d/src/mesa/swrast/
Ds_lines.c174 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()
181 rSum = CHAN_TO_FLOAT(ncv1->color[0]) + ncv1->attrib[VARYING_SLOT_COL1][0]; 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()
183 bSum = CHAN_TO_FLOAT(ncv1->color[2]) + ncv1->attrib[VARYING_SLOT_COL1][2]; in _swrast_add_spec_terms_line()
Ds_chan.h75 #define CHAN_TO_FLOAT(c) UBYTE_TO_FLOAT(c) macro
87 #define CHAN_TO_FLOAT(c) ((GLfloat) ((c) * (1.0 / CHAN_MAXF))) macro
99 #define CHAN_TO_FLOAT(c) (c) macro
Ds_texcombine.c122 rgba[i][RCOMP] = CHAN_TO_FLOAT(rgbaChan[i][RCOMP]); in texture_combine()
123 rgba[i][GCOMP] = CHAN_TO_FLOAT(rgbaChan[i][GCOMP]); in texture_combine()
124 rgba[i][BCOMP] = CHAN_TO_FLOAT(rgbaChan[i][BCOMP]); in texture_combine()
125 rgba[i][ACOMP] = CHAN_TO_FLOAT(rgbaChan[i][ACOMP]); in texture_combine()
640 primary_rgba[i][RCOMP] = CHAN_TO_FLOAT(span->array->rgba[i][RCOMP]); in _swrast_texture_span()
641 primary_rgba[i][GCOMP] = CHAN_TO_FLOAT(span->array->rgba[i][GCOMP]); in _swrast_texture_span()
642 primary_rgba[i][BCOMP] = CHAN_TO_FLOAT(span->array->rgba[i][BCOMP]); in _swrast_texture_span()
643 primary_rgba[i][ACOMP] = CHAN_TO_FLOAT(span->array->rgba[i][ACOMP]); in _swrast_texture_span()
Ds_triangle.c943 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()
950 rSum = CHAN_TO_FLOAT(ncv1->color[0]) + ncv1->attrib[VARYING_SLOT_COL1][0]; 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()
952 bSum = CHAN_TO_FLOAT(ncv1->color[2]) + ncv1->attrib[VARYING_SLOT_COL1][2]; in _swrast_add_spec_terms_triangle()
957 rSum = CHAN_TO_FLOAT(ncv2->color[0]) + ncv2->attrib[VARYING_SLOT_COL1][0]; 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()
959 bSum = CHAN_TO_FLOAT(ncv2->color[2]) + ncv2->attrib[VARYING_SLOT_COL1][2]; in _swrast_add_spec_terms_triangle()
Ds_points.c524 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()
/external/mesa3d/src/mesa/tnl/
Dt_vertex_generic.c685 out[0] = CHAN_TO_FLOAT(c[0]); in extract_4chan_4f_rgba()
686 out[1] = CHAN_TO_FLOAT(c[1]); in extract_4chan_4f_rgba()
687 out[2] = CHAN_TO_FLOAT(c[2]); in extract_4chan_4f_rgba()
688 out[3] = CHAN_TO_FLOAT(c[3]); in extract_4chan_4f_rgba()