gpu: pvr: replace boolean by flags in blits complete query
authorTopi Pohjolainen <topi.pohjolainen@nokia.com>
Tue, 27 Apr 2010 11:14:16 +0000 (13:14 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:41 +0000 (21:09 +0300)
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>
pvr/bridged_sgx_bridge.c
pvr/sgx_bridge.h

index adbd436..634fd26 100644 (file)
@@ -1030,8 +1030,7 @@ int SGX2DQueryBlitsCompleteBW(u32 ui32BridgeID,
            SGX2DQueryBlitsCompleteKM(psDevInfo,
                                      (struct PVRSRV_KERNEL_SYNC_INFO *)
                                                              pvSyncInfo,
-                                     ps2DQueryBltsCompleteIN->
-                                                             bWaitForComplete);
+                       ps2DQueryBltsCompleteIN->type == _PVR_SYNC_WAIT_BLOCK);
 
        return 0;
 }
index 0d12fce..86811be 100644 (file)
@@ -216,11 +216,16 @@ struct PVRSRV_BRIDGE_IN_SGXDEVINITPART2 {
        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