swr: [rasterizer core] unused variable warning fixes
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 9 Aug 2016 22:23:19 +0000 (17:23 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 10 Aug 2016 16:09:48 +0000 (11:09 -0500)
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/core/backend.cpp
src/gallium/drivers/swr/rasterizer/core/clip.h
src/gallium/drivers/swr/rasterizer/core/frontend.cpp

index d360e6c..dff86b3 100644 (file)
@@ -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;
 
index b173ae5..2736992 100644 (file)
@@ -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
index 7f89d85..6039be0 100644 (file)
@@ -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);