mesa: Let compute shaders work in compatibility profiles
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 25 May 2016 19:17:24 +0000 (21:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 9 Jun 2016 19:03:28 +0000 (21:03 +0200)
The extension is already advertised in compatibility profile, but
the _mesa_has_compute_shaders only returns true in core profile.
If we advertise it, we should allow it to work.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/main/context.h

index ef19cc68d2dca934379faaa12b714fb2b4d60a64..593ced53d770d904ba2273320dbdd0a544d19193 100644 (file)
@@ -343,7 +343,7 @@ _mesa_has_geometry_shaders(const struct gl_context *ctx)
 static inline bool
 _mesa_has_compute_shaders(const struct gl_context *ctx)
 {
-   return (ctx->API == API_OPENGL_CORE && ctx->Extensions.ARB_compute_shader) ||
+   return _mesa_has_ARB_compute_shader(ctx) ||
       (ctx->API == API_OPENGLES2 && ctx->Version >= 31);
 }