r300g: disable depth clamp for now
authorMarek Olšák <maraeo@gmail.com>
Fri, 13 Aug 2010 00:58:51 +0000 (02:58 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 13 Aug 2010 00:59:01 +0000 (02:59 +0200)
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

index 6268001054b49c3f450df425ed1a6346f6022aeb..d1b8e9eed4fbb4103227be9d04c01a8857ebf216 100644 (file)
@@ -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. */