Bug 103506 - Max core profile version: 0.0 in the "Drivers/DRI/r300" component of the "Mesa"
Summary: Max core profile version: 0.0 in the "Drivers/DRI/r300" component of the "Mesa"
Status: RESOLVED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium critical
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-29 15:02 UTC by Alina
Modified: 2017-10-30 02:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alina 2017-10-29 15:02:42 UTC
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL version string: 2.1 Mesa 17.1.8
OpenGL shading language version string: 1.20
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.1.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
Comment 1 Ilia Mirkin 2017-10-29 15:07:00 UTC
Is there a question somewhere in there? (There is currently no r300 "dri" driver, only a gallium one, btw.)
Comment 2 Hi-Angel 2017-10-29 15:08:58 UTC
@Ilia Mirkin I think she refers to the fact that "core profile" reports 0.0
Comment 3 Ilia Mirkin 2017-10-29 15:13:46 UTC
(In reply to Hi-Angel from comment #2)
> @Ilia Mirkin I think she refers to the fact that "core profile" reports 0.0

It is printing the results of GLX_MESA_query_renderer return values. This is how the lack of core profile support is indicated.
Comment 4 Hi-Angel 2017-10-29 15:16:35 UTC
> This is how the lack of core profile support is indicated

I don't understand, is it possible to have compatibility profile, but not the core one? And if it is, what would apps requesting a core profile get?
Comment 5 Ilia Mirkin 2017-10-29 15:19:37 UTC
(In reply to Hi-Angel from comment #4)
> > This is how the lack of core profile support is indicated
> 
> I don't understand, is it possible to have compatibility profile, but not
> the core one? And if it is, what would apps requesting a core profile get?

Technically it's not the "compatibility" profile until GL 3.2 rolls around, but in essence yes. An implementation would probably not expose GLX_ARB_create_context_profile, but if it did, such requests would fail.
Comment 6 Hi-Angel 2017-10-29 15:36:49 UTC
> Technically it's not the "compatibility" profile until GL 3.2 rolls around, but in essence yes. An implementation would probably not expose GLX_ARB_create_context_profile, but if it did, such requests would fail.

I shall say, my OpenGL-fu not very good, but this looks like a mess. Using GLX_ARB_create_context_profile is generally the expected way of using OpenGL, right? Then, the only way to use r300g is to ask compatibility or to query every possible extension separately. The first one we don't want apps to do, and the second one hardly would be used by anyone because, at least, core profile is expected to be present.

So, after all, it's bug, right?
Comment 7 Ilia Mirkin 2017-10-29 15:40:52 UTC
(In reply to Hi-Angel from comment #6)
> So, after all, it's bug, right?

Nope. It's all working correctly and both as intended by the driver authors, as well as in the way that applications expect it.
Comment 8 Hi-Angel 2017-10-30 02:27:19 UTC
For the history sake, I've got the answer about design on IRC, and this is indeed correct. The separation to Core profile and to (optional) compatibility profile only appeared at OpenGL 3.2, and prior that there was a different way to get max. supported version. Hence, if the app supports prev. OpenGL, it should fallback on that codepath.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.