]> git.sesse.net Git - nageru/commit - mixer.h
Upload the textures from the main thread.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 May 2016 12:34:10 +0000 (14:34 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 May 2016 15:54:03 +0000 (17:54 +0200)
commit64f9314bfe9b21fed7304a4d08a35d80e8c73144
tree97607ed639a1fc705d4563ec637809c1d9c42b52
parenta29ee5d5544e6a5613b14ca31d4107b8846859c5
Upload the textures from the main thread.

The texture upload from the dequeue threads (and then using fences) _should_
work, but there are seemingly driver bugs galore here; AMDs drivers crash
outright, while NVIDIA's are much more subtle, crashing after only days,
and running under apitrace shifts the behavior enough that I don't see it.

Let's try to do all of this from the main thread instead; Nageru is still
multithreaded OpenGL in many places, but with some luck, it will the last of
the NVIDIA crashes (generally manifesting themselves as libGL.so.1 free()ing
some stray pointer that was never actually allocated).
mixer.cpp
mixer.h