st/nine: fix stack corruption due to ABI mismatch
authorAndre Heider <a.heider@gmail.com>
Tue, 6 Nov 2018 08:27:12 +0000 (09:27 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Fri, 9 Nov 2018 21:37:26 +0000 (22:37 +0100)
commit10598c9667a9c5ea04ac8279549b1df8c026ef51
tree4ad946ff7ee66829cc88dec5abd2ea8e1cd829be
parentd2b2364313c33cb27a97f1d6e257392cb4710935
st/nine: fix stack corruption due to ABI mismatch

This fixes various crashes and hangs when using nine's 'thread_submit'
feature.

On 64bit, the thread function's data argument would just be NULL.
On 32bit, the data argument would be garbage depending on the compiler
flags (in my case -march>=core2).

Fixes: f3fa7e3068512d ("st/nine: Use WINE thread for threadpool")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Andre Heider <a.heider@gmail.com>
Reviewed-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/threadpool.c