[Mesa-dev] [PATCH 03/11] r600g: Handle PIPE_SHADER_CAP_PREFERRED_IR
Tom Stellard
tstellar at gmail.com
Fri May 11 09:39:18 PDT 2012
---
src/gallium/drivers/r600/r600_pipe.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 11f0fde..595b384 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -513,6 +513,7 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e
{
case PIPE_SHADER_FRAGMENT:
case PIPE_SHADER_VERTEX:
+ case PIPE_SHADER_COMPUTE:
break;
case PIPE_SHADER_GEOMETRY:
/* XXX: support and enable geometry programs */
@@ -560,6 +561,12 @@ 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:
+ if (shader == PIPE_SHADER_COMPUTE) {
+ return PIPE_SHADER_IR_LLVM_R600;
+ } else {
+ return PIPE_SHADER_IR_TGSI;
+ }
}
return 0;
}
--
1.7.7.6
More information about the mesa-dev
mailing list