diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-01-04 13:41:54 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-01-04 14:19:51 +0300 |
commit | a3fcbb54f4b0dac7f9104d5f45c8540e9764e46d (patch) | |
tree | 8ee6b349055ebfdee6e296d02555d0276599868b /source/blender/draw/intern/draw_cache_extract_mesh.c | |
parent | 02d1f1482a5e225bbb8195c04eaece1514aa97d1 (diff) |
GPU: Add HQ normals workaround.
This change makes it possible for platforms to only support high quality
normal rendering. This is part of {T82856} where current AMD drivers
running on the polaris architecture does not support the low quality
setting due to a driver bug.
In a next commit the work around will be enabled.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_extract_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_extract_mesh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.c b/source/blender/draw/intern/draw_cache_extract_mesh.c index 7766ce906b8..576c029390c 100644 --- a/source/blender/draw/intern/draw_cache_extract_mesh.c +++ b/source/blender/draw/intern/draw_cache_extract_mesh.c @@ -5578,7 +5578,8 @@ static void extract_task_create(struct TaskGraph *task_graph, int32_t *task_counter) { BLI_assert(scene != NULL); - const bool do_hq_normals = (scene->r.perf_flag & SCE_PERF_HQ_NORMALS) != 0; + const bool do_hq_normals = (scene->r.perf_flag & SCE_PERF_HQ_NORMALS) != 0 || + GPU_use_hq_normals_workaround(); if (do_hq_normals && (extract == &extract_lnor)) { extract = &extract_lnor_hq; } |