Home
last modified time | relevance | path

Searched refs:half_depth (Results 1 – 11 of 11) sorted by relevance

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