Mesa (master): radeonsi: make more use of si_have_tgsi_compute
Nicolai Hähnle
nh at kemper.freedesktop.org
Mon Oct 10 08:39:56 UTC 2016
Module: Mesa
Branch: master
Commit: 1f951216266a5f3d824d8b8da4a0cd4328d22d95
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f951216266a5f3d824d8b8da4a0cd4328d22d95
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Thu Oct 6 22:57:55 2016 +0200
radeonsi: make more use of si_have_tgsi_compute
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeonsi/si_pipe.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 2aa679c..66eb2e1 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -437,9 +437,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
return HAVE_LLVM >= 0x0309 ? 4 : 0;
case PIPE_CAP_GLSL_FEATURE_LEVEL:
- if (pscreen->get_shader_param(pscreen, PIPE_SHADER_COMPUTE,
- PIPE_SHADER_CAP_SUPPORTED_IRS) &
- (1 << PIPE_SHADER_IR_TGSI))
+ if (si_have_tgsi_compute(sscreen))
return 430;
return HAVE_LLVM >= 0x0309 ? 420 :
HAVE_LLVM >= 0x0307 ? 410 : 330;
More information about the mesa-commit
mailing list