Mesa (master): mesa: Let compute shaders work in compatibility profiles

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Thu Jun 9 19:10:15 UTC 2016


Module: Mesa
Branch: master
Commit: 5e2d25894b962aae9158261897e13843377e3b95
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e2d25894b962aae9158261897e13843377e3b95

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed May 25 21:17:24 2016 +0200

mesa: Let compute shaders work in compatibility profiles

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 at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>

---

 src/mesa/main/context.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index ef19cc6..593ced5 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -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);
 }
 




More information about the mesa-commit mailing list