nv50: do not advertise about compute shaders
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 19 Feb 2016 19:25:10 +0000 (20:25 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 20 Feb 2016 18:25:12 +0000 (19:25 +0100)
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@gmail.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_screen.c

index 06b7bf986adc6a6a1bc62eb26ad118ec212b4ea8..8d11dd7bf218ced41eb14e54a95b3c4b5344ad17 100644 (file)
@@ -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;
    }