[Mesa-dev] [PATCH 3/3] radeonsi: make more use of si_have_tgsi_compute

Marek Olšák maraeo at gmail.com
Sat Oct 8 13:37:32 UTC 2016


For the series:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Fri, Oct 7, 2016 at 6:04 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> From: Nicolai Hähnle <nicolai.haehnle 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
> @@ -430,23 +430,21 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
>                  return R600_MAP_BUFFER_ALIGNMENT;
>
>         case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
>         case PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT:
>         case PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS:
>                 return 4;
>         case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT:
>                 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;
>
>         case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
>                 return MIN2(sscreen->b.info.max_alloc_size, INT_MAX);
>
>         case PIPE_CAP_BUFFER_SAMPLER_VIEW_RGBA_ONLY:
>                 return 0;
>
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list