From 057b1075b6d7e74fb8fa3bc7c5fc19d693afa66b Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Tue, 28 Jul 2015 23:43:03 +0200 Subject: [PATCH] ta/mt: add rend_framePending? for better mt sync from clients --- core/hw/pvr/ta_ctx.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/hw/pvr/ta_ctx.cpp b/core/hw/pvr/ta_ctx.cpp index 12c237159..1e3b88136 100644 --- a/core/hw/pvr/ta_ctx.cpp +++ b/core/hw/pvr/ta_ctx.cpp @@ -113,6 +113,14 @@ TA_context* DequeueRender() return rv; } +bool rend_framePending() { + mtx_rqueue.Lock(); + TA_context* rv = rqueue; + mtx_rqueue.Unlock(); + + return rv != 0; +} + void FinishRender(TA_context* ctx) { verify(rqueue == ctx);