Home
last modified time | relevance | path

Searched refs:depthMax (Results 1 – 9 of 9) sorted by relevance

/external/mesa3d/src/mesa/main/
Dviewport.c161 GLfloat depthMax = 65535.0F; /* sorf of arbitrary */ in _mesa_init_viewport() local
173 0.0F, 1.0F, depthMax); in _mesa_init_viewport()
Dstate.c280 const GLfloat depthMax = ctx->DrawBuffer->_DepthMaxF; in update_viewport_matrix() local
282 ASSERT(depthMax > 0); in update_viewport_matrix()
292 depthMax); in update_viewport_matrix()
Dpack.h122 GLenum dstType, GLvoid *dest, GLuint depthMax,
Dpack.c5424 GLenum dstType, GLvoid *dest, GLuint depthMax, in _mesa_unpack_depth_span() argument
5449 && depthMax == 0xffffffff) { in _mesa_unpack_depth_span()
5460 && depthMax == 0xffffff) { in _mesa_unpack_depth_span()
5514 depthMax == 0xffffff && in _mesa_unpack_depth_span()
5608 if (depthMax <= 0xffffff) { in _mesa_unpack_depth_span()
5611 zValues[i] = (GLuint) (depthValues[i] * (GLfloat) depthMax); in _mesa_unpack_depth_span()
5617 GLdouble z = depthValues[i] * (GLdouble) depthMax; in _mesa_unpack_depth_span()
5628 ASSERT(depthMax <= 0xffff); in _mesa_unpack_depth_span()
5630 zValues[i] = (GLushort) (depthValues[i] * (GLfloat) depthMax); in _mesa_unpack_depth_span()
/external/mesa3d/src/mesa/swrast/
Ds_copypix.c211 const GLuint depthMax = ctx->DrawBuffer->_DepthMax; in scale_and_bias_z() local
214 if (depthMax <= 0xffffff && in scale_and_bias_z()
230 z[i] = depthMax; in scale_and_bias_z()
Ds_drawpix.c367 const GLuint depthMax = ctx->DrawBuffer->_DepthMax; in draw_depth_pixels() local
389 GL_UNSIGNED_INT, span.array->z, depthMax, in draw_depth_pixels()
Ds_span.c69 const GLfloat depthMax = ctx->DrawBuffer->_DepthMaxF; in _swrast_span_default_attribs() local
71 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F); in _swrast_span_default_attribs()
73 GLfloat tmpf = ctx->Current.RasterPos[2] * depthMax; in _swrast_span_default_attribs()
74 tmpf = MIN2(tmpf, depthMax); in _swrast_span_default_attribs()
/external/mesa3d/src/mesa/math/
Dm_matrix.h126 GLfloat zNear, GLfloat zFar, GLfloat depthMax);
Dm_matrix.c1114 GLfloat zNear, GLfloat zFar, GLfloat depthMax) in _math_matrix_viewport() argument
1120 m->m[MAT_SZ] = depthMax * ((zFar - zNear) / 2.0F); in _math_matrix_viewport()
1121 m->m[MAT_TZ] = depthMax * ((zFar - zNear) / 2.0F + zNear); in _math_matrix_viewport()