r600g: Handle compute caps.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 12 May 2012 17:08:43 +0000 (19:08 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 12 May 2012 17:17:18 +0000 (19:17 +0200)
src/gallium/drivers/r600/r600_pipe.c

index 11f0fde177ed7fb61652e606a48ba3a53ef4dfc5..bb2336a37e452e034c939d233cc2190221cf034c 100644 (file)
@@ -432,6 +432,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_FRAGMENT_COLOR_CLAMPED:
        case PIPE_CAP_VERTEX_COLOR_CLAMPED:
        case PIPE_CAP_USER_VERTEX_BUFFERS:
+       case PIPE_CAP_COMPUTE:
                return 0;
 
        /* Stream output. */
@@ -560,6 +561,8 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e
                return rscreen->glsl_feature_level >= 130;
        case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
                return 16;
+       case PIPE_SHADER_CAP_PREFERRED_IR:
+               return PIPE_SHADER_IR_TGSI;
        }
        return 0;
 }