Bug 1383 - GLProfile fails to select default core profiles when no compat profiles are available.
Summary: GLProfile fails to select default core profiles when no compat profiles are a...
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: opengl (show other bugs)
Version: 2.4.0
Hardware: All all
: P1 blocker
Assignee: Sven Gothel
URL:
Depends on: 1382 1384
Blocks: 1385
  Show dependency treegraph
 
Reported: 2019-08-20 19:43 CEST by Sven Gothel
Modified: 2019-08-23 10:01 CEST (History)
1 user (show)

See Also:
Type: DEFECT
SCM Refs:
c896476cc309ab9705329da2c9776a6c481fdb5f 5d27c6400a472517e08a86165878f2360d4077bc 9a5f4c464404c1cde2a9b0eabdef39969349fda0 615359e6a70f88bbe3db9664d27c7a4276e58415 bd4be8b54a43b95d7dec90f6dbd0905987ad7605 21f82eb8b74a60cc8a869e073e124d44c75f217e
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2019-08-20 19:43:19 CEST
GLProfile fails to select default core profiles when no compat profiles are available.

This is what is left from Bug 1382:
Compat profiles being disabled via GLRendererQuirks.GLNonCompliant
and GLProfile fails to use the highest core profile available as default.
Comment 1 Sven Gothel 2019-08-22 20:17:40 CEST
Fixed as described in the git logs.

First patches clean-up the affected code-path w/o semantic change,
where the subsequent patches clean up semantics and fix the issue.

GLRendererQuirks.GLNonCompliant -> GLRendererQuirks.GL3CompatNonCompliant

Notable is Bug 1385, i.e. GL3CompatNonCompliant is now more required 
for Mesa >= 18.2.0 ;-)

However, this cleanup & fix was worth its time.
Comment 2 Sven Gothel 2019-08-23 07:33:21 CEST
commit 21f82eb8b74a60cc8a869e073e124d44c75f217e

Tighten version/profile qualification: fail if: requested compat profile && has core profile
    
On Mesa, if requesting a 3.1 compat profile, we receive a 4.5 core profile.
    
This is natural due to constraints within glXCreateContextAttribsARB,
i.e. GLX_CONTEXT_PROFILE_MASK_ARB is only a available for versions >= 3.2
and these are not available on Mesa.
    
Tested with Mesa 18.3.6 of Debian 10 Buster,
which also confirms Bug 1385 fix of limitating GL3CompatNonCompliant
to Mesa < 18.2.0
Comment 3 Julien Gouesse 2019-08-23 10:01:11 CEST
(In reply to Sven Gothel from comment #1)
> Notable is Bug 1385, i.e. GL3CompatNonCompliant is now more required 
> for Mesa >= 18.2.0 ;-)
> 
You meant "no more" of course.