Bug 81448 - Reported support for OGL 3.3, but fails to create context
Summary: Reported support for OGL 3.3, but fails to create context
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-17 00:03 UTC by mistdragon100
Modified: 2016-11-04 00:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description mistdragon100 2014-07-17 00:03:38 UTC
When requesting a 3.3 context, a 3.0 context is created instead.
The code was written to check for a 3.3 context, if not available, it should fallback to a 2.1 context instead.

GLFW and GLEW where used for creating and managing the context.
When testing for OpenGL support using GLEW, GL_VERSION_3_3 and GL_VERSION_4_0, report as true.

Using the GL_VERSION_3_3 to determine whether to load GLSL 3.3 shaders or 1.2 shaders, will fail with:
resources/shaders/330/quad.vert:0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES

Graphics Info:
$ sudo lspci -v
...
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Device 21e2
	Flags: bus master, fast devsel, latency 0, IRQ 40
	Memory at d0000000 (64-bit, non-prefetchable) [size=4M]
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 5000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [a4] PCI Advanced Features
	Kernel driver in use: i915
	Kernel modules: i915
...

$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.2.3
OpenGL core profile shading language version string: 1.40
OpenGL core profile context flags: (none)
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.2.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.2.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.0
OpenGL ES profile extensions:

The graphics chipset is an Intel HD 3000.
Comment 1 mistdragon100 2014-07-17 00:10:52 UTC
Correction: the 2.1 context is created, when it fails.
Comment 2 Matt Turner 2016-11-04 00:15:48 UTC
OpenGL 3.3 support for Sandybridge landed in mesa-10.4.0. Mesa only supports "core" profiles.


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.