Home
last modified time | relevance | path

Searched refs:pDC (Results 1 – 25 of 33) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dclip.cpp179 void ClipRectangles(DRAW_CONTEXT* pDC, in ClipRectangles() argument
188 RDTSC_BEGIN(pDC->pContext->pBucketMgr, FEClipRectangles, pDC->drawId); in ClipRectangles()
189 Clipper<SIMD256, 3> clipper(workerId, pDC); in ClipRectangles()
191 RDTSC_END(pDC->pContext->pBucketMgr, FEClipRectangles, 1); in ClipRectangles()
194 void ClipTriangles(DRAW_CONTEXT* pDC, in ClipTriangles() argument
203 RDTSC_BEGIN(pDC->pContext->pBucketMgr, FEClipTriangles, pDC->drawId); in ClipTriangles()
204 Clipper<SIMD256, 3> clipper(workerId, pDC); in ClipTriangles()
206 RDTSC_END(pDC->pContext->pBucketMgr, FEClipTriangles, 1); in ClipTriangles()
209 void ClipLines(DRAW_CONTEXT* pDC, in ClipLines() argument
218 RDTSC_BEGIN(pDC->pContext->pBucketMgr, FEClipLines, pDC->drawId); in ClipLines()
[all …]
Dbackend.cpp47 void ProcessComputeBE(DRAW_CONTEXT* pDC, in ProcessComputeBE() argument
53 SWR_CONTEXT* pContext = pDC->pContext; in ProcessComputeBE()
55 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BEDispatch, pDC->drawId); in ProcessComputeBE()
57 const COMPUTE_DESC* pTaskData = (COMPUTE_DESC*)pDC->pDispatch->GetTasksData(); in ProcessComputeBE()
61 size_t spillFillSize = pDC->pState->state.totalSpillFillSize; in ProcessComputeBE()
64 pSpillFillBuffer = pDC->pArena->AllocAlignedSync(spillFillSize, KNOB_SIMD16_BYTES); in ProcessComputeBE()
68 pDC->pState->state.scratchSpaceSizePerWarp * pDC->pState->state.scratchSpaceNumWarps; in ProcessComputeBE()
71 pScratchSpace = pDC->pArena->AllocAlignedSync(scratchSpaceSize, KNOB_SIMD16_BYTES); in ProcessComputeBE()
74 const API_STATE& state = GetApiState(pDC); in ProcessComputeBE()
84 csContext.scratchSpacePerWarp = pDC->pState->state.scratchSpaceSizePerWarp; in ProcessComputeBE()
[all …]
Dapi.cpp239 DRAW_CONTEXT* pDC = pContext->pCurDrawContext; in QueueWork() local
240 uint32_t dcIndex = pDC->drawId % pContext->MAX_DRAWS_IN_FLIGHT; in QueueWork()
244 pDC->pTileMgr = &pContext->pMacroTileManagerArray[dcIndex]; in QueueWork()
245 pDC->pTileMgr->initialize(); in QueueWork()
293 RDTSC_BEGIN(pContext->pBucketMgr, APIDrawWakeAllThreads, pDC->drawId); in QueueWork()
411 DRAW_CONTEXT* pDC = GetDrawContext(pContext); in GetDrawState() local
412 SWR_ASSERT(pDC->pState != nullptr); in GetDrawState()
414 return &pDC->pState->state; in GetDrawState()
420 DRAW_CONTEXT* pDC = GetDrawContext(pContext); in SwrDestroyContext() local
422 pDC->FeWork.type = SHUTDOWN; in SwrDestroyContext()
[all …]
Dbackend_sample.cpp41 void BackendSampleRate(DRAW_CONTEXT* pDC, in BackendSampleRate() argument
48 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BESampleRateBackend, pDC->drawId); in BackendSampleRate()
49 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BESetup, pDC->drawId); in BackendSampleRate()
51 void* pWorkerData = pDC->pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in BackendSampleRate()
52 const API_STATE& state = GetApiState(pDC); in BackendSampleRate()
70 RDTSC_END(pDC->pContext->pBucketMgr, BESetup, 0); in BackendSampleRate()
100 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BEBarycentric, pDC->drawId); in BackendSampleRate()
107 RDTSC_END(pDC->pContext->pBucketMgr, BEBarycentric, 0); in BackendSampleRate()
133 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BEBarycentric, pDC->drawId); in BackendSampleRate()
149 RDTSC_END(pDC->pContext->pBucketMgr, BEBarycentric, 0); in BackendSampleRate()
[all …]
Dthreads.cpp394 bool CheckDependency(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t lastRetiredDraw) in CheckDependency() argument
396 return pDC->dependent && IDComparesLess(lastRetiredDraw, pDC->drawId - 1); in CheckDependency()
399 bool CheckDependencyFE(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t lastRetiredDraw) in CheckDependencyFE() argument
401 return pDC->dependentFE && IDComparesLess(lastRetiredDraw, pDC->drawId - 1); in CheckDependencyFE()
406 INLINE void UpdateClientStats(SWR_CONTEXT* pContext, uint32_t workerId, DRAW_CONTEXT* pDC) in UpdateClientStats() argument
408 if ((pContext->pfnUpdateStats == nullptr) || (GetApiState(pDC).enableStatsBE == false)) in UpdateClientStats()
413 DRAW_DYNAMIC_STATE& dynState = pDC->dynState; in UpdateClientStats()
426 pContext->pfnUpdateStats(GetPrivateState(pDC), &stats); in UpdateClientStats()
429 INLINE void ExecuteCallbacks(SWR_CONTEXT* pContext, uint32_t workerId, DRAW_CONTEXT* pDC) in ExecuteCallbacks() argument
431 UpdateClientStats(pContext, workerId, pDC); in ExecuteCallbacks()
[all …]
Dbackend_singlesample.cpp41 void BackendSingleSample(DRAW_CONTEXT* pDC, in BackendSingleSample() argument
48 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BESingleSampleBackend, pDC->drawId); in BackendSingleSample()
49 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BESetup, pDC->drawId); in BackendSingleSample()
51 void* pWorkerData = pDC->pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in BackendSingleSample()
53 const API_STATE& state = GetApiState(pDC); in BackendSingleSample()
72 RDTSC_END(pDC->pContext->pBucketMgr, BESetup, 1); in BackendSingleSample()
120 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BEBarycentric, pDC->drawId); in BackendSingleSample()
132 RDTSC_END(pDC->pContext->pBucketMgr, BEBarycentric, 1); in BackendSingleSample()
150 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BEEarlyDepthTest, pDC->drawId); in BackendSingleSample()
162 RDTSC_END(pDC->pContext->pBucketMgr, BEEarlyDepthTest, 0); in BackendSingleSample()
[all …]
Dbackend_clear.cpp60 INLINE void ClearMacroTile(DRAW_CONTEXT* pDC, in ClearMacroTile() argument
114 const int32_t numSamples = GetNumSamples(pDC->pState->state.rastState.sampleCount); in ClearMacroTile()
123 HOTTILE* pHotTile = pDC->pContext->pHotTileMgr->GetHotTile(pDC->pContext, in ClearMacroTile()
124 pDC, in ClearMacroTile()
158 void ProcessClearBE(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pUserData) in ProcessClearBE() argument
160 SWR_CONTEXT* pContext = pDC->pContext; in ProcessClearBE()
166 SWR_MULTISAMPLE_COUNT sampleCount = pDC->pState->state.rastState.sampleCount; in ProcessClearBE()
171 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BEClear, pDC->drawId); in ProcessClearBE()
183 pDC, in ProcessClearBE()
203 pDC, in ProcessClearBE()
[all …]
Dfrontend.cpp51 void ProcessSync(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t workerId, void* pUserData) in ProcessSync() argument
57 MacroTileMgr* pTileMgr = pDC->pTileMgr; in ProcessSync()
67 void ProcessShutdown(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t workerId, void* pUserData) in ProcessShutdown() argument
73 MacroTileMgr* pTileMgr = pDC->pTileMgr; in ProcessShutdown()
94 void ProcessClear(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t workerId, void* pUserData) in ProcessClear() argument
97 MacroTileMgr* pTileMgr = pDC->pTileMgr; in ProcessClear()
127 void ProcessStoreTiles(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t workerId, void* pUserData) in ProcessStoreTiles() argument
129 RDTSC_BEGIN(pContext->pBucketMgr, FEProcessStoreTiles, pDC->drawId); in ProcessStoreTiles()
130 MacroTileMgr* pTileMgr = pDC->pTileMgr; in ProcessStoreTiles()
165 DRAW_CONTEXT* pDC, in ProcessDiscardInvalidateTiles() argument
[all …]
Drasterizer.cpp45 void RasterizeLine(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pData) in RasterizeLine() argument
56 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BERasterizeLine, pDC->drawId); in RasterizeLine()
58 const API_STATE& state = GetApiState(pDC); in RasterizeLine()
98 __m128 vLineWidth = _mm_set1_ps(pDC->pState->state.rastState.lineWidth); in RasterizeLine()
161 (pDC->pState->state.scissorsTileAligned == false)); in RasterizeLine()
175 pfnTriRast(pDC, workerId, macroTile, (void*)&newWorkDesc); in RasterizeLine()
245 pfnTriRast(pDC, workerId, macroTile, (void*)&newWorkDesc); in RasterizeLine()
248 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BERasterizeLine, 1); in RasterizeLine()
251 void RasterizeSimplePoint(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pData) in RasterizeSimplePoint() argument
261 const BACKEND_FUNCS& backendFuncs = pDC->pState->backendFuncs; in RasterizeSimplePoint()
[all …]
Dcontext.h146 typedef void (*PFN_WORK_FUNC)(DRAW_CONTEXT* pDC,
177 DRAW_CONTEXT* pDC; member
198 DRAW_CONTEXT* pDC,
226 typedef void (*PFN_PROCESS_PRIMS)(DRAW_CONTEXT* pDC,
236 typedef void(SIMDCALL* PFN_PROCESS_PRIMS_SIMD16)(DRAW_CONTEXT* pDC,
462 INLINE const API_STATE& GetApiState(const DRAW_CONTEXT* pDC) in GetApiState() argument
464 SWR_ASSERT(pDC != nullptr); in GetApiState()
465 SWR_ASSERT(pDC->pState != nullptr); in GetApiState()
467 return pDC->pState->state; in GetApiState()
470 INLINE void* GetPrivateState(const DRAW_CONTEXT* pDC) in GetPrivateState() argument
[all …]
Dbackend.h37 void ProcessComputeBE(DRAW_CONTEXT* pDC,
42 void ProcessSyncBE(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pUserData);
43 void ProcessClearBE(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pUserData);
44 void ProcessStoreTilesBE(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pData);
45 void ProcessDiscardInvalidateTilesBE(DRAW_CONTEXT* pDC,
49 void ProcessShutdownBE(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pUserData);
Dtilemgr.cpp92 DRAW_CONTEXT* pDC, in GetHotTile() argument
187 pContext->pfnStoreTile(pDC, in GetHotTile()
197 pContext->pfnLoadTile(pDC, in GetHotTile()
214 DRAW_CONTEXT* pDC, in GetHotTileNoLoad() argument
341 DRAW_CONTEXT* pDC, in InitializeHotTiles() argument
345 const API_STATE& state = GetApiState(pDC); in InitializeHotTiles()
346 HANDLE hWorkerPrivateData = pDC->pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in InitializeHotTiles()
362 pDC, in InitializeHotTiles()
371 RDTSC_BEGIN(pContext->pBucketMgr, BELoadTiles, pDC->drawId); in InitializeHotTiles()
373 pContext->pfnLoadTile(pDC, in InitializeHotTiles()
[all …]
Dbinner.cpp40 void BinPostSetupLinesImpl(DRAW_CONTEXT* pDC,
51 void BinPostSetupPointsImpl(DRAW_CONTEXT* pDC,
74 DRAW_CONTEXT* pDC, PA_STATE& pa, uint32_t triIndex, uint32_t primId, float* pBuffer) in ProcessAttributes() argument
77 const SWR_BACKEND_STATE& backendState = pDC->pState->state.backendState; in ProcessAttributes()
81 const uint32_t provokingVertex = pDC->pState->state.frontendState.topologyProvokingVertex; in ProcessAttributes()
350 uint32_t SIMDCALL EarlyRasterizer(DRAW_CONTEXT* pDC, in EarlyRasterizer() argument
377 RDTSC_EVENT(pDC->pContext->pBucketMgr, in EarlyRasterizer()
646 RDTSC_EVENT(pDC->pContext->pBucketMgr, in EarlyRasterizer()
667 void SIMDCALL BinTrianglesImpl(DRAW_CONTEXT* pDC, in BinTrianglesImpl() argument
678 RDTSC_BEGIN(pDC->pContext->pBucketMgr, FEBinTriangles, pDC->drawId); in BinTrianglesImpl()
[all …]
Dbackend_impl.h632 INLINE void SetRenderHotTilesDirty(DRAW_CONTEXT* pDC, RenderOutputBuffers& renderBuffers)
634 const API_STATE& state = GetApiState(pDC);
731 pDC(DC),
777 RDTSC_BEGIN(psContext.pBucketManager, BEBarycentric, pDC->drawId);
866 DRAW_CONTEXT* pDC;
917 INLINE void OutputMerger8x2(DRAW_CONTEXT* pDC,
988 AlphaInfoEvent(pDC->drawId, blendContext.isAlphaTested, blendContext.isAlphaBlended));
1018 void BackendPixelRate(DRAW_CONTEXT* pDC,
1029 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BEPixelRateBackend, pDC->drawId);
1030 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BESetup, pDC->drawId);
[all …]
Drasterizer_impl.h44 void GetRenderHotTiles(DRAW_CONTEXT* pDC,
106 INLINE uint64_t rasterizePartialTile(DRAW_CONTEXT* pDC, in rasterizePartialTile() argument
831 INLINE GenerateSVInnerCoverage(DRAW_CONTEXT* pDC,
845 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BERasterizePartial, pDC->drawId);
847 pDC, startQuadEdgesAdj, pRastEdges);
848 RDTSC_END(pDC->pContext->pBucketMgr, BERasterizePartial, 0);
921 void RasterizeTriangle(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pDesc)
930 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BERasterizeTriangle, pDC->drawId);
931 RDTSC_BEGIN(pDC->pContext->pBucketMgr, BETriangleSetup, pDC->drawId);
933 const API_STATE& state = GetApiState(pDC);
[all …]
Dtilemgr.h144 typedef void (*PFN_DISPATCH)(DRAW_CONTEXT* pDC,
218 void dispatch(DRAW_CONTEXT* pDC, in dispatch() argument
225 mPfnDispatch(pDC, workerId, threadGroupId, pSpillFillBuffer, pScratchSpace); in dispatch()
301 DRAW_CONTEXT* pDC,
306 DRAW_CONTEXT* pDC,
315 DRAW_CONTEXT* pDC,
Dfrontend.h368 bool CanUseSimplePoints(DRAW_CONTEXT* pDC) in CanUseSimplePoints() argument
370 const API_STATE& state = GetApiState(pDC); in CanUseSimplePoints()
396 void ProcessClear(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t workerId, void* pUserData);
398 DRAW_CONTEXT* pDC,
402 DRAW_CONTEXT* pDC,
405 void ProcessSync(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t workerId, void* pUserData);
406 void ProcessShutdown(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t workerId, void* pUserData);
414 void BinPoints(DRAW_CONTEXT* pDC,
422 void BinLines(DRAW_CONTEXT* pDC,
431 void SIMDCALL BinPoints_simd16(DRAW_CONTEXT* pDC,
[all …]
Dclip.h203 void BinFunc(DRAW_CONTEXT* pDC,
214 pfnBinFunc(pDC, pa, workerId, prims, primMask, primID, viewportIdx, rtIdx);
265 void BinFunc(DRAW_CONTEXT* pDC,
276 pfnBinFunc(pDC, pa, workerId, prims, primMask, primID, viewportIdx, rtIdx);
318 workerId(in_workerId), pDC(in_pDC), state(GetApiState(in_pDC))
558 pa.pDC->pState->state.rastState.conservativeRast);
696 PA_STATE_OPT clipPA(pDC,
726 pDC, clipPA, workerId, attrib, primMask, primID, viewportIdx, rtIdx);
744 SWR_ASSERT(pa.pDC != nullptr);
747 pa.pDC->pState->state.rastState.conservativeRast);
[all …]
/external/OpenCL-CTS/test_conformance/d3d11/
Dbuffer.cpp54 ID3D11DeviceContext* pDC, in SubTestBuffer() argument
97 hr = pDC->Map( in SubTestBuffer()
105 pDC->Unmap(pStagingBuffer, 0); in SubTestBuffer()
117 pDC->CopySubresourceRegion( in SubTestBuffer()
128 pDC->CopySubresourceRegion( in SubTestBuffer()
233 hr = pDC->Map( in SubTestBuffer()
241 pDC->Unmap(pStagingBuffer, 0); in SubTestBuffer()
253 pDC->CopySubresourceRegion( in SubTestBuffer()
264 pDC->CopySubresourceRegion( in SubTestBuffer()
276 hr = pDC->Map( in SubTestBuffer()
[all …]
Dtexture3d.cpp97 ID3D11DeviceContext* pDC, in SubTestTexture3D() argument
183 hr = pDC->Map( in SubTestTexture3D()
190 pDC->Unmap(pStagingBuffer, 0); in SubTestTexture3D()
199 pDC->CopySubresourceRegion( in SubTestTexture3D()
405 hr = pDC->Map( in SubTestTexture3D()
413 pDC->Unmap(pStagingBuffer, 0); in SubTestTexture3D()
422 pDC->CopySubresourceRegion( in SubTestTexture3D()
436 hr = pDC->Map( in SubTestTexture3D()
446 pDC->Unmap(pStagingBuffer, 0); in SubTestTexture3D()
473 ID3D11DeviceContext* pDC) in TestDeviceTexture3D() argument
[all …]
Dmain.cpp46 ID3D11DeviceContext* pDC = NULL; in main() local
64 HarnessD3D11_CreateDevice(pAdapter, &pDevice, &pDC); in main()
74 TestAdapterDevices(platform, pAdapter, pDevice, pDC, num_devices); in main()
204 ID3D11DeviceContext* pDC, in TestAdapterDevices() argument
233 TestDevice(devices[i], pDevice, pDC); in TestAdapterDevices()
240 ID3D11DeviceContext* pDC) in TestDevice() argument
280 pDC); in TestDevice()
288 pDC); in TestDevice()
296 pDC); in TestDevice()
Dharness.h167 ID3D11DeviceContext* pDC,
173 ID3D11DeviceContext* pDC);
185 ID3D11DeviceContext* pDC);
192 ID3D11DeviceContext* pDC);
199 ID3D11DeviceContext* pDC);
Dtexture2d.cpp164 ID3D11DeviceContext* pDC, in SubTestTexture2D() argument
256 hr = pDC->Map( in SubTestTexture2D()
263 pDC->Unmap(pStagingBuffer, 0); in SubTestTexture2D()
272 pDC->CopySubresourceRegion( in SubTestTexture2D()
567 hr = pDC->Map( in SubTestTexture2D()
575 pDC->Unmap(pStagingBuffer, 0); in SubTestTexture2D()
584 pDC->CopySubresourceRegion( in SubTestTexture2D()
598 hr = pDC->Map( in SubTestTexture2D()
608 pDC->Unmap(pStagingBuffer, 0); in SubTestTexture2D()
655 ID3D11DeviceContext* pDC) in TestDeviceTexture2D() argument
[all …]
/external/mesa3d/src/gallium/drivers/swr/
Dswr_memory.h34 DRAW_CONTEXT *pDC = (DRAW_CONTEXT*)hDC; in swr_LoadHotTile() local
35 swr_draw_context *pSDC = (swr_draw_context*)GetPrivateState(pDC); in swr_LoadHotTile()
38 …pSDC->pTileAPI->pfnSwrLoadHotTile(hWorkerPrivateData, pSrcSurface, pDC->pContext->pBucketMgr, dstF… in swr_LoadHotTile()
49 DRAW_CONTEXT *pDC = (DRAW_CONTEXT*)hDC; in swr_StoreHotTile() local
50 swr_draw_context *pSDC = (swr_draw_context*)GetPrivateState(pDC); in swr_StoreHotTile()
53 …pSDC->pTileAPI->pfnSwrStoreHotTileToSurface(hWorkerPrivateData, pDstSurface, pDC->pContext->pBucke… in swr_StoreHotTile()
Dswr_context.cpp434 swr_draw_context *pDC = (swr_draw_context*)hPrivateContext; in swr_UpdateStats() local
436 if (!pDC) in swr_UpdateStats()
439 struct swr_query_result *pqr = pDC->pStats; in swr_UpdateStats()
451 swr_draw_context *pDC = (swr_draw_context*)hPrivateContext; in swr_UpdateStatsFE() local
453 if (!pDC) in swr_UpdateStatsFE()
456 struct swr_query_result *pqr = pDC->pStats; in swr_UpdateStatsFE()
480 swr_draw_context *pDC = (swr_draw_context*)hPrivateContext; in swr_UpdateStreamOut() local
482 if (!pDC) in swr_UpdateStreamOut()
485 if (pDC->soPrims) in swr_UpdateStreamOut()
486 *pDC->soPrims += numPrims; in swr_UpdateStreamOut()

12