Searched defs:half_depth (Results 1 - 11 of 11) sorted by relevance

/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_viewport.c70 GLfloat half_depth = (GLfloat)(ctx->Viewport.Far - ctx->Viewport.Near) * 0.5f; local
74 st->state.viewport.scale[2] = half_depth;
79 st->state.viewport.translate[2] = half_depth + z;
/external/mesa3d/src/gallium/tests/graw/
H A Dgraw_util.h194 float half_depth = (far - near) / 2.0f; local
199 vp.scale[2] = half_depth;
204 vp.translate[2] = half_depth + z;
H A Dquad-sample.c68 float half_depth = ((float)far - (float)near) / 2.0f; local
73 vp.scale[2] = half_depth;
78 vp.translate[2] = half_depth + z;
H A Dshader-leak.c58 float half_depth = ((float)far - (float)near) / 2.0f; local
63 vp.scale[2] = half_depth;
68 vp.translate[2] = half_depth + z;
H A Dtri-gs.c59 float half_depth = ((float)far - (float)near) / 2.0f; local
64 vp.scale[2] = half_depth;
69 vp.translate[2] = half_depth + z;
H A Dtri-instanced.c88 float half_depth = ((float)far - (float)near) / 2.0f; local
93 vp.scale[2] = half_depth;
98 vp.translate[2] = half_depth + z;
H A Dfs-test.c182 float half_depth = ((float)far - (float)near) / 2.0f; local
187 vp.scale[2] = half_depth;
192 vp.translate[2] = half_depth + z;
H A Dgs-test.c215 float half_depth = ((float)far - (float)near) / 2.0f; local
220 vp.scale[2] = half_depth;
225 vp.translate[2] = half_depth + z;
H A Dvs-test.c126 float half_depth = ((float)far - (float)near) / 2.0f; local
131 vp.scale[2] = half_depth;
136 vp.translate[2] = half_depth + z;
/external/mesa3d/src/gallium/tests/trivial/
H A Dquad-tex.c236 float half_depth = ((float)FAR - (float)NEAR) / 2.0f; local
249 p->viewport.scale[2] = half_depth;
254 p->viewport.translate[2] = half_depth + z;
H A Dtri.c177 float half_depth = ((float)FAR - (float)NEAR) / 2.0f; local
190 p->viewport.scale[2] = half_depth;
195 p->viewport.translate[2] = half_depth + z;

Completed in 794 milliseconds