Based on the vc4 implementation.
Fixes Android RenderEngine::flush() routine:
android.googlesource.com/platform/frameworks/native/+/refs/tags/android-o-mr1-iot-release-smart-clock-fcs/services/surfaceflinger/RenderEngine/RenderEngine.cpp#225
Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
unsigned flags)
{
struct lima_context *ctx = lima_context(pctx);
- if (!lima_ctx_dirty(ctx))
- return;
-
- _lima_flush(ctx, flags & PIPE_FLUSH_END_OF_FRAME);
+ if (lima_ctx_dirty(ctx))
+ _lima_flush(ctx, flags & PIPE_FLUSH_END_OF_FRAME);
if (fence) {
int fd;