r600g: enable EXT_draw_buffers2
authorDave Airlie <airlied@redhat.com>
Sun, 24 Apr 2011 20:55:09 +0000 (06:55 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 24 Apr 2011 20:55:09 +0000 (06:55 +1000)
Doesn't cause any piglit regression and passes the fbo-draw-buffers-blend
test.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_pipe.c

index d0d380392a07acf8bb7a1256ebb570de9e72fbe3..4bc56448bce3525295dab713c4e5ceeb1de7d515 100644 (file)
@@ -375,6 +375,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_MIXED_COLORBUFFER_FORMATS:
                return 1;
        case PIPE_CAP_INDEP_BLEND_ENABLE:
+       case PIPE_CAP_INDEP_BLEND_FUNC:
                /* R600 doesn't support per-MRT blends */
                if (family == CHIP_R600)
                        return 0;
@@ -387,12 +388,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        /* Unsupported features (boolean caps). */
        case PIPE_CAP_STREAM_OUTPUT:
        case PIPE_CAP_PRIMITIVE_RESTART:
-       case PIPE_CAP_INDEP_BLEND_FUNC: /* FIXME allow this */
        case PIPE_CAP_FRAGMENT_COLOR_CLAMP_CONTROL:
-               /* R600 doesn't support per-MRT blends */
-               if (family == CHIP_R600)
-                       return 0;
-               else
                        return 0;
 
        case PIPE_CAP_ARRAY_TEXTURES: