Download Graphics Driver Manual for 2D core of S6E2D devices

Transcript
A P P L I C A T I O N
N O T E
11.7 Synchronization API
Synchronization API - Synchronization of framebuffer operations.
Data Structures
− struct MML_GDC_SYNC_CONTAINER
Typedefs
− typedef MML_GDC_SYNC_CONTAINER ∗ MML_GDC_SYNC
Functions
− MM_ERROR mmlGdcSyncReset (MML_GDC_SYNC sync)
− MM_ERROR mmlGdcSyncWait (MML_GDC_SYNC sync, MM_S32 timeout)
− MM_ERROR mmlGdcSyncIncr (MML_GDC_SYNC sync, MM_S32 incr)
11.7.1
Detailed Description
Synchronization API - Synchronization of framebuffer operations.
#include "mml_gdc_sync.h"
The Synchronization API provides mechanisms to synchronize framebuffer operations. These are
− 2D graphics operations (e.g., blt finished).
− Display operations (e.g., framebuffer displayed, VSync happened).
Synchronization is achieved through sync objects - a representation of events whose completion status can
be tested or waited upon. Waiting can be done by
− The CPU (see mmlGdcSyncWait()).
− As part of a graphics operation (more details below).
The function to initialize a sync object, (i.e., setting the sync condition, and the function to perform a wait as
part of a graphics operation are part of the corresponding module’s API):
− 2D operations: See Pixel Engine API.
− Display: See Display API.
11.7.2
Typedef Documentation
11.7.2.1 typedef MML_GDC_SYNC_CONTAINER∗ MML_GDC_SYNC
The sync object definition.
September 11, 2015, S6E2DH_AN709-00022-1v0-E
CONFIDENTIAL
141