From fc6bb86179feaa773425a6cd670c27e3c2844a33 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Mon, 10 May 2010 17:31:50 +0300 Subject: [PATCH] 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 --- pvr/bridged_pvr_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5