Screen tearing in the 36x.xx series of drivers

Hello,

Ever since 361.28 I’ve had obnoxious screen tearing with my compositor. I use compton as my compositing backend and it is using the following config for vsync:

backend = “glx”;
paint-on-overlay = true;
glx-no-stencil = true;
glx-swap-method = 3;
vsync = “opengl-swc”;

These options are new, may be experimental

xrender-sync-fence = true;
#unredir-if-possible = true;

It appears opengl-swc is not working properly. I can send the output from nvidia bug report if it helps.

I should probably also add I have a Maxwell based card (Geforce GTX 980 Ti).
nvidia-bug-report.log.gz (231 KB)

oh, and an extremely important detail that’s likely doing this, when I startx and compton tries to fork, it spits out the following error:

[ 0.05 ] error 167 Unknown request 153 minor 5 serial 255: “GLXBadContext”
[ 0.05 ] error 167 Unknown request 153 minor 4 serial 295: “GLXBadContext”

Just a heads up, it appears that compton has issues when forking in the background with the ‘-b’ option when it didn’t previously. Here’s the bug report:

There’s a workaround, and a minor amount of work to do it, but it’d be nice if this issue could be tracked down.