From: Imre Deak Date: Mon, 10 May 2010 14:31:50 +0000 (+0300) Subject: gpu: pvr: fix handle allocation when sharing sync objects X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc6bb86179feaa773425a6cd670c27e3c2844a33;p=sgx.git gpu: pvr: fix handle allocation when sharing sync objects 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 --- diff --git a/pvr/bridged_pvr_bridge.c b/pvr/bridged_pvr_bridge.c index 573aba0..0c3982e 100644 --- a/pvr/bridged_pvr_bridge.c +++ b/pvr/bridged_pvr_bridge.c @@ -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);