gpu: pvr: fix handle allocation when sharing sync objects
authorImre Deak <imre.deak@nokia.com>
Mon, 10 May 2010 14:31:50 +0000 (17:31 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:41 +0000 (21:09 +0300)
This is needed by an upcoming patch fixing sync object sharing, which
requires support for multiple sync object handles pointing to the same
sync object. This will work if the handles are allocated in different
processes, but will fail if allocted within a single process. Fix this
by explicitly allowing the handle framework to allocate multiple
handles for the same object within a single process.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
pvr/bridged_pvr_bridge.c

index 573aba0..0c3982e 100644 (file)
@@ -952,7 +952,7 @@ static int PVRSRVWrapExtMemoryBW(u32 ui32BridgeID,
                                                               hKernelSyncInfo,
                               (void *)psMemInfo->psKernelSyncInfo,
                               PVRSRV_HANDLE_TYPE_SYNC_INFO,
-                              PVRSRV_HANDLE_ALLOC_FLAG_NONE,
+                              PVRSRV_HANDLE_ALLOC_FLAG_MULTI,
                               psWrapExtMemOUT->sClientMemInfo.hKernelMemInfo);
 
        COMMIT_HANDLE_BATCH_OR_ERROR(psWrapExtMemOUT->eError, psPerProc);