Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-01-08 12:23:20 +0300
committerJeroen Bakker <jeroen@blender.org>2021-01-08 12:23:20 +0300
commitceaed47bf9a31acdce8cd8bdd436c55c74605b27 (patch)
treefb646f3874fd0a48a7b44d84597531cd22cac3f8 /source/blender/gpu/opengl
parentf448ff2afe7a77279fe96282447912a6f7773ed3 (diff)
GPU: Enable HQ normal work around on Linux.
Linux does not report the driver version. It does report the OpenGL version. This change will check the OpenGL version to enable the HQ normal work around.
Diffstat (limited to 'source/blender/gpu/opengl')
-rw-r--r--source/blender/gpu/opengl/gl_backend.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/opengl/gl_backend.cc b/source/blender/gpu/opengl/gl_backend.cc
index d9bc3a78dd8..140425b349a 100644
--- a/source/blender/gpu/opengl/gl_backend.cc
+++ b/source/blender/gpu/opengl/gl_backend.cc
@@ -275,8 +275,8 @@ static void detect_workarounds()
* `GL_INT_2_10_10_10_REV` data type. This data type is used to pack normals. The work around
* uses `GPU_RGBA16I`.*/
if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_ANY, GPU_DRIVER_OFFICIAL)) {
- if (strstr(version, " 20.11.2") || strstr(version, " 20.11.3 ") ||
- strstr(version, " 20.12.")) {
+ /* On Linux the driver does not report its version. Test the OpenGL version in stead. */
+ if (strstr(version, "4.5.14756") || strstr(version, "4.5.14757")) {
if (strstr(renderer, " RX 460 ") || strstr(renderer, " RX 470 ") ||
strstr(renderer, " RX 480 ") || strstr(renderer, " RX 490 ") ||
strstr(renderer, " RX 560 ") || strstr(renderer, " RX 560X ") ||