swr/rast: remove unused variables in the SIMD16 FE
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 13 Apr 2017 21:26:08 +0000 (16:26 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Sat, 29 Apr 2017 00:55:57 +0000 (19:55 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/binner.cpp
src/gallium/drivers/swr/rasterizer/core/frontend.cpp
src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp

index 958f0a2644eb66631be804f6b0293e296ceef817..d011741685bfb7e0a03a84f5d7d9f3fb654f58d0 100644 (file)
@@ -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) };
 
index 08a4fd3b61d5f89b0d91170e46bfeb64529509dd..b09a7985cccdc19df078bb1272f7a7d4c5ce829d 100644 (file)
@@ -1346,8 +1346,6 @@ static void TessellationStages(
             const uint32_t numPrims_hi = std::max<uint32_t>(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<uint32_t>(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);
index 6a249638adc82355b4b864256ad197f4fb5dd730..d0ee18a17032cc2871da895c7d372478dcd49bf4 100644 (file)
@@ -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);