radv/gfx10: hardcode some depth+stencil formats in the format table
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 20 Aug 2019 13:23:12 +0000 (15:23 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 21 Aug 2019 06:17:40 +0000 (08:17 +0200)
The script doesn't handle them correctly and D16_UNORM_S8_UINT
isn't supported by the hardware, mark it as invalid.

This fixes warning when generating gfx10_format_table.h.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111393
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/gfx10_format_table.py

index 81b0bed92aa8c000bc4a552680931671c63e3f16..f55b302bf823cda8a21978ce663b922db19c5f85 100644 (file)
@@ -66,6 +66,11 @@ HARDCODED = {
     'VK_FORMAT_BC6H_SFLOAT_BLOCK': hardcoded_format('BC6_SFLOAT'),
     'VK_FORMAT_BC7_UNORM_BLOCK': hardcoded_format('BC7_UNORM'),
     'VK_FORMAT_BC7_SRGB_BLOCK': hardcoded_format('BC7_SRGB'),
+
+    # DS
+    'VK_FORMAT_D16_UNORM_S8_UINT': hardcoded_format('INVALID'),
+    'VK_FORMAT_D24_UNORM_S8_UINT': hardcoded_format('8_24_UNORM'),
+    'VK_FORMAT_D32_SFLOAT_S8_UINT': hardcoded_format('X24_8_32_FLOAT'),
 }