Partially revert "amd/addrlib: silence warnings" to fix builds with DEBUG
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 17:01:02 +0000 (19:01 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 17:17:39 +0000 (19:17 +0200)
This partially reverts commit 8a74140a21fe6b0d2e8a60b065b890f797f2db51.

src/amd/addrlib/addrinterface.cpp
src/amd/addrlib/gfx9/gfx9addrlib.cpp
src/amd/addrlib/r800/egbaddrlib.cpp

index 6a0c330dcc5848ca9097ec164331134464569508..12985fc37b655e1e25ba64ced5acefd41b5dfae5 100644 (file)
@@ -832,7 +832,7 @@ BOOL_32 ADDR_API ElemGetExportNorm(
     Addr::Lib* pLib = Lib::GetLib(hLib);
     BOOL_32 enabled = FALSE;
 
-    //ADDR_E_RETURNCODE returnCode = ADDR_OK;
+    ADDR_E_RETURNCODE returnCode = ADDR_OK;
 
     if (pLib != NULL)
     {
@@ -840,7 +840,7 @@ BOOL_32 ADDR_API ElemGetExportNorm(
     }
     else
     {
-        //returnCode = ADDR_ERROR;
+        returnCode = ADDR_ERROR;
     }
 
     ADDR_ASSERT(returnCode == ADDR_OK);
index fce0c000be932eb4c6c5d836d3806ac5d219619c..380b785e5952497fc6eb2742bbb7ca8b7270a7af 100644 (file)
@@ -2159,7 +2159,7 @@ ADDR_E_RETURNCODE Gfx9Lib::HwlComputeBlock256Equation(
     // Post validation
     if (ret == ADDR_OK)
     {
-        //Dim2d microBlockDim = Block256b[elementBytesLog2];
+        Dim2d microBlockDim = Block256b[elementBytesLog2];
         ADDR_ASSERT((2u << GetMaxValidChannelIndex(pEquation->addr, 8, 0)) ==
                     (microBlockDim.w * (1 << elementBytesLog2)));
         ADDR_ASSERT((2u << GetMaxValidChannelIndex(pEquation->addr, 8, 1)) == microBlockDim.h);
index 03f3a3146e4645ce1d8b06956762ece279fa4add..0cd27ada070412cc463e94de0b9c3ab8c407b40f 100644 (file)
@@ -978,7 +978,7 @@ BOOL_32 EgBasedLib::SanityCheckMacroTiled(
     ) const
 {
     BOOL_32 valid       = TRUE;
-    //UINT_32 numPipes    = HwlGetPipes(pTileInfo);
+    UINT_32 numPipes    = HwlGetPipes(pTileInfo);
 
     switch (pTileInfo->banks)
     {
@@ -4748,7 +4748,7 @@ UINT_64 EgBasedLib::HwlGetSizeAdjustmentMicroTiled(
     ) const
 {
     UINT_64 logicalSliceSize;
-    //UINT_64 physicalSliceSize;
+    UINT_64 physicalSliceSize;
 
     UINT_32 pitch   = *pPitch;
     UINT_32 height  = *pHeight;
@@ -4757,7 +4757,7 @@ UINT_64 EgBasedLib::HwlGetSizeAdjustmentMicroTiled(
     logicalSliceSize = BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * bpp * numSamples);
 
     // Physical slice: multiplied by thickness
-    //physicalSliceSize =  logicalSliceSize * thickness;
+    physicalSliceSize =  logicalSliceSize * thickness;
 
     //
     // R800 will always pad physical slice size to baseAlign which is pipe_interleave_bytes