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

Laurent Carlier lordheavym at gmail.com
Fri Mar 20 23:32:08 PDT 2015


Le samedi 21 mars 2015, 00:35:08 Tom Stellard a écrit :
> ---
>  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 f1a5388..545c156 100644
> --- a/src/gallium/drivers/radeonsi/si_pipe.c
> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
> @@ -373,8 +373,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 speical value
There is a typo here: speical

> +			 * for this cap, we can return the same value we
> +			 * do for other shader types. */
> +			break;
>  		}
> +		break;
>  	default:
>  		/* TODO: support tessellation */
>  		return 0;

-- 
Laurent Carlier
http://www.archlinux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150321/77f3f408/attachment.sig>


More information about the mesa-dev mailing list