mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
nouveau: nv10: keep 24/8 depth/stencil value, don't check for depth bits
This commit is contained in:
parent
d44027dbbd
commit
102ad2e066
1 changed files with 6 additions and 6 deletions
|
|
@ -123,25 +123,25 @@ static void nv10ClearDepth(GLcontext *ctx, GLclampd d)
|
||||||
{
|
{
|
||||||
nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
|
nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
|
||||||
|
|
||||||
switch (ctx->DrawBuffer->_DepthBuffer->DepthBits) {
|
/* switch (ctx->DrawBuffer->_DepthBuffer->DepthBits) {
|
||||||
case 16:
|
case 16:
|
||||||
nmesa->clear_value = (uint32_t)(d*0x7FFF);
|
nmesa->clear_value = (uint32_t)(d*0x7FFF);
|
||||||
break;
|
break;
|
||||||
case 24:
|
case 24:*/
|
||||||
nmesa->clear_value = ((nmesa->clear_value&0x000000FF) |
|
nmesa->clear_value = ((nmesa->clear_value&0x000000FF) |
|
||||||
(((uint32_t)(d*0xFFFFFF))<<8));
|
(((uint32_t)(d*0xFFFFFF))<<8));
|
||||||
break;
|
/* break;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nv10ClearStencil(GLcontext *ctx, GLint s)
|
static void nv10ClearStencil(GLcontext *ctx, GLint s)
|
||||||
{
|
{
|
||||||
nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
|
nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
|
||||||
|
|
||||||
if (ctx->DrawBuffer->_DepthBuffer->DepthBits == 24) {
|
/* if (ctx->DrawBuffer->_DepthBuffer->DepthBits == 24) {*/
|
||||||
nmesa->clear_value = ((nmesa->clear_value&0xFFFFFF00)|
|
nmesa->clear_value = ((nmesa->clear_value&0xFFFFFF00)|
|
||||||
(s&0x000000FF));
|
(s&0x000000FF));
|
||||||
}
|
/* }*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nv10ClipPlane(GLcontext *ctx, GLenum plane, const GLfloat *equation)
|
static void nv10ClipPlane(GLcontext *ctx, GLenum plane, const GLfloat *equation)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue