radeonsi: make more use of si_have_tgsi_compute
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 6 Oct 2016 20:57:55 +0000 (22:57 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 10 Oct 2016 08:38:33 +0000 (10:38 +0200)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index 2aa679c61b55510519d7637b950e1657d233f31f..66eb2e16270822fcdb4e8c6a8bea54fc85921622 100644 (file)
@@ -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;