Home
last modified time | relevance | path

Searched refs:FRAG_ATTRIB_WPOS (Results 1 – 25 of 33) sorted by relevance

12

/external/mesa3d/src/mesa/swrast_setup/
Dss_tritmp.h53 GLfloat ex = v[0]->attrib[FRAG_ATTRIB_WPOS][0] - v[2]->attrib[FRAG_ATTRIB_WPOS][0]; in TAG()
54 GLfloat ey = v[0]->attrib[FRAG_ATTRIB_WPOS][1] - v[2]->attrib[FRAG_ATTRIB_WPOS][1]; in TAG()
55 GLfloat fx = v[1]->attrib[FRAG_ATTRIB_WPOS][0] - v[2]->attrib[FRAG_ATTRIB_WPOS][0]; in TAG()
56 GLfloat fy = v[1]->attrib[FRAG_ATTRIB_WPOS][1] - v[2]->attrib[FRAG_ATTRIB_WPOS][1]; in TAG()
134 z[0] = v[0]->attrib[FRAG_ATTRIB_WPOS][2]; in TAG()
135 z[1] = v[1]->attrib[FRAG_ATTRIB_WPOS][2]; in TAG()
136 z[2] = v[2]->attrib[FRAG_ATTRIB_WPOS][2]; in TAG()
150 oz0 = CLAMP(v[0]->attrib[FRAG_ATTRIB_WPOS][2] + offset, 0.0F, max); in TAG()
151 oz1 = CLAMP(v[1]->attrib[FRAG_ATTRIB_WPOS][2] + offset, 0.0F, max); in TAG()
152 oz2 = CLAMP(v[2]->attrib[FRAG_ATTRIB_WPOS][2] + offset, 0.0F, max); in TAG()
[all …]
Dss_context.c128 EMIT_ATTR( _TNL_ATTRIB_POS, EMIT_4F_VIEWPORT, attrib[FRAG_ATTRIB_WPOS] ); in setup_vertex_format()
274 dest->attrib[FRAG_ATTRIB_WPOS][0] = m[0] * tmp[0] + m[12]; in _swsetup_Translate()
275 dest->attrib[FRAG_ATTRIB_WPOS][1] = m[5] * tmp[1] + m[13]; in _swsetup_Translate()
276 dest->attrib[FRAG_ATTRIB_WPOS][2] = m[10] * tmp[2] + m[14]; in _swsetup_Translate()
277 dest->attrib[FRAG_ATTRIB_WPOS][3] = tmp[3]; in _swsetup_Translate()
/external/mesa3d/src/mesa/swrast/
Ds_aatritemp.h42 const GLfloat *p0 = v0->attrib[FRAG_ATTRIB_WPOS];
43 const GLfloat *p1 = v1->attrib[FRAG_ATTRIB_WPOS];
44 const GLfloat *p2 = v2->attrib[FRAG_ATTRIB_WPOS];
70 GLfloat y0 = v0->attrib[FRAG_ATTRIB_WPOS][1];
71 GLfloat y1 = v1->attrib[FRAG_ATTRIB_WPOS][1];
72 GLfloat y2 = v2->attrib[FRAG_ATTRIB_WPOS][1];
97 majDx = vMax->attrib[FRAG_ATTRIB_WPOS][0] - vMin->attrib[FRAG_ATTRIB_WPOS][0];
98 majDy = vMax->attrib[FRAG_ATTRIB_WPOS][1] - vMin->attrib[FRAG_ATTRIB_WPOS][1];
102 const GLfloat botDx = vMid->attrib[FRAG_ATTRIB_WPOS][0] - vMin->attrib[FRAG_ATTRIB_WPOS][0];
103 const GLfloat botDy = vMid->attrib[FRAG_ATTRIB_WPOS][1] - vMin->attrib[FRAG_ATTRIB_WPOS][1];
[all …]
Ds_linetemp.h71 GLint x0 = (GLint) vert0->attrib[FRAG_ATTRIB_WPOS][0]; in NAME()
72 GLint x1 = (GLint) vert1->attrib[FRAG_ATTRIB_WPOS][0]; in NAME()
73 GLint y0 = (GLint) vert0->attrib[FRAG_ATTRIB_WPOS][1]; in NAME()
74 GLint y1 = (GLint) vert1->attrib[FRAG_ATTRIB_WPOS][1]; in NAME()
102 GLfloat tmp = vert0->attrib[FRAG_ATTRIB_WPOS][0] + vert0->attrib[FRAG_ATTRIB_WPOS][1] in NAME()
103 + vert1->attrib[FRAG_ATTRIB_WPOS][0] + vert1->attrib[FRAG_ATTRIB_WPOS][1]; in NAME()
248 span.z = FloatToFixed(vert0->attrib[FRAG_ATTRIB_WPOS][2]) + FIXED_HALF; in NAME()
249 span.zStep = FloatToFixed( vert1->attrib[FRAG_ATTRIB_WPOS][2] in NAME()
250 - vert0->attrib[FRAG_ATTRIB_WPOS][2]) / numPixels; in NAME()
254 span.z = (GLuint) vert0->attrib[FRAG_ATTRIB_WPOS][2]; in NAME()
[all …]
Ds_points.c40 float tmp = (V)->attrib[FRAG_ATTRIB_WPOS][0] \
41 + (V)->attrib[FRAG_ATTRIB_WPOS][1]; \
96 span.z = FloatToFixed(vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in sprite_point()
98 span.z = (GLuint) (vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in sprite_point()
119 span.attrStart[FRAG_ATTRIB_WPOS][3] = 1.0F; in sprite_point()
120 span.attrStepX[FRAG_ATTRIB_WPOS][3] = 0.0F; in sprite_point()
121 span.attrStepY[FRAG_ATTRIB_WPOS][3] = 0.0F; in sprite_point()
192 const GLfloat x = vert->attrib[FRAG_ATTRIB_WPOS][0]; in sprite_point()
193 const GLfloat y = vert->attrib[FRAG_ATTRIB_WPOS][1]; in sprite_point()
253 span.z = FloatToFixed(vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in smooth_point()
[all …]
Ds_feedback.c43 win[0] = v->attrib[FRAG_ATTRIB_WPOS][0]; in feedback_vertex()
44 win[1] = v->attrib[FRAG_ATTRIB_WPOS][1]; in feedback_vertex()
45 win[2] = v->attrib[FRAG_ATTRIB_WPOS][2] / ctx->DrawBuffer->_DepthMaxF; in feedback_vertex()
46 win[3] = 1.0F / v->attrib[FRAG_ATTRIB_WPOS][3]; in feedback_vertex()
117 _mesa_update_hitflag( ctx, v0->attrib[FRAG_ATTRIB_WPOS][2] * zs ); in _swrast_select_triangle()
118 _mesa_update_hitflag( ctx, v1->attrib[FRAG_ATTRIB_WPOS][2] * zs ); in _swrast_select_triangle()
119 _mesa_update_hitflag( ctx, v2->attrib[FRAG_ATTRIB_WPOS][2] * zs ); in _swrast_select_triangle()
128 _mesa_update_hitflag( ctx, v0->attrib[FRAG_ATTRIB_WPOS][2] * zs ); in _swrast_select_line()
129 _mesa_update_hitflag( ctx, v1->attrib[FRAG_ATTRIB_WPOS][2] * zs ); in _swrast_select_line()
137 _mesa_update_hitflag( ctx, v->attrib[FRAG_ATTRIB_WPOS][2] * zs ); in _swrast_select_point()
Ds_tritemp.h173 const GLfixed fy0 = FloatToFixed(v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) & snapMask; in NAME()
174 const GLfixed fy1 = FloatToFixed(v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) & snapMask; in NAME()
175 const GLfixed fy2 = FloatToFixed(v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) & snapMask; in NAME()
215 vMin_fx = FloatToFixed(vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) & snapMask; in NAME()
216 vMid_fx = FloatToFixed(vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) & snapMask; in NAME()
217 vMax_fx = FloatToFixed(vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) & snapMask; in NAME()
336 GLfloat eMaj_dz = vMax->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2]; in NAME()
337 GLfloat eBot_dz = vMid->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2]; in NAME()
338 … span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz); in NAME()
339 if (span.attrStepX[FRAG_ATTRIB_WPOS][2] > maxDepth || in NAME()
[all …]
Ds_aalinetemp.h115 line.x0 = v0->attrib[FRAG_ATTRIB_WPOS][0]; in NAME()
116 line.y0 = v0->attrib[FRAG_ATTRIB_WPOS][1]; in NAME()
117 line.x1 = v1->attrib[FRAG_ATTRIB_WPOS][0]; in NAME()
118 line.y1 = v1->attrib[FRAG_ATTRIB_WPOS][1]; in NAME()
138 v0->attrib[FRAG_ATTRIB_WPOS][2], v1->attrib[FRAG_ATTRIB_WPOS][2], line.zPlane); in NAME()
159 const GLfloat invW0 = v0->attrib[FRAG_ATTRIB_WPOS][3]; in NAME()
160 const GLfloat invW1 = v1->attrib[FRAG_ATTRIB_WPOS][3]; in NAME()
Ds_zoom.c171 COPY_4V(zoomed.attrStart[FRAG_ATTRIB_WPOS], span->attrStart[FRAG_ATTRIB_WPOS]); in zoom_span()
172 COPY_4V(zoomed.attrStepX[FRAG_ATTRIB_WPOS], span->attrStepX[FRAG_ATTRIB_WPOS]); in zoom_span()
173 COPY_4V(zoomed.attrStepY[FRAG_ATTRIB_WPOS], span->attrStepY[FRAG_ATTRIB_WPOS]); in zoom_span()
Ds_span.c82 span->attrStart[FRAG_ATTRIB_WPOS][3] = 1.0; in _swrast_span_default_attribs()
83 span->attrStepX[FRAG_ATTRIB_WPOS][3] = 0.0; in _swrast_span_default_attribs()
84 span->attrStepY[FRAG_ATTRIB_WPOS][3] = 0.0; in _swrast_span_default_attribs()
184 const GLfloat dwdx = span->attrStepX[FRAG_ATTRIB_WPOS][3]; in interpolate_active_attribs()
185 GLfloat w = span->attrStart[FRAG_ATTRIB_WPOS][3]; in interpolate_active_attribs()
527 const GLfloat dwdx = span->attrStepX[FRAG_ATTRIB_WPOS][3]; in interpolate_texcoords()
528 GLfloat w = span->attrStart[FRAG_ATTRIB_WPOS][3] + span->leftClip * dwdx; in interpolate_texcoords()
568 const GLfloat dwdx = span->attrStepX[FRAG_ATTRIB_WPOS][3]; in interpolate_texcoords()
569 GLfloat w = span->attrStart[FRAG_ATTRIB_WPOS][3] + span->leftClip * dwdx; in interpolate_texcoords()
624 GLfloat (*wpos)[4] = span->array->attribs[FRAG_ATTRIB_WPOS]; in interpolate_wpos()
[all …]
Ds_triangle.c60 GLfloat ex = v1->attrib[FRAG_ATTRIB_WPOS][0] - v0->attrib[FRAG_ATTRIB_WPOS][0]; in _swrast_culltriangle()
61 GLfloat ey = v1->attrib[FRAG_ATTRIB_WPOS][1] - v0->attrib[FRAG_ATTRIB_WPOS][1]; in _swrast_culltriangle()
62 GLfloat fx = v2->attrib[FRAG_ATTRIB_WPOS][0] - v0->attrib[FRAG_ATTRIB_WPOS][0]; in _swrast_culltriangle()
63 GLfloat fy = v2->attrib[FRAG_ATTRIB_WPOS][1] - v0->attrib[FRAG_ATTRIB_WPOS][1]; in _swrast_culltriangle()
Ds_fog.c107 const GLfloat wStep = span->attrStepX[FRAG_ATTRIB_WPOS][3]; \
108 GLfloat w = span->attrStart[FRAG_ATTRIB_WPOS][3]; \
Ds_context.c924 v->attrib[FRAG_ATTRIB_WPOS][0], in _swrast_print_vertex()
925 v->attrib[FRAG_ATTRIB_WPOS][1], in _swrast_print_vertex()
926 v->attrib[FRAG_ATTRIB_WPOS][2], in _swrast_print_vertex()
927 v->attrib[FRAG_ATTRIB_WPOS][3]); in _swrast_print_vertex()
Ds_fragprog.c165 GLfloat *wpos = span->array->attribs[FRAG_ATTRIB_WPOS][col]; in init_machine()
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_vb.c92 dst->attrib[FRAG_ATTRIB_WPOS][0] = s[0] * src->v.x + s[12]; in TAG()
93 dst->attrib[FRAG_ATTRIB_WPOS][1] = s[5] * src->v.y + s[13]; in TAG()
94 dst->attrib[FRAG_ATTRIB_WPOS][2] = s[10] * src->v.z + s[14]; in TAG()
95 dst->attrib[FRAG_ATTRIB_WPOS][3] = 1.0; in TAG()
97 dst->attrib[FRAG_ATTRIB_WPOS][0] = UNVIEWPORT_X( src->v.x ); in TAG()
98 dst->attrib[FRAG_ATTRIB_WPOS][1] = UNVIEWPORT_Y( src->v.y ); in TAG()
99 dst->attrib[FRAG_ATTRIB_WPOS][2] = UNVIEWPORT_Z( src->v.z ); in TAG()
100 dst->attrib[FRAG_ATTRIB_WPOS][3] = 1.0; in TAG()
112 dst->attrib[FRAG_ATTRIB_WPOS][0] = s[0] * src->v.x * oow + s[12]; in TAG()
113 dst->attrib[FRAG_ATTRIB_WPOS][1] = s[5] * src->v.y * oow + s[13]; in TAG()
[all …]
/external/mesa3d/src/mesa/drivers/x11/
Dxm_line.c426 int x0 = (GLint) vert0->attrib[FRAG_ATTRIB_WPOS][0]; in xor_line()
427 int y0 = YFLIP(xrb, (GLint) vert0->attrib[FRAG_ATTRIB_WPOS][1]); in xor_line()
428 int x1 = (GLint) vert1->attrib[FRAG_ATTRIB_WPOS][0]; in xor_line()
429 int y1 = YFLIP(xrb, (GLint) vert1->attrib[FRAG_ATTRIB_WPOS][1]); in xor_line()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_wm_iz.c130 (1 << FRAG_ATTRIB_WPOS)) != 0; in brw_wm_lookup_iz()
Dbrw_wm.c155 if (attr == FRAG_ATTRIB_WPOS || attr == FRAG_ATTRIB_FACE) in brw_compute_barycentric_interp_modes()
197 (1 << FRAG_ATTRIB_WPOS)) != 0; in brw_wm_payload_setup()
Dbrw_wm_state.c153 (1 << FRAG_ATTRIB_WPOS)) != 0; in brw_upload_wm_unit()
Dbrw_wm_pass0.c392 pass0_set_fpreg_value(c, PROGRAM_INPUT, FRAG_ATTRIB_WPOS, 2, in pass0_init_payload()
Dbrw_wm_fp.c348 struct prog_src_register interp_wpos = src_reg(PROGRAM_PAYLOAD, FRAG_ATTRIB_WPOS); in get_pixel_w()
381 case FRAG_ATTRIB_WPOS: in emit_interp()
Dbrw_fs.cpp636 interp_reg(FRAG_ATTRIB_WPOS, 2)); in emit_fragcoord_interpolation()
2162 key.vp_outputs_written |= BITFIELD64_BIT(FRAG_ATTRIB_WPOS); in brw_fs_precompile()
/external/mesa3d/src/mesa/state_tracker/
Dst_mesa_to_tgsi.c798 struct ureg_src wpos_input = t->inputs[t->inputMapping[FRAG_ATTRIB_WPOS]]; in emit_wpos_adjustment()
849 t->inputs[t->inputMapping[FRAG_ATTRIB_WPOS]] = ureg_src(wpos_temp); in emit_wpos_adjustment()
/external/mesa3d/src/mesa/main/
Dmtypes.h321 FRAG_ATTRIB_WPOS = 0, enumerator
387 #define FRAG_BIT_WPOS (1 << FRAG_ATTRIB_WPOS)
/external/mesa3d/src/glsl/
Dbuiltin_variables.cpp55 { ir_var_in, FRAG_ATTRIB_WPOS, "vec4", "gl_FragCoord" },

12