Page MenuHome

AMD Adrenalin 19.9.2 clear buffers workaround
AbandonedPublic

Authored by Jeroen Bakker (jbakker) on Sep 18 2019, 2:00 PM.

Details

Reviewers
None
Summary

Added a work around for detected driver issue.

It seems like the AMD Adrenalin 19.9.2 driver doesn't respect selected glDrawBuffers and only clears the first color buffer.
This patch will add a work around to in this case clear every buffer one by one.

T69972: [OpenGL Driver Bug] X-ray causes viewport artifacts in Edit Mode when using Solid rendering

Diff Detail

Repository
rB Blender

Event Timeline

Clément Foucault (fclem) requested changes to this revision.Sep 18 2019, 2:20 PM
Clément Foucault (fclem) added inline comments.
source/blender/gpu/intern/gpu_framebuffer.c
616

use glClearBuffer here instead of messing the FBO state.

This revision now requires changes to proceed.Sep 18 2019, 2:20 PM

Changed to glClearBuffer.
Still need to do clang formatting.

Jeroen Bakker (jbakker) marked an inline comment as done.Sep 18 2019, 3:58 PM

@Clément Foucault (fclem) Bug has been confirmed and have been solved at AMD. Their advice: Tell our users to not use that driver :-)
... now how to limit the number of bug reports the upcoming month orso.
I would suggest to not commit this work-around.

Abandon this revision as the drivers have been updated.