r300g: do not support separate depth/stencil clear in the driver
authorMarek Olšák <maraeo@gmail.com>
Fri, 13 Aug 2010 06:16:59 +0000 (08:16 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 13 Aug 2010 06:23:06 +0000 (08:23 +0200)
It doesn't work well with Hyper-Z, so put the burden on the state tracker.

src/gallium/drivers/r300/r300_screen.c

index d1b8e9eed4fbb4103227be9d04c01a8857ebf216..1e4edcdbc31425a55e4b828c3e418165829e753b 100644 (file)
@@ -124,6 +124,7 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_INDEP_BLEND_ENABLE:
         case PIPE_CAP_INDEP_BLEND_FUNC:
         case PIPE_CAP_DEPTH_CLAMP: /* XXX implemented, but breaks Regnum Online */
+        case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE:
             return 0;
 
         /* Texturing. */
@@ -150,9 +151,6 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_MAX_CONST_BUFFER_SIZE:
             return 256;
 
-        case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE:
-            return 1;
-
         /* Fragment coordinate conventions. */
         case PIPE_CAP_TGSI_FS_COORD_ORIGIN_UPPER_LEFT:
         case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_HALF_INTEGER: