r600g: disable ARB_draw_instanced
authorMarek Olšák <maraeo@gmail.com>
Sat, 16 Apr 2011 23:57:13 +0000 (01:57 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 17 Apr 2011 22:44:17 +0000 (00:44 +0200)
The very presence of this extension breaks things.
This should bring us closer to being able to run Unigine Heaven.

The extension will be re-enabled once gl_InstanceID is implemented.

src/gallium/drivers/r600/r600_pipe.c

index 1a581c791a36631f055568548467116ba9171d30..d0d380392a07acf8bb7a1256ebb570de9e72fbe3 100644 (file)
@@ -371,7 +371,6 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE:
        case PIPE_CAP_DEPTH_CLAMP:
        case PIPE_CAP_SHADER_STENCIL_EXPORT:
-       case PIPE_CAP_TGSI_INSTANCEID:
        case PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR:
        case PIPE_CAP_MIXED_COLORBUFFER_FORMATS:
                return 1;
@@ -382,6 +381,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
                else
                        return 1;
 
+       case PIPE_CAP_TGSI_INSTANCEID:
+               return 0;
+
        /* Unsupported features (boolean caps). */
        case PIPE_CAP_STREAM_OUTPUT:
        case PIPE_CAP_PRIMITIVE_RESTART: