Lines Matching refs:OsGpuContext
108 if (pContext->OsGpuContext[iLoop].pCB != NULL) { in IntelGen_OsClear_OsGpuContext()
109 GENOS_FreeMemory(pContext->OsGpuContext[iLoop].pCB); in IntelGen_OsClear_OsGpuContext()
110 pContext->OsGpuContext[iLoop].pCB = NULL; in IntelGen_OsClear_OsGpuContext()
113 if (pContext->OsGpuContext[iLoop].pAllocationList != NULL) { in IntelGen_OsClear_OsGpuContext()
115 OsGpuContext[iLoop].pAllocationList); in IntelGen_OsClear_OsGpuContext()
116 pContext->OsGpuContext[iLoop].pAllocationList = NULL; in IntelGen_OsClear_OsGpuContext()
119 if (pContext->OsGpuContext[iLoop].pPatchLocationList) { in IntelGen_OsClear_OsGpuContext()
120 GENOS_FreeMemory(pContext->OsGpuContext in IntelGen_OsClear_OsGpuContext()
122 pContext->OsGpuContext[iLoop].pPatchLocationList = NULL; in IntelGen_OsClear_OsGpuContext()
125 if (pContext->OsGpuContext[iLoop].pResources != NULL) { in IntelGen_OsClear_OsGpuContext()
127 OsGpuContext[iLoop].pResources); in IntelGen_OsClear_OsGpuContext()
128 pContext->OsGpuContext[iLoop].pResources = NULL; in IntelGen_OsClear_OsGpuContext()
131 if (pContext->OsGpuContext[iLoop].pbWriteMode != NULL) { in IntelGen_OsClear_OsGpuContext()
133 OsGpuContext[iLoop].pbWriteMode); in IntelGen_OsClear_OsGpuContext()
134 pContext->OsGpuContext[iLoop].pbWriteMode = NULL; in IntelGen_OsClear_OsGpuContext()
137 pContext->OsGpuContext[iLoop].uiMaxNumAllocations = 0; in IntelGen_OsClear_OsGpuContext()
138 pContext->OsGpuContext[iLoop].uiMaxPatchLocationsize = 0; in IntelGen_OsClear_OsGpuContext()
206 pOsGpuContext = &pOsContext->OsGpuContext[GpuContext]; in Ctx_ReturnCommandBuffer()
227 pOsGpuContext = &pOsContext->OsGpuContext[GpuContext]; in Ctx_FlushCommandBuffer()
348 GENOS_FreeMemAndSetNull(pOsContext->OsGpuContext[i].pCB); in Ctx_Destroy()
350 pCurrCB = pOsContext->OsGpuContext[i].pStartCB; in Ctx_Destroy()
432 pContext->OsGpuContext[i].pStartCB = NULL; in Ctx_InitContext()
433 pContext->OsGpuContext[i].pCurrentCB = NULL; in Ctx_InitContext()
434 pContext->OsGpuContext[i].bCBFlushed = TRUE; in Ctx_InitContext()
435 pContext->OsGpuContext[i].uiCommandBufferSize = in Ctx_InitContext()
437 pContext->OsGpuContext[i].pCB = (PGENOS_COMMAND_BUFFER) in Ctx_InitContext()
440 if (NULL == pContext->OsGpuContext[i].pCB) { in Ctx_InitContext()
445 pContext->OsGpuContext[i].pAllocationList = (ALLOCATION_LIST *) in Ctx_InitContext()
448 if (NULL == pContext->OsGpuContext[i].pAllocationList) { in Ctx_InitContext()
455 pContext->OsGpuContext[i].uiMaxNumAllocations = in Ctx_InitContext()
458 pContext->OsGpuContext[i].pPatchLocationList = in Ctx_InitContext()
462 if (NULL == pContext->OsGpuContext[i].pPatchLocationList) { in Ctx_InitContext()
469 pContext->OsGpuContext[i].uiMaxPatchLocationsize = in Ctx_InitContext()
472 pContext->OsGpuContext[i].pResources = (PGENOS_RESOURCE) in Ctx_InitContext()
475 if (NULL == pContext->OsGpuContext[i].pResources) { in Ctx_InitContext()
483 pContext->OsGpuContext[i].pbWriteMode = in Ctx_InitContext()
486 if (NULL == pContext->OsGpuContext[i].pbWriteMode) { in Ctx_InitContext()
539 &pOsContext->OsGpuContext[pOsInterface->CurrentGpuContextOrdinal]; in IntelGen_OsResetOsStates()
813 &pOsContext->OsGpuContext[pOsInterface->CurrentGpuContextOrdinal]; in IntelGen_OsSetPatchEntry()
843 &pOsContext->OsGpuContext[pOsInterface->CurrentGpuContextOrdinal]; in IntelGen_OsRegisterResource()
881 GENOS_OS_GPU_CONTEXT OsGpuContext; in IntelGen_OsVerifyCommandBufferSize() local
887 OsGpuContext = in IntelGen_OsVerifyCommandBufferSize()
888 pOsContext->OsGpuContext[pOsInterface->CurrentGpuContextOrdinal]; in IntelGen_OsVerifyCommandBufferSize()
890 if (OsGpuContext.uiCommandBufferSize < dwRequestedSize) { in IntelGen_OsVerifyCommandBufferSize()
923 &pOsContext->OsGpuContext[pOsInterface->CurrentGpuContextOrdinal]; in IntelGen_OsGetCommandBuffer()
989 GENOS_OS_GPU_CONTEXT OsGpuContext; in IntelGen_OsGetIndirectState() local
993 OsGpuContext = in IntelGen_OsGetIndirectState()
995 OsGpuContext[pOsInterface->CurrentGpuContextOrdinal]; in IntelGen_OsGetIndirectState()
999 OsGpuContext.uiCommandBufferSize - in IntelGen_OsGetIndirectState()
1028 GENOS_OS_GPU_CONTEXT OsGpuContext; in IntelGen_OsGetIndirectStatePointer() local
1037 OsGpuContext = in IntelGen_OsGetIndirectStatePointer()
1039 OsGpuContext[pOsInterface->CurrentGpuContextOrdinal]; in IntelGen_OsGetIndirectStatePointer()
1041 if (OsGpuContext.pCB && OsGpuContext.pCB->pCmdBase) { in IntelGen_OsGetIndirectStatePointer()
1043 (PBYTE) OsGpuContext.pCB->pCmdBase + in IntelGen_OsGetIndirectStatePointer()
1044 OsGpuContext.uiCommandBufferSize - in IntelGen_OsGetIndirectStatePointer()
1099 GENOS_OS_CHK_NULL_WITH_HR(pOsContext->OsGpuContext); in IntelGen_OsSubmitCommandBuffer()
1100 pOsGpuContext = &pOsContext->OsGpuContext[GpuContext]; in IntelGen_OsSubmitCommandBuffer()
1207 &(pOsContext->OsGpuContext[pOsInterface->CurrentGpuContextOrdinal]); in IntelGen_OsResizeCommandBufferAndPatchList()
1258 GENOS_OS_CHK_NULL_WITH_HR(pOsContext->OsGpuContext); in IntelGen_OsResizeCommandBuffer()
1259 pOsGpuContext = &pOsContext->OsGpuContext[GpuContext]; in IntelGen_OsResizeCommandBuffer()
1455 &pOsContext->OsGpuContext[pOsInterface->CurrentGpuContextOrdinal]; in IntelGen_OsResetCommandBuffer()