diff options
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/backend.cpp | 4 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/clip.h | 3 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/frontend.cpp | 5 |
3 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/backend.cpp b/src/gallium/drivers/swr/rasterizer/core/backend.cpp index d360e6cb6a2..dff86b3ee76 100644 --- a/src/gallium/drivers/swr/rasterizer/core/backend.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/backend.cpp @@ -389,7 +389,6 @@ void BackendSingleSample(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint3 RDTSC_START(BESingleSampleBackend); RDTSC_START(BESetup); - SWR_CONTEXT *pContext = pDC->pContext; const API_STATE& state = GetApiState(pDC); const SWR_RASTSTATE& rastState = state.rastState; const SWR_PS_STATE *pPSState = &state.psState; @@ -581,7 +580,6 @@ void BackendSampleRate(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint32_ RDTSC_START(BESampleRateBackend); RDTSC_START(BESetup); - SWR_CONTEXT *pContext = pDC->pContext; const API_STATE& state = GetApiState(pDC); const SWR_RASTSTATE& rastState = state.rastState; const SWR_PS_STATE *pPSState = &state.psState; @@ -803,7 +801,6 @@ void BackendPixelRate(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint32_t RDTSC_START(BEPixelRateBackend); RDTSC_START(BESetup); - SWR_CONTEXT *pContext = pDC->pContext; const API_STATE& state = GetApiState(pDC); const SWR_RASTSTATE& rastState = state.rastState; const SWR_PS_STATE *pPSState = &state.psState; @@ -1024,7 +1021,6 @@ void BackendNullPS(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint32_t y, typedef SwrBackendTraits<sampleCountT, SWR_MSAA_STANDARD_PATTERN> T; RDTSC_START(BESetup); - SWR_CONTEXT *pContext = pDC->pContext; const API_STATE& state = GetApiState(pDC); const SWR_RASTSTATE& rastState = pDC->pState->state.rastState; diff --git a/src/gallium/drivers/swr/rasterizer/core/clip.h b/src/gallium/drivers/swr/rasterizer/core/clip.h index b173ae59b45..2736992b579 100644 --- a/src/gallium/drivers/swr/rasterizer/core/clip.h +++ b/src/gallium/drivers/swr/rasterizer/core/clip.h @@ -495,7 +495,6 @@ public: } // update global pipeline stat - SWR_CONTEXT* pContext = this->pDC->pContext; UPDATE_STAT_FE(CPrimitives, numClippedPrims); } @@ -522,7 +521,6 @@ public: }; // update clipper invocations pipeline stat - SWR_CONTEXT* pContext = this->pDC->pContext; uint32_t numInvoc = _mm_popcnt_u32(primMask); UPDATE_STAT_FE(CInvocations, numInvoc); @@ -559,7 +557,6 @@ public: else if (validMask) { // update CPrimitives pipeline state - SWR_CONTEXT* pContext = this->pDC->pContext; UPDATE_STAT_FE(CPrimitives, _mm_popcnt_u32(validMask)); // forward valid prims directly to binner diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp index 7f89d8526f2..6039be063d6 100644 --- a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp @@ -510,8 +510,6 @@ static void StreamOut( { RDTSC_START(FEStreamout); - SWR_CONTEXT* pContext = pDC->pContext; - const API_STATE& state = GetApiState(pDC); const SWR_STREAMOUT_STATE &soState = state.soState; @@ -668,8 +666,6 @@ static void GeometryShaderStage( { RDTSC_START(FEGeometryShader); - SWR_CONTEXT* pContext = pDC->pContext; - const API_STATE& state = GetApiState(pDC); const SWR_GS_STATE* pState = &state.gsState; @@ -962,7 +958,6 @@ static void TessellationStages( { const API_STATE& state = GetApiState(pDC); const SWR_TS_STATE& tsState = state.tsState; - SWR_CONTEXT *pContext = pDC->pContext; // Needed for UPDATE_STATS macro SWR_ASSERT(gt_pTessellationThreadData); |