summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Rowley <timothy.o.rowley@intel.com>2016-10-07 09:52:19 -0500
committerTim Rowley <timothy.o.rowley@intel.com>2016-10-11 11:22:04 -0500
commiteaec263427631b3aa3a86f6287f3144381866510 (patch)
treeb273519964097ae3f6456ab75907ba115a0356d9 /src
parent12e6f4c87970e57d2b92b1cc81490037c40e8186 (diff)
downloadexternal_mesa3d-eaec263427631b3aa3a86f6287f3144381866510.zip
external_mesa3d-eaec263427631b3aa3a86f6287f3144381866510.tar.gz
external_mesa3d-eaec263427631b3aa3a86f6287f3144381866510.tar.bz2
swr: [rasterizer] eliminate unused label warnings on gcc
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/os.h6
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/backend.cpp2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index f175a8a..0671c5a 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -249,4 +249,10 @@ typedef MEGABYTE GIGABYTE[1024];
#include "common/swr_assert.h"
+#ifdef __GNUC__
+#define ATTR_UNUSED __attribute__((unused))
+#else
+#define ATTR_UNUSED
+#endif
+
#endif//__SWR_OS_H__
diff --git a/src/gallium/drivers/swr/rasterizer/core/backend.cpp b/src/gallium/drivers/swr/rasterizer/core/backend.cpp
index ad9f0d3..143bd25 100644
--- a/src/gallium/drivers/swr/rasterizer/core/backend.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/backend.cpp
@@ -828,6 +828,7 @@ void BackendSampleRate(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint32_
}
Endtile:
+ ATTR_UNUSED;
AR_BEGIN(BEEndTile, pDC->drawId);
if(T::InputCoverage == SWR_INPUT_COVERAGE_INNER_CONSERVATIVE)
{
@@ -1171,6 +1172,7 @@ void BackendNullPS(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t x, uint32_t y,
}
Endtile:
+ ATTR_UNUSED;
work.coverageMask[sample] >>= (SIMD_TILE_Y_DIM * SIMD_TILE_X_DIM);
}
pDepthBase += (KNOB_SIMD_WIDTH * FormatTraits<KNOB_DEPTH_HOT_TILE_FORMAT>::bpp) / 8;