swr: [rasterizer memory] add support for R32_FLOAT_X8X24 formats
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 9 Nov 2016 22:17:19 +0000 (17:17 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 16 Nov 2016 01:24:18 +0000 (20:24 -0500)
This is the format used for the primary surface of a
PIPE_FORMAT_Z32_FLOAT_S8X24_UINT resource.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/memory/LoadTile.h
src/gallium/drivers/swr/rasterizer/memory/StoreTile.h

index 858f16266e967837fe93a55098dd77f47ea904db..d1cc3ed207f03def31a6e65ee1337c06bc51ce20 100644 (file)
@@ -347,6 +347,7 @@ static INLINE void InitLoadTileDepthTable(PFN_LOAD_TILES(&table)[NUM_SWR_FORMATS
     memset(table, 0, sizeof(table));
 
    table[R32_FLOAT]                       = LoadMacroTile<TilingTraits<TTileMode, 32>, R32_FLOAT, R32_FLOAT>::Load;
+   table[R32_FLOAT_X8X24_TYPELESS]        = LoadMacroTile<TilingTraits<TTileMode, 64>, R32_FLOAT_X8X24_TYPELESS, R32_FLOAT>::Load;
    table[R24_UNORM_X8_TYPELESS]           = LoadMacroTile<TilingTraits<TTileMode, 32>, R24_UNORM_X8_TYPELESS, R32_FLOAT>::Load;
    table[R16_UNORM]                       = LoadMacroTile<TilingTraits<TTileMode, 16>, R16_UNORM, R32_FLOAT>::Load;
 }
index 0c0b96204f6235533a3cd3ec4b50edeea6d0341d..69e8784f6ca6bfbf73b7c26161c9bb1e53899b9d 100644 (file)
@@ -2563,6 +2563,7 @@ void InitStoreTilesTableDepth(
     PFN_STORE_TILES(&table)[NumTileModes][ArraySizeT])
 {
    table[TTileMode][R32_FLOAT]                      = StoreMacroTile<TilingTraits<TTileMode, 32>, R32_FLOAT, R32_FLOAT>::Store;
+   table[TTileMode][R32_FLOAT_X8X24_TYPELESS]       = StoreMacroTile<TilingTraits<TTileMode, 64>, R32_FLOAT, R32_FLOAT_X8X24_TYPELESS>::Store;
    table[TTileMode][R24_UNORM_X8_TYPELESS]          = StoreMacroTile<TilingTraits<TTileMode, 32>, R32_FLOAT, R24_UNORM_X8_TYPELESS>::Store;
    table[TTileMode][R16_UNORM]                      = StoreMacroTile<TilingTraits<TTileMode, 16>, R32_FLOAT, R16_UNORM>::Store;
 }