Gets rid of zillions of unused variable warnings, made worse by templates.
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
template<uint32_t sampleCountT>
void BackendNullPS(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint32_t y, SWR_TRIANGLE_DESC &work, RenderOutputBuffers &renderBuffers)
{
- SWR_CONTEXT *pContext = pDC->pContext;
-
RDTSC_BEGIN(BENullBackend, pDC->drawId);
///@todo: handle center multisample pattern
RDTSC_BEGIN(BESetup, pDC->drawId);
uint32_t operator()(simdscalar& activeLanes, SWR_PS_CONTEXT& psContext,
const CORE_BUCKETS BEDepthBucket, uint32_t currentSimdIn8x8 = 0)
{
- SWR_CONTEXT *pContext = pDC->pContext;
uint32_t statCount = 0;
simdscalar anyDepthSamplePassed = _simd_setzero_ps();
///@todo: Need to move locals off stack to prevent __chkstk's from being generated for the backend
- SWR_CONTEXT *pContext = pDC->pContext;
-
RDTSC_BEGIN(BEPixelRateBackend, pDC->drawId);
RDTSC_BEGIN(BESetup, pDC->drawId);
template<typename T>
void BackendSampleRate(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint32_t y, SWR_TRIANGLE_DESC &work, RenderOutputBuffers &renderBuffers)
{
- SWR_CONTEXT *pContext = pDC->pContext;
-
RDTSC_BEGIN(BESampleRateBackend, pDC->drawId);
RDTSC_BEGIN(BESetup, pDC->drawId);
template<typename T>
void BackendSingleSample(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint32_t y, SWR_TRIANGLE_DESC &work, RenderOutputBuffers &renderBuffers)
{
- SWR_CONTEXT *pContext = pDC->pContext;
-
RDTSC_BEGIN(BESingleSampleBackend, pDC->drawId);
RDTSC_BEGIN(BESetup, pDC->drawId);
typename SIMD_T::Integer const &viewportIdx,
typename SIMD_T::Integer const &rtIdx)
{
- SWR_CONTEXT *pContext = pDC->pContext;
const uint32_t *aRTAI = reinterpret_cast<const uint32_t *>(&rtIdx);
RDTSC_BEGIN(FEBinTriangles, pDC->drawId);
typename SIMD_T::Integer const &viewportIdx,
typename SIMD_T::Integer const &rtIdx)
{
- SWR_CONTEXT *pContext = pDC->pContext;
-
RDTSC_BEGIN(FEBinPoints, pDC->drawId);
typename SIMD_T::Vec4 &primVerts = prim[0];
typename SIMD_T::Integer const &viewportIdx,
typename SIMD_T::Integer const &rtIdx)
{
- SWR_CONTEXT *pContext = pDC->pContext;
const uint32_t *aRTAI = reinterpret_cast<const uint32_t *>(&rtIdx);
RDTSC_BEGIN(FEBinLines, pDC->drawId);
void ClipTriangles(DRAW_CONTEXT *pDC, PA_STATE& pa, uint32_t workerId, simdvector prims[], uint32_t primMask,
simdscalari const &primId, simdscalari const &viewportIdx, simdscalari const &rtIdx)
{
- SWR_CONTEXT *pContext = pDC->pContext;
RDTSC_BEGIN(FEClipTriangles, pDC->drawId);
Clipper<SIMD256, 3> clipper(workerId, pDC);
clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx);
void ClipLines(DRAW_CONTEXT *pDC, PA_STATE& pa, uint32_t workerId, simdvector prims[], uint32_t primMask,
simdscalari const &primId, simdscalari const &viewportIdx, simdscalari const &rtIdx)
{
- SWR_CONTEXT *pContext = pDC->pContext;
RDTSC_BEGIN(FEClipLines, pDC->drawId);
Clipper<SIMD256, 2> clipper(workerId, pDC);
clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx);
void ClipPoints(DRAW_CONTEXT *pDC, PA_STATE& pa, uint32_t workerId, simdvector prims[], uint32_t primMask,
simdscalari const &primId, simdscalari const &viewportIdx, simdscalari const &rtIdx)
{
- SWR_CONTEXT *pContext = pDC->pContext;
RDTSC_BEGIN(FEClipPoints, pDC->drawId);
Clipper<SIMD256, 1> clipper(workerId, pDC);
clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx);
void SIMDCALL ClipTriangles_simd16(DRAW_CONTEXT *pDC, PA_STATE& pa, uint32_t workerId, simd16vector prims[], uint32_t primMask,
simd16scalari const &primId, simd16scalari const &viewportIdx, simd16scalari const &rtIdx)
{
- SWR_CONTEXT *pContext = pDC->pContext;
RDTSC_BEGIN(FEClipTriangles, pDC->drawId);
enum { VERTS_PER_PRIM = 3 };
void SIMDCALL ClipLines_simd16(DRAW_CONTEXT *pDC, PA_STATE& pa, uint32_t workerId, simd16vector prims[], uint32_t primMask,
simd16scalari const &primId, simd16scalari const &viewportIdx, simd16scalari const &rtIdx)
{
- SWR_CONTEXT *pContext = pDC->pContext;
RDTSC_BEGIN(FEClipLines, pDC->drawId);
enum { VERTS_PER_PRIM = 2 };
void SIMDCALL ClipPoints_simd16(DRAW_CONTEXT *pDC, PA_STATE& pa, uint32_t workerId, simd16vector prims[], uint32_t primMask,
simd16scalari const &primId, simd16scalari const &viewportIdx, simd16scalari const &rtIdx)
{
- SWR_CONTEXT *pContext = pDC->pContext;
RDTSC_BEGIN(FEClipPoints, pDC->drawId);
enum { VERTS_PER_PRIM = 1 };
{
SWR_ASSERT(pa.pDC != nullptr);
- SWR_CONTEXT *pContext = pa.pDC->pContext;
-
BinnerChooser<SIMD_T> binner(pa.binTopology, pa.pDC->pState->state.rastState.conservativeRast);
// update clipper invocations pipeline stat
#define UPDATE_STAT_FE(name, count) if (GetApiState(pDC).enableStatsFE) { pDC->dynState.statsFE.name += count; }
// ArchRast instrumentation framework
-#define AR_WORKER_CTX pContext->pArContext[workerId]
-#define AR_API_CTX pContext->pArContext[pContext->NumWorkerThreads]
+#define AR_WORKER_CTX pDC->pContext->pArContext[workerId]
+#define AR_API_CTX pDC->pContext->pArContext[pContext->NumWorkerThreads]
#ifdef KNOB_ENABLE_RDTSC
#define RDTSC_BEGIN(type, drawid) RDTSC_START(type)
uint32_t* pPrimData,
uint32_t streamIndex)
{
- SWR_CONTEXT *pContext = pDC->pContext;
-
RDTSC_BEGIN(FEStreamout, pDC->drawId);
const API_STATE& state = GetApiState(pDC);
#endif
simdscalari const &primID)
{
- SWR_CONTEXT *pContext = pDC->pContext;
-
RDTSC_BEGIN(FEGeometryShader, pDC->drawId);
const API_STATE& state = GetApiState(pDC);
#endif
simdscalari const &primID)
{
- SWR_CONTEXT *pContext = pDC->pContext;
const API_STATE& state = GetApiState(pDC);
const SWR_TS_STATE& tsState = state.tsState;
void RasterizeLine(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t macroTile, void *pData)
{
- SWR_CONTEXT *pContext = pDC->pContext;
const TRIANGLE_WORK_DESC &workDesc = *((TRIANGLE_WORK_DESC*)pData);
#if KNOB_ENABLE_TOSS_POINTS
if (KNOB_TOSS_BIN_TRIS)
void RasterizeSimplePoint(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t macroTile, void* pData)
{
- SWR_CONTEXT *pContext = pDC->pContext;
-
#if KNOB_ENABLE_TOSS_POINTS
if (KNOB_TOSS_BIN_TRIS)
{
{
INLINE GenerateSVInnerCoverage(DRAW_CONTEXT* pDC, uint32_t workerId, EDGE* pRastEdges, double* pStartQuadEdges, uint64_t &innerCoverageMask)
{
- SWR_CONTEXT *pContext = pDC->pContext;
-
double startQuadEdgesAdj[RT::NumEdgesT::value];
for(uint32_t e = 0; e < RT::NumEdgesT::value; ++e)
{
template <typename RT>
void RasterizeTriangle(DRAW_CONTEXT* pDC, uint32_t workerId, uint32_t macroTile, void* pDesc)
{
- SWR_CONTEXT *pContext = pDC->pContext;
const TRIANGLE_WORK_DESC &workDesc = *((TRIANGLE_WORK_DESC*)pDesc);
#if KNOB_ENABLE_TOSS_POINTS
if (KNOB_TOSS_BIN_TRIS)