diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-05 05:05:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-12-05 05:05:39 +0300 |
commit | 1fa527bfa3a6f78e9f00a21649f396d21344420e (patch) | |
tree | 577a4939c43c81fb018faec26b2d12ff16ecc0d7 /source/blender/gpu/intern | |
parent | 354b1c162a03617a8d73d9954be4079ba0c31077 (diff) |
BKE: Add "--debug-gpu-force-workarounds" to force gpu workarounds
This is nice to test workarounds on other configs that may benefits from
the existing workarounds.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index 92d91bd440d..2309c6dc009 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -343,6 +343,12 @@ void gpu_extensions_init(void) gpu_detect_mip_render_workaround(); + if (G.debug & G_DEBUG_GPU_FORCE_WORKAROUNDS) { + GG.mip_render_workaround = true; + GG.depth_blitting_workaround = true; + GG.unused_fb_slot_workaround = true; + } + /* df/dy calculation factors, those are dependent on driver */ if ((strstr(vendor, "ATI") && strstr(version, "3.3.10750"))) { GG.dfdyfactors[0] = 1.0; |