Mesa (master): swr: [rasterizer core] unused variable warning fixes
Tim Rowley
torowley at kemper.freedesktop.org
Wed Aug 10 18:17:13 UTC 2016
Module: Mesa
Branch: master
Commit: 61981602505a6e0f59e5c1026651d074df2218a5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=61981602505a6e0f59e5c1026651d074df2218a5
Author: Tim Rowley <timothy.o.rowley at intel.com>
Date: Tue Aug 9 17:23:19 2016 -0500
swr: [rasterizer core] unused variable warning fixes
Signed-off-by: Tim Rowley <timothy.o.rowley at intel.com>
---
src/gallium/drivers/swr/rasterizer/core/backend.cpp | 4 ----
src/gallium/drivers/swr/rasterizer/core/clip.h | 3 ---
src/gallium/drivers/swr/rasterizer/core/frontend.cpp | 5 -----
3 files changed, 12 deletions(-)
diff --git a/src/gallium/drivers/swr/rasterizer/core/backend.cpp b/src/gallium/drivers/swr/rasterizer/core/backend.cpp
index d360e6c..dff86b3 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 b173ae5..2736992 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 7f89d85..6039be0 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);
More information about the mesa-commit
mailing list