Mesa (master): r300g: disable depth clamp for now

Marek Olšák mareko at kemper.freedesktop.org
Fri Aug 13 01:11:17 UTC 2010


Module: Mesa
Branch: master
Commit: 16e782b83f298fcf82bbb277690ac0c713e90e21
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=16e782b83f298fcf82bbb277690ac0c713e90e21

Author: Marek Olšák <maraeo at gmail.com>
Date:   Fri Aug 13 02:58:51 2010 +0200

r300g: disable depth clamp for now

It breaks Regnum Online in that it renders random triangles
all over the screen.

https://bugs.freedesktop.org/show_bug.cgi?id=29518

---

 src/gallium/drivers/r300/r300_screen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index 6268001..d1b8e9e 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -115,7 +115,6 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
         case PIPE_CAP_BLEND_EQUATION_SEPARATE:
         case PIPE_CAP_TEXTURE_SWIZZLE:
-        case PIPE_CAP_DEPTH_CLAMP:
             return 1;
 
         /* Unsupported features (boolean caps). */
@@ -124,6 +123,7 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_TGSI_CONT_SUPPORTED:
         case PIPE_CAP_INDEP_BLEND_ENABLE:
         case PIPE_CAP_INDEP_BLEND_FUNC:
+        case PIPE_CAP_DEPTH_CLAMP: /* XXX implemented, but breaks Regnum Online */
             return 0;
 
         /* Texturing. */




More information about the mesa-commit mailing list