Cool VL Viewer forum
http://sldev.free.fr/forum/

[1.30x] [AMD Linux] Deferred Rendering Unavabile.
http://sldev.free.fr/forum/viewtopic.php?f=4&t=2280
Page 1 of 1

Author:  Tanuki [ 2022-06-11 21:24:20 ]
Post subject:  [1.30x] [AMD Linux] Deferred Rendering Unavabile.

Greetings!
As of the switch to 1.30x (1.29 worked before) it seems to be impossible to have the deferred rendering mode enabled.
Currently tested with: v1.30.0.2
The viewer hangs for a brief second, like it uses to when your GPU is unable to support the shader mode (i.e. too old)
Only related errors i see regarding this in the log are as follows:
2022-06-11 20:53:41Z WARNING: LLShaderMgr::loadShaderFile: GLSL compilation error: 0 - Shader file: deferred/materialF.glsl
2022-06-11 20:53:41Z WARNING: LLShaderMgr::loadShaderFile: Failed to load deferred/materialF.glsl
2022-06-11 20:53:41Z WARNING: LLGLSLShader::createShader: Failed to map attributes for: Deferred material shader 1
2022-06-11 20:53:41Z WARNING: LLGLSLShader::createShader: Failed to map uniforms for: Deferred material shader 1
2022-06-11 20:53:41Z WARNING: LLGLSLShader::createShader: Failed to link using shader level 1 trying again using shader level 0
2022-06-11 20:53:41Z WARNING: LLShaderMgr::loadShaderFile: GLSL Shader file not found: deferred/materialV.glsl
2022-06-11 20:53:41Z WARNING: LLShaderMgr::loadShaderFile: GLSL Shader file not found: deferred/materialF.glsl
2022-06-11 20:53:41Z WARNING: LLGLSLShader::createShader: Failed to map attributes for: Deferred material shader 1
2022-06-11 20:53:41Z WARNING: LLGLSLShader::createShader: Failed to map uniforms for: Deferred material shader 1
2022-06-11 20:53:41Z WARNING: LLGLSLShader::createShader: Failed to link shader: Deferred material shader 1

Used System is: CPU: AMD Ryzen 7 2700 Eight-Core Processor (1377.4 MHz)
Memory: 64250MB
OS version: Linux-x86_64 v5.19.0-rc1-x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 7 05:34:39 CEST 2022
Memory manager: jemalloc v5.3.1-20220520
Graphics card vendor: AMD
Graphics card: AMD Radeon RX 5700 XT (navi10, LLVM 14.0.4, DRM 3.47, 5.19.0-rc1-x86_64)
OpenGL version: 4.6 (Compatibility Profile) Mesa 22.2.0-devel (git-d64fbb8886)
Detected VRAM: 7116MB
but i am also able to reproduce this same issue on:
Graphics card: AMD Custom GPU 0405 (vangogh, LLVM 14.0.4, DRM 3.47, 5.19.0-rc1-x86_64)
OpenGL version: 3.0 Mesa 22.2.0-devel (git-893b4d98f8)
- I am not sure on how to further debug this than assuming either mesa is being troublesome or something with the viewer code.
Just ruling out mesa as i tried it again with Mesa 22.1.1, same issue. Nor does work with Zink(opengl to vulkan) So maybe amdgpu... But the same occurs when using llvmpipe (software/ llvmpipe (LLVM 14.0.4, 256 bits) opengl 4.5)

Author:  Henri Beauchamp [ 2022-06-12 00:04:20 ]
Post subject:  Re: [1.30x] [AMD Linux] Deferred Rendering Unavabile.

Copy-paste bug in v1.30.0.2... Line 236 of app_settings/shaders/class1/deferred/materialF.glsl, change to read:
Code:
#else
    if (diffcol.a < minimum_alpha)
#endif
I.e. remove the "-bias" in that line...

I will publish a fixed release tomorrow.

Author:  Henri Beauchamp [ 2022-06-12 08:22:13 ]
Post subject:  Re: [1.30x] [AMD Linux] Deferred Rendering Unavabile.

This problem (as well as another, in the same shader file) has been fixed in v1.30.0.3 I just released. Please update to the latter.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/