From: Tim Rowley Date: Thu, 13 Apr 2017 21:26:08 +0000 (-0500) Subject: swr/rast: remove unused variables in the SIMD16 FE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=145bf5aa5b665124fef5119123a45b68b02b1359;p=mesa.git swr/rast: remove unused variables in the SIMD16 FE Reviewed-by: Bruce Cherniak --- diff --git a/src/gallium/drivers/swr/rasterizer/core/binner.cpp b/src/gallium/drivers/swr/rasterizer/core/binner.cpp index 958f0a2644e..d011741685b 100644 --- a/src/gallium/drivers/swr/rasterizer/core/binner.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/binner.cpp @@ -2413,7 +2413,6 @@ void BinPostSetupLines_simd16( 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 @@ -2700,16 +2699,9 @@ void SIMDAPI BinLines_simd16( simd16scalari primID, simd16scalari 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); simd16scalar vRecipW[2] = { _simd16_set1_ps(1.0f), _simd16_set1_ps(1.0f) }; diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp index 08a4fd3b61d..b09a7985ccc 100644 --- a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp @@ -1346,8 +1346,6 @@ static void TessellationStages( const uint32_t numPrims_hi = std::max(numPrims, KNOB_SIMD_WIDTH) - KNOB_SIMD_WIDTH; const uint32_t primMask = GenMask(numPrims); - const uint32_t primMask_lo = primMask & 255; - const uint32_t primMask_hi = (primMask >> 8) & 255; const simd16scalari primID = _simd16_set1_epi32(dsContext.PrimitiveID); const simdscalari primID_lo = _simd16_extract_si(primID, 0); @@ -1391,9 +1389,10 @@ static void TessellationStages( if (HasRastT::value) { - simdvector prim[3]; // Only deal with triangles, lines, or points #if USE_SIMD16_FRONTEND simd16vector prim_simd16[3]; +#else + simdvector prim[3]; // Only deal with triangles, lines, or points #endif AR_BEGIN(FEPAAssemble, pDC->drawId); bool assemble = @@ -1691,8 +1690,6 @@ void ProcessDraw( const uint32_t numPrims_hi = std::max(numPrims, KNOB_SIMD_WIDTH) - KNOB_SIMD_WIDTH; const uint32_t primMask = GenMask(numPrims); - const uint32_t primMask_lo = primMask & 255; - const uint32_t primMask_hi = (primMask >> 8) & 255; const simd16scalari primID = pa.GetPrimID(work.startPrimID); const simdscalari primID_lo = _simd16_extract_si(primID, 0); diff --git a/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp b/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp index 6a249638adc..d0ee18a1703 100644 --- a/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp @@ -2228,7 +2228,6 @@ bool PaPoints0(PA_STATE_OPT& pa, uint32_t slot, simdvector verts[]) { #if USE_SIMD16_FRONTEND simdvector a; - simdvector b; const simd16vector &a_16 = PaGetSimdVector_simd16(pa, pa.cur, slot);