diff options
author | Tim Rowley <[email protected]> | 2017-04-06 22:11:45 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-04-11 18:01:03 -0500 |
commit | 217b791a448620a9852f23a7173b45a0ef0df5ea (patch) | |
tree | 55f9752f3d717cea50f2a13027dbfa7f7768ac16 /src/gallium/drivers/swr | |
parent | da7aa39f9343172914632024a9ccfbabf1b4a48c (diff) |
swr: [rasterizer core] Fix unused variable warnings
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/api.cpp | 2 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/backend.cpp | 1 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/binner.cpp | 8 |
3 files changed, 1 insertions, 10 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp b/src/gallium/drivers/swr/rasterizer/core/api.cpp index 1710cc66793..5c3225d58b2 100644 --- a/src/gallium/drivers/swr/rasterizer/core/api.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/api.cpp @@ -788,7 +788,6 @@ extern PFN_BACKEND_FUNC gBackendSingleSample[SWR_INPUT_COVERAGE_COUNT][2][2]; extern PFN_BACKEND_FUNC gBackendSampleRateTable[SWR_MULTISAMPLE_TYPE_COUNT][SWR_INPUT_COVERAGE_COUNT][2][2]; void SetupPipeline(DRAW_CONTEXT *pDC) { - SWR_CONTEXT* pContext = pDC->pContext; DRAW_STATE* pState = pDC->pState; const SWR_RASTSTATE &rastState = pState->state.rastState; const SWR_PS_STATE &psState = pState->state.psState; @@ -1630,6 +1629,7 @@ void SWR_API SwrEndFrame( { SWR_CONTEXT *pContext = GetContext(hContext); DRAW_CONTEXT* pDC = GetDrawContext(pContext); + (void)pDC; // var used RDTSC_ENDFRAME(); AR_API_EVENT(FrameEndEvent(pContext->frameCount, pDC->drawId)); diff --git a/src/gallium/drivers/swr/rasterizer/core/backend.cpp b/src/gallium/drivers/swr/rasterizer/core/backend.cpp index e3ed52430af..39f4802db4c 100644 --- a/src/gallium/drivers/swr/rasterizer/core/backend.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/backend.cpp @@ -872,7 +872,6 @@ void BackendNullPS(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint32_t y, AR_BEGIN(BENullBackend, pDC->drawId); ///@todo: handle center multisample pattern - typedef SwrBackendTraits<sampleCountT, false> T; AR_BEGIN(BESetup, pDC->drawId); const API_STATE &state = GetApiState(pDC); diff --git a/src/gallium/drivers/swr/rasterizer/core/binner.cpp b/src/gallium/drivers/swr/rasterizer/core/binner.cpp index 239c49741b9..9d36f21d5c5 100644 --- a/src/gallium/drivers/swr/rasterizer/core/binner.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/binner.cpp @@ -2209,7 +2209,6 @@ void BinPostSetupLines( const API_STATE& state = GetApiState(pDC); const SWR_RASTSTATE& rastState = state.rastState; - const SWR_FRONTEND_STATE& feState = state.frontendState; const SWR_GS_STATE& gsState = state.gsState; // Select attribute processor @@ -2640,16 +2639,9 @@ void BinLines( simdscalari primID, simdscalari viewportIdx) { - SWR_CONTEXT *pContext = pDC->pContext; - const API_STATE& state = GetApiState(pDC); const SWR_RASTSTATE& rastState = state.rastState; const SWR_FRONTEND_STATE& feState = state.frontendState; - const SWR_GS_STATE& gsState = state.gsState; - - // Select attribute processor - PFN_PROCESS_ATTRIBUTES pfnProcessAttribs = GetProcessAttributesFunc(2, - state.backendState.swizzleEnable, state.backendState.constantInterpolationMask); simdscalar vRecipW[2] = { _simd_set1_ps(1.0f), _simd_set1_ps(1.0f) }; |