Author Topic: Mesa 20.0.4 implements the OpenGL 4.6 API  (Read 3280 times)

0 Members and 1 Guest are viewing this topic.

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4545
Mesa 20.0.4 implements the OpenGL 4.6 API
« on: April 06, 2020, 02:13:16 PM »
 Mesa 20.0.4 is an emergency release which reverts a serious SPIR-V regression in the 20.0.3 release.

Mesa 20.0.4 implements the OpenGL 4.6 API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) / glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don't support all the features required in OpenGL 4.6. OpenGL 4.6 is only available if requested at context creation. Compatibility contexts may report a lower version depending on each driver.
Mesa 20.0.4 implements the Vulkan 1.2 API, but the version reported by the apiVersion property of the VkPhysicalDeviceProperties struct depends on the particular driver being used.

Pre-compiled binaries at Github


I will make some tests...



Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4545
Re: Mesa 20.0.4 implements the OpenGL 4.6 API
« Reply #1 on: April 06, 2020, 02:35:13 PM »
Best demo that works in GPU Caps Viewer is "Compute Shader OpenGL 4.3".

Launch with a batch file like this:

Code: [Select]
rem do this once
rem copy libglapi.dll libglapi.xxx
rem copy opengl32.dll opengl32.xxx
rem

set MESA_GL_VERSION_OVERRIDE=4.6
set MESA_GLSL_VERSION_OVERRIDE=460
copy libglapi.xxx libglapi.dll
copy opengl32.xxx opengl32.dll

call GPU_Caps_Viewer.exe
rem /run_gxl_demo=gl43_compte_shaders

pause
del opengl32.dll
del libglapi.dll


JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2453
    • Geeks3D.com
Re: Mesa 20.0.4 implements the OpenGL 4.6 API
« Reply #2 on: April 06, 2020, 04:54:03 PM »
Have you tested with SPIR-V shaders in GL 4.6?

There is a GeeXLab demo here:
https://www.geeks3d.com/hacklab/20200211/demo-loading-spir-v-shaders-in-your-opengl-demo/

The same demo is also available in GPU Caps Viewer.

Curious to know if it works...

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4545
Re: Mesa 20.0.4 implements the OpenGL 4.6 API
« Reply #3 on: April 06, 2020, 05:07:42 PM »
Only blank screen...

Quote
17:03:32 | 234 >> [SGX] - OpenGL 4.6 context created OK.
17:03:32 | 235 >> [SGX] - OpenGL renderer model: llvmpipe (LLVM 10.0.0, 256 bits)
17:03:32 | 236 >> [SGX] - OpenGL renderer vendor: VMware, Inc.
17:03:32 | 237 >> [SGX] - OpenGL API version: 4.6 (Compatibility Profile) Mesa 20.0.4 (git-d3586b5291)
17:03:32 | 238 >> [SGX] - [Lua] Lua version: Lua 5.3.4
17:03:32 | 239 >> [SGX] - [Lua] LuaFileSystem initialized ok.
17:03:32 | 240 >> [SGX] - [Lua] UTF8 initialized ok.
17:03:32 | 241 >> [SGX] - [Lua] LuaSocket core initialized ok.
17:03:32 | 242 >> [SGX] - [Lua] Mime core initialized ok.
17:03:32 | 243 >> [SGX] - [Lua] LuaSQL SQLite3 driver initialized ok.
17:03:32 | 244 >> [SGX] - [Lua] LuaGL initialized ok.
17:03:32 | 245 >> [SGX] - [Lua] initialization ok.
17:03:32 | 246 >> [SGX] - Demo initialized OK.
17:04:15 | 247 >> [SGX] - Demo terminated OK.
17:04:21 | 248 >> [SGX] - Plugin GpuMonitor unloaded.
17:04:21 | 249 >> GPU Caps Viewer 1.44.3.1 shutdown...
17:04:21 | 250 >> GPU Caps Viewer shutdown ok.


JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2453
    • Geeks3D.com
Re: Mesa 20.0.4 implements the OpenGL 4.6 API
« Reply #4 on: April 06, 2020, 05:19:19 PM »
Try to to hack the demo (GPU Caps Viewer/gxldemos/gl46-spirv/) by removing the test of the GL_ARB_gl_spirv extension.

Open the init.lua file at line 30:
Code: [Select]
GL_ARB_gl_spirv_OK = gh_renderer.check_opengl_extension("GL_ARB_gl_spirv")

and replace by
Code: [Select]
-- GL_ARB_gl_spirv_OK = gh_renderer.check_opengl_extension("GL_ARB_gl_spirv")
GL_ARB_gl_spirv_OK = 1

Maybe GL_ARB_gl_spirv is implemented but the extension is not exposed.

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4545
Re: Mesa 20.0.4 implements the OpenGL 4.6 API
« Reply #5 on: April 06, 2020, 05:24:02 PM »
Better than nothing.



Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4545
Re: Mesa 20.0.4 implements the OpenGL 4.6 API
« Reply #6 on: April 06, 2020, 05:36:46 PM »
TessMark fails, FurMark and FluidMark work.





JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2453
    • Geeks3D.com
Mesa 20.0.4 implements the OpenGL 4.6 API (GL_ARB_gl_spirv test)
« Reply #7 on: April 06, 2020, 08:59:27 PM »
I quickly tested the 64-bit version of Mesa GL 4.6 DLLs. Looks like some extensions are (partially) implemented but not yet exposed like GL_ARB_gl_spirv. The textured quad demo didn't work but curiously, I managed to run the SPIR-V demo with a RGB triangle:

Mesa3D 20.0.4 - OpenGL 4.6 test with GeeXLab

This updated version of the RGB triangle demo is available in the OpenGL 4 demopack for GeeXLab. You can grab it from this page
https://www.geeks3d.com/hacklab/20200211/demo-loading-spir-v-shaders-in-your-opengl-demo/


GPU Caps Viewer with Mesa 32-bit DLLs

Mesa3D 20.0.4 - OpenGL 4.6 test GPU Caps Viewer