Mesa (master): swr: [rasterizer memory] add support for clearing Z32F_X32 and Z16

Ilia Mirkin imirkin at kemper.freedesktop.org
Tue Nov 29 01:15:49 UTC 2016


Module: Mesa
Branch: master
Commit: 5582610ea190e52e49c60aa8fe18bebfe2466cde
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5582610ea190e52e49c60aa8fe18bebfe2466cde

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Fri Nov 18 09:52:41 2016 -0500

swr: [rasterizer memory] add support for clearing Z32F_X32 and Z16

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley at intel.com>

---

 src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp b/src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp
index 717d12c..8501e21 100644
--- a/src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp
+++ b/src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp
@@ -282,7 +282,9 @@ void StoreHotTileClear(
     memset(sStoreTilesClearDepthTable, 0, sizeof(sStoreTilesClearDepthTable)); \
     \
     sStoreTilesClearDepthTable[R32_FLOAT] = StoreMacroTileClear<R32_FLOAT, R32_FLOAT>::StoreClear; \
+    sStoreTilesClearDepthTable[R32_FLOAT_X8X24_TYPELESS] = StoreMacroTileClear<R32_FLOAT, R32_FLOAT_X8X24_TYPELESS>::StoreClear; \
     sStoreTilesClearDepthTable[R24_UNORM_X8_TYPELESS] = StoreMacroTileClear<R32_FLOAT, R24_UNORM_X8_TYPELESS>::StoreClear; \
+    sStoreTilesClearDepthTable[R16_UNORM] = StoreMacroTileClear<R32_FLOAT, R16_UNORM>::StoreClear; \
 
 //////////////////////////////////////////////////////////////////////////
 /// @brief Sets up tables for ClearTile




More information about the mesa-commit mailing list