From 059b25522a83f5a59a85100bab51a0b00b005910 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 18 Feb 2018 21:41:20 +0100 Subject: [PATCH] fb_accel_sti: fix render errors --- src/driver/fb_accel_sti.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/driver/fb_accel_sti.cpp b/src/driver/fb_accel_sti.cpp index 5783eb449..4dc5d957d 100644 --- a/src/driver/fb_accel_sti.cpp +++ b/src/driver/fb_accel_sti.cpp @@ -366,12 +366,20 @@ void CFbAccelSTi::run() void CFbAccelSTi::blit() { //printf(LOGTAG "::blit\n"); +#if 0 + /* After 99ff4857 "change time_monotonic_ms() from time_t to int64_t" + * this is no longer needed. And it leads to rendering errors. + * Safest would be "blit_mutex.timedlock(timeout)", but that does not + * exist... */ int status = blit_mutex.trylock(); if (status) { printf(LOGTAG "::blit trylock failed: %d (%s)\n", status, (status > 0) ? strerror(status) : strerror(errno)); return; } +#else + blit_mutex.lock(); +#endif blit_cond.signal(); blit_mutex.unlock(); }