[Mesa-dev] [PATCH] nv50: do not advertise about compute shaders
Ilia Mirkin
imirkin at alum.mit.edu
Fri Feb 19 19:26:38 UTC 2016
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
On Fri, Feb 19, 2016 at 2:25 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> Compute shaders are totally unsupported. This avoids Clover to
> report that OpenCL is supported on Tesla because it's a lie.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/gallium/drivers/nouveau/nv50/nv50_screen.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
> index 06b7bf9..8d11dd7 100644
> --- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c
> +++ b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
> @@ -264,8 +264,8 @@ nv50_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
> case PIPE_SHADER_VERTEX:
> case PIPE_SHADER_GEOMETRY:
> case PIPE_SHADER_FRAGMENT:
> - case PIPE_SHADER_COMPUTE:
> break;
> + case PIPE_SHADER_COMPUTE:
> default:
> return 0;
> }
> --
> 2.6.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