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:
authorClément Foucault <foucault.clem@gmail.com>2018-10-31 14:32:09 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-10-31 14:32:18 +0300
commit117bc96ce88474d3c6b28e669e6ee339441051fb (patch)
tree92e2e8e07752b50aa18995f5e6bbd4ea2c550ce1 /source/blender/draw/engines/eevee/eevee_effects.c
parenta248c2001a0a037b921355a6caaa161c270c762f (diff)
Eevee: Fix dot corruption on intel HD5xx/6xx series
It is caused by some sync issue apparently. Adding glFlush in these two places fixes it. Caveat: it might have a small perf impact (did not measure it). The fix is limited to the affected driver/operating systems.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_effects.c')
-rw-r--r--source/blender/draw/engines/eevee/eevee_effects.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_effects.c b/source/blender/draw/engines/eevee/eevee_effects.c
index 2978ea38d19..c7c3adeffc2 100644
--- a/source/blender/draw/engines/eevee/eevee_effects.c
+++ b/source/blender/draw/engines/eevee/eevee_effects.c
@@ -34,6 +34,7 @@
#include "eevee_private.h"
#include "GPU_texture.h"
#include "GPU_extensions.h"
+#include "GPU_state.h"
static struct {
/* Downsample Depth */
@@ -470,6 +471,13 @@ void EEVEE_create_minmax_buffer(EEVEE_Data *vedata, GPUTexture *depth_src, int l
/* Restore */
GPU_framebuffer_bind(fbl->main_fb);
+
+ if (GPU_mip_render_workaround()) {
+ /* Fix dot corruption on intel HD5XX/HD6XX series.
+ * It seems affected drivers are the same that needs
+ * GPU_mip_render_workaround. */
+ GPU_flush();
+ }
}
/**