From: Stanislav Vorobiov Date: Thu, 17 Apr 2014 08:28:36 +0000 (+0400) Subject: YaGL: Fix transport separate short command skip bug X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~406 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d8e749baf4b053639581bc11e5664dc182e621d;p=sdk%2Femulator%2Fqemu.git YaGL: Fix transport separate short command skip bug Separate short commands (1 unit long) could be skipped due to incorrect check, this is now fixed Change-Id: I8736abb171e35563580407a25cdffadfc589ed18 Signed-off-by: Stanislav Vorobiov --- diff --git a/hw/yagl/yagl_transport.c b/hw/yagl/yagl_transport.c index 56da9c8b4a..00919878d9 100644 --- a/hw/yagl/yagl_transport.c +++ b/hw/yagl/yagl_transport.c @@ -236,7 +236,7 @@ bool yagl_transport_begin_call(struct yagl_transport *t, yagl_api_id *api_id, yagl_func_id *func_id) { - if (t->ptr >= (t->batch_data + t->batch_size)) { + if (t->ptr >= (t->batch_data + YAGL_TRANSPORT_BATCH_HEADER_SIZE + t->batch_size)) { return false; }