swr: [rasterizer] Small warning cleanup
authorTim Rowley <timothy.o.rowley@intel.com>
Mon, 2 May 2016 19:35:25 +0000 (13:35 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 5 May 2016 19:50:03 +0000 (14:50 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/frontend.cpp
src/gallium/drivers/swr/rasterizer/jitter/JitManager.h

index 4d5afea5d32b542d08854f624d8515737ebbd821..08346106fbf9c98c221fee1d5e47b8b116228cba 100644 (file)
@@ -1125,7 +1125,10 @@ static void TessellationStages(
                 {
                     simdvector prim[3]; // Only deal with triangles, lines, or points
                     RDTSC_START(FEPAAssemble);
-                    bool assemble = tessPa.Assemble(VERTEX_POSITION_SLOT, prim);
+#if SWR_ENABLE_ASSERTS
+                    bool assemble =
+#endif
+                        tessPa.Assemble(VERTEX_POSITION_SLOT, prim);
                     RDTSC_STOP(FEPAAssemble, 1, 0);
                     SWR_ASSERT(assemble);
 
index 9861eae78aa4f817d70afb533b123bbd3fdfd998..14ba893fc256c8bf73d249c3c1d587e6fe29a905 100644 (file)
@@ -163,13 +163,6 @@ struct JitManager
     StructType*          mV4FP32Ty;
     StructType*          mV4Int32Ty;
 
-    // helper scalar function types
-    FunctionType* mUnaryFPTy;
-    FunctionType* mBinaryFPTy;
-    FunctionType* mTrinaryFPTy;
-    FunctionType* mUnaryIntTy;
-    FunctionType* mBinaryIntTy;
-
     Type* mSimtFP32Ty;
     Type* mSimtInt32Ty;