swr/rast: Silence warnings
authorGeorge Kyriazis <george.kyriazis@intel.com>
Mon, 16 Apr 2018 23:54:45 +0000 (18:54 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 27 Apr 2018 19:36:41 +0000 (14:36 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/blend_jit.cpp
src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp
src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp

index 58fdb7fb1712726faa808db1a897e03d28752ba4..72bf900c85e04f74a71d8315e7cde56318a6b037 100644 (file)
@@ -558,8 +558,6 @@ struct BlendJit : public Builder
         ppoMask->setName("ppoMask");
         Value* ppMask = LOAD(pBlendContext, { 0, SWR_BLEND_CONTEXT_pMask });
         ppMask->setName("pMask");
-        Value* AlphaTest1 = LOAD(pBlendContext, { 0, SWR_BLEND_CONTEXT_isAlphaBlended });
-        ppMask->setName("AlphaTest1");
 
         static_assert(KNOB_COLOR_HOT_TILE_FORMAT == R32G32B32A32_FLOAT, "Unsupported hot tile format");
         Value* dst[4];
index a43c787e494ecf876345730a84d5f3d952835b81..48f0961cdc96d18050d6b4c61a6b707462d971d6 100644 (file)
@@ -1070,7 +1070,6 @@ Value* FetchJit::GetSimdValid16bitIndices(Value* pIndices, Value* pLastIndex)
 Value* FetchJit::GetSimdValid32bitIndices(Value* pIndices, Value* pLastIndex)
 {
     DataLayout dL(JM()->mpCurrentModule);
-    unsigned int ptrSize = dL.getPointerSize() * 8;  // ptr size in bits
     Value* iLastIndex = pLastIndex; 
     Value* iIndices = pIndices;
 
index eac0549c2634434ca60c621889e6b714030ea225..b8c329635c10286f50906350c90a87eeb6fdfaa3 100644 (file)
@@ -168,7 +168,6 @@ namespace SwrJit
         // intrinsic.
         void GetRequestedWidthAndType(CallInst* pCallInst, const StringRef intrinName, TargetWidth* pWidth, Type** pTy)
         {
-            uint32_t vecWidth;
             Type* pVecTy = pCallInst->getType();
 
             // Check for intrinsic specific types
@@ -210,6 +209,7 @@ namespace SwrJit
             {
             case W256: numElem = 8; break;
             case W512: numElem = 16; break;
+           default: SWR_ASSERT(false, "Unhandled vector width type %d\n", width);
             }
 
             return ConstantVector::getNullValue(VectorType::get(pTy, numElem));
@@ -222,6 +222,7 @@ namespace SwrJit
             {
             case W256: mask = B->C((uint8_t)-1); break;
             case W512: mask = B->C((uint16_t)-1); break;
+           default: SWR_ASSERT(false, "Unhandled vector width type %d\n", width);
             }
             return mask;
         }