r300g: disable ARB_draw_instanced on SWTCL chipsets.
authorMarek Olšák <maraeo@gmail.com>
Sun, 17 Apr 2011 22:43:19 +0000 (00:43 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 17 Apr 2011 22:44:17 +0000 (00:44 +0200)
This fixes Unigine Heaven.

src/gallium/drivers/r300/r300_screen.c

index acb7d9f02d2c72f5f261530d503110ce5c25328f..642523d4d9b2ef144fcc0f029fbf0659750ecd2b 100644 (file)
@@ -130,12 +130,12 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE:
         case PIPE_CAP_SHADER_STENCIL_EXPORT:
         case PIPE_CAP_ARRAY_TEXTURES:
+        case PIPE_CAP_TGSI_INSTANCEID:
             return 0;
 
         /* SWTCL-only features. */
         case PIPE_CAP_STREAM_OUTPUT:
         case PIPE_CAP_PRIMITIVE_RESTART:
-        case PIPE_CAP_TGSI_INSTANCEID:
             return !r300screen->caps.has_tcl;
 
         /* Texturing. */