[Mesa-dev] [PATCH] mesa: expose ARB_compute_shader with compat profile

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed May 25 19:17:24 UTC 2016


This fixes use of compute shaders with some NVIDIA GL 4.3 samples which
require a compat profile.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.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 46444d2..7152f7a 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -341,7 +341,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);
 }
 
-- 
2.8.3



More information about the mesa-dev mailing list