From 45d9cd36fe9a3132e32f3efda0fbcbade2c71d21 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Wed, 9 Nov 2016 17:17:19 -0500 Subject: [PATCH] swr: [rasterizer memory] add support for R32_FLOAT_X8X24 formats This is the format used for the primary surface of a PIPE_FORMAT_Z32_FLOAT_S8X24_UINT resource. Signed-off-by: Ilia Mirkin Reviewed-by: Bruce Cherniak --- src/gallium/drivers/swr/rasterizer/memory/LoadTile.h | 1 + src/gallium/drivers/swr/rasterizer/memory/StoreTile.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/drivers/swr/rasterizer/memory/LoadTile.h b/src/gallium/drivers/swr/rasterizer/memory/LoadTile.h index 858f16266e9..d1cc3ed207f 100644 --- a/src/gallium/drivers/swr/rasterizer/memory/LoadTile.h +++ b/src/gallium/drivers/swr/rasterizer/memory/LoadTile.h @@ -347,6 +347,7 @@ static INLINE void InitLoadTileDepthTable(PFN_LOAD_TILES(&table)[NUM_SWR_FORMATS memset(table, 0, sizeof(table)); table[R32_FLOAT] = LoadMacroTile, R32_FLOAT, R32_FLOAT>::Load; + table[R32_FLOAT_X8X24_TYPELESS] = LoadMacroTile, R32_FLOAT_X8X24_TYPELESS, R32_FLOAT>::Load; table[R24_UNORM_X8_TYPELESS] = LoadMacroTile, R24_UNORM_X8_TYPELESS, R32_FLOAT>::Load; table[R16_UNORM] = LoadMacroTile, R16_UNORM, R32_FLOAT>::Load; } diff --git a/src/gallium/drivers/swr/rasterizer/memory/StoreTile.h b/src/gallium/drivers/swr/rasterizer/memory/StoreTile.h index 0c0b96204f6..69e8784f6ca 100644 --- a/src/gallium/drivers/swr/rasterizer/memory/StoreTile.h +++ b/src/gallium/drivers/swr/rasterizer/memory/StoreTile.h @@ -2563,6 +2563,7 @@ void InitStoreTilesTableDepth( PFN_STORE_TILES(&table)[NumTileModes][ArraySizeT]) { table[TTileMode][R32_FLOAT] = StoreMacroTile, R32_FLOAT, R32_FLOAT>::Store; + table[TTileMode][R32_FLOAT_X8X24_TYPELESS] = StoreMacroTile, R32_FLOAT, R32_FLOAT_X8X24_TYPELESS>::Store; table[TTileMode][R24_UNORM_X8_TYPELESS] = StoreMacroTile, R32_FLOAT, R24_UNORM_X8_TYPELESS>::Store; table[TTileMode][R16_UNORM] = StoreMacroTile, R32_FLOAT, R16_UNORM>::Store; } -- 2.30.2