Home
last modified time | relevance | path

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

12

/third_party/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 …]
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_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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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);
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 …]
Drasterizer.h35 void RasterizeLine(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pData);
36 void RasterizeSimplePoint(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pData);
37 void RasterizeTriPoint(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pData);
Dpa.h70 DRAW_CONTEXT* pDC{nullptr}; // draw context
93 pDC(in_pDC), in PA_STATE()
185 PA_STATE_OPT(DRAW_CONTEXT* pDC,
466 PA_STATE_CUT(DRAW_CONTEXT* pDC, in PA_STATE_CUT()
476 PA_STATE(pDC, in_pStream, in_streamSizeInVerts, in_vertexStride, in_numVertsPerPrim) in PA_STATE_CUT()
499 bool gsEnabled = pDC->pState->state.gsState.gsEnable; in PA_STATE_CUT()
1604 PA_FACTORY(DRAW_CONTEXT* pDC, in PA_FACTORY()
1614 const API_STATE& state = GetApiState(pDC); in PA_FACTORY()
1627 new (&this->paCut) PA_STATE_CUT(pDC, in PA_FACTORY()
1643 new (&this->paOpt) PA_STATE_OPT(pDC, in PA_FACTORY()
/third_party/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.cpp441 swr_draw_context *pDC = (swr_draw_context*)hPrivateContext; in swr_UpdateStats() local
443 if (!pDC) in swr_UpdateStats()
446 struct swr_query_result *pqr = pDC->pStats; in swr_UpdateStats()
458 swr_draw_context *pDC = (swr_draw_context*)hPrivateContext; in swr_UpdateStatsFE() local
460 if (!pDC) in swr_UpdateStatsFE()
463 struct swr_query_result *pqr = pDC->pStats; in swr_UpdateStatsFE()
487 swr_draw_context *pDC = (swr_draw_context*)hPrivateContext; in swr_UpdateStreamOut() local
489 if (!pDC) in swr_UpdateStreamOut()
492 if (pDC->soPrims) in swr_UpdateStreamOut()
493 *pDC->soPrims += numPrims; in swr_UpdateStreamOut()
Dswr_state.cpp958 swr_draw_context *pDC = &ctx->swrDC; in swr_update_constants() local
966 constant = pDC->constantVS; in swr_update_constants()
967 num_constants = pDC->num_constantsVS; in swr_update_constants()
971 constant = pDC->constantFS; in swr_update_constants()
972 num_constants = pDC->num_constantsFS; in swr_update_constants()
976 constant = pDC->constantGS; in swr_update_constants()
977 num_constants = pDC->num_constantsGS; in swr_update_constants()
981 constant = pDC->constantTCS; in swr_update_constants()
982 num_constants = pDC->num_constantsTCS; in swr_update_constants()
986 constant = pDC->constantTES; in swr_update_constants()
[all …]
Dswr_draw.cpp342 struct swr_draw_context *pDC = &ctx->swrDC; in swr_store_render_target() local
343 struct SWR_SURFACE_STATE *renderTarget = &pDC->renderTargets[attachment]; in swr_store_render_target()
370 swr_draw_context *pDC = &ctx->swrDC; in swr_store_dirty_resource() local
371 SWR_SURFACE_STATE *renderTargets = pDC->renderTargets; in swr_store_dirty_resource()
Dswr_context.h217 swr_draw_context *pDC =
221 memcpy(pDC, &ctx->swrDC, sizeof(swr_draw_context));

12