[Mesa-dev] [PATCH] radeonsi/compute: Default to the same PIPE_SHADER_CAP values as other shader types v2

Marek Olšák maraeo at gmail.com
Tue Mar 24 02:32:25 PDT 2015


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

Marek

On Mon, Mar 23, 2015 at 3:53 PM, Tom Stellard <thomas.stellard at amd.com> wrote:
> v2:
>   - Fix typo
> ---
>  src/gallium/drivers/radeonsi/si_pipe.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
> index d335bda..c7773b7 100644
> --- a/src/gallium/drivers/radeonsi/si_pipe.c
> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
> @@ -376,8 +376,12 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu
>                         return max_const_buffer_size;
>                 }
>                 default:
> -                       return 0;
> +                       /* If compute shaders don't require a special value
> +                        * for this cap, we can return the same value we
> +                        * do for other shader types. */
> +                       break;
>                 }
> +               break;
>         default:
>                 /* TODO: support tessellation */
>                 return 0;
> --
> 2.0.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list