In preparation for adding third mode of query. In DRM one
has a specific IOCTL for requesting the DRM kernel driver to
issue events when a particular vertical blanking period
passes. Here one aims to introduce similar IOCTL for requesting
PVR kernel driver to issue events whenever a particular frame
gets rendered in full. And instead of introducing entirely new
IOCTL, one instead aims to extend an existing call with a new
mode. This is accomplished by replacing the boolean selector
with an integer.
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@nokia.com>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
SGX2DQueryBlitsCompleteKM(psDevInfo,
(struct PVRSRV_KERNEL_SYNC_INFO *)
pvSyncInfo,
- ps2DQueryBltsCompleteIN->
- bWaitForComplete);
+ ps2DQueryBltsCompleteIN->type == _PVR_SYNC_WAIT_BLOCK);
return 0;
}
struct SGX_BRIDGE_INIT_INFO sInitInfo;
};
+enum pvr_sync_wait_seq_type {
+ _PVR_SYNC_WAIT_BLOCK,
+ _PVR_SYNC_WAIT_NONBLOCK,
+};
+
struct PVRSRV_BRIDGE_IN_2DQUERYBLTSCOMPLETE {
u32 ui32BridgeFlags;
void *hDevCookie;
void *hKernSyncInfo;
- IMG_BOOL bWaitForComplete;
+ enum pvr_sync_wait_seq_type type;
};
#define PVRSRV_BRIDGE_SGX_SHAREDPBDESC_MAX_SUBMEMINFOS 10