From: Ilia Mirkin Date: Wed, 9 Nov 2016 22:17:19 +0000 (-0500) Subject: swr: [rasterizer memory] add support for R32_FLOAT_X8X24 formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45d9cd36fe9a3132e32f3efda0fbcbade2c71d21;p=mesa.git 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 --- 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; }