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

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed May 25 19:59:55 UTC 2016

On 05/25/2016 09:52 PM, Matt Turner wrote:
> On Wed, May 25, 2016 at 12:17 PM, Samuel Pitoiset
> <samuel.pitoiset at gmail.com> wrote:
>> This fixes use of compute shaders with some NVIDIA GL 4.3 samples which
>> require a compat profile.
> I'm confused.
> The samples you're talking about... use 4.3 compatibility? We already
> don't support compatibility profile, so you presumably have to hack
> that on.

Yes, this sample requires GL 4.3 and a compat profile.

> The ARB_compute_shader extension spec says it requires 4.2, and we
> don't expose 4.2 with the compatibility profile. I think you should
> have some justification for why it's safe to expose in compatibility
> profile, since that's a pretty big change. Or, you don't want to
> expose it in compatibility but you need this patch to enable it with
> the 4.2-compat hack enabled...?

Sure, I need to override the mesa compat profile version and the glsl 
version like:

Like you I was surprising because with the above hack, glxinfo says that 
ARB_compute_shader is exposed. But actually, mesa seems to reject 
glDispatchCompute() randomly.
> Strangely, ARB_compute_shader says "GLL, GLC" in extensions_table.h,
> but it's only core-enabled on my glxinfo.

More information about the mesa-dev mailing list