mesa: Branch 'master'
Patrice Mandin
pmandin at kemper.freedesktop.org
Tue Feb 20 22:05:45 UTC 2007
src/mesa/drivers/dri/nouveau/nv10_state.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
New commits:
diff-tree 102ad2e066b7a6fcd893db58c64ca685e49a3dfd (from d44027dbbd8837b2a32466b0617283649e770907)
Author: Patrice Mandin <pmandin at caramail.com>
Date: Tue Feb 20 23:04:21 2007 +0100
nouveau: nv10: keep 24/8 depth/stencil value, don't check for depth bits
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state.c b/src/mesa/drivers/dri/nouveau/nv10_state.c
index e0475bb..09fc075 100644
--- a/src/mesa/drivers/dri/nouveau/nv10_state.c
+++ b/src/mesa/drivers/dri/nouveau/nv10_state.c
@@ -123,25 +123,25 @@ static void nv10ClearDepth(GLcontext *ct
{
nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
- switch (ctx->DrawBuffer->_DepthBuffer->DepthBits) {
+/* switch (ctx->DrawBuffer->_DepthBuffer->DepthBits) {
case 16:
nmesa->clear_value = (uint32_t)(d*0x7FFF);
break;
- case 24:
+ case 24:*/
nmesa->clear_value = ((nmesa->clear_value&0x000000FF) |
(((uint32_t)(d*0xFFFFFF))<<8));
- break;
- }
+/* break;
+ }*/
}
static void nv10ClearStencil(GLcontext *ctx, GLint s)
{
nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
- if (ctx->DrawBuffer->_DepthBuffer->DepthBits == 24) {
+/* if (ctx->DrawBuffer->_DepthBuffer->DepthBits == 24) {*/
nmesa->clear_value = ((nmesa->clear_value&0xFFFFFF00)|
(s&0x000000FF));
- }
+/* }*/
}
static void nv10ClipPlane(GLcontext *ctx, GLenum plane, const GLfloat *equation)
More information about the mesa-commit
mailing list