swr: [rasterizer memory] add support for clearing Z32F_X32 and Z16
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 18 Nov 2016 14:52:41 +0000 (09:52 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 29 Nov 2016 01:14:48 +0000 (20:14 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp

index 717d12cef9d8492a0d96d1d78e876bdad01f5ff4..8501e21eded0ab00720123830c74e16c9cbed5fc 100644 (file)
@@ -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