summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2012-05-12 19:08:43 +0200
committerFrancisco Jerez <currojerez@riseup.net>2012-05-12 19:17:18 +0200
commitec848d2730afcc8a0c81bf74b7bb27936407c305 (patch)
tree10e860491b0702860922954e14b27b41db7c3b40 /src
parent406563931068a63d5207fc9962de1638e0da4b81 (diff)
downloadexternal_mesa3d-ec848d2730afcc8a0c81bf74b7bb27936407c305.zip
external_mesa3d-ec848d2730afcc8a0c81bf74b7bb27936407c305.tar.gz
external_mesa3d-ec848d2730afcc8a0c81bf74b7bb27936407c305.tar.bz2
r600g: Handle compute caps.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 11f0fde..bb2336a 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -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;
}