upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 20:07:54 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 20:07:54 -0500
commit68eee6b71a619f668b601e0f0b2e5fadbfec7b33 (patch)
tree969d9a838bb7800a1dcc7e861aab1f116aacbbe9 /runtime/src
parentd033c3f74b5f2d757e54614dc030c3273608d3a7 (diff)
gfx10_descriptors.h: the A8 row in the form the format table test reads
tests/test_gfx10_descriptors.py checks every row of the format table against Mesa's names and fails when a row does not have the form it parses. #984's A8 render target row carried a remark after the GFX10 name, so it was counted but not read (94 of 95 rows; fails on #984's head too). The remark is a comment line above the row now, and the row is checked like the others (the test already knows an extension's suffix is not part of the layout). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/gfx10_descriptors.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/src/gfx10_descriptors.h b/runtime/src/gfx10_descriptors.h
index 10cea81f4..b8d0b9ecf 100644
--- a/runtime/src/gfx10_descriptors.h
+++ b/runtime/src/gfx10_descriptors.h
@@ -229,7 +229,8 @@ inline constexpr Swizzle channels_abgr{select_w, select_z, select_y, select_x};
229inline constexpr FormatRow format_table[] = { 229inline constexpr FormatRow format_table[] = {
230 {1, VK_FORMAT_R8_UNORM, channels_r}, // GFX10_FORMAT_8_UNORM 230 {1, VK_FORMAT_R8_UNORM, channels_r}, // GFX10_FORMAT_8_UNORM
231#ifdef VK_KHR_MAINTENANCE_5_EXTENSION_NAME 231#ifdef VK_KHR_MAINTENANCE_5_EXTENSION_NAME
232 {1, VK_FORMAT_A8_UNORM_KHR, channels_a}, // GFX10_FORMAT_8_UNORM (an A8 render target) 232 // An A8 render target: the same console format as the R8 row above, in the image format that can be rendered to.
233 {1, VK_FORMAT_A8_UNORM_KHR, channels_a}, // GFX10_FORMAT_8_UNORM
233#endif 234#endif
234 {2, VK_FORMAT_R8_SNORM, channels_r}, // GFX10_FORMAT_8_SNORM 235 {2, VK_FORMAT_R8_SNORM, channels_r}, // GFX10_FORMAT_8_SNORM
235 {3, VK_FORMAT_R8_USCALED, channels_r}, // GFX10_FORMAT_8_USCALED 236 {3, VK_FORMAT_R8_USCALED, channels_r}, // GFX10_FORMAT_8_USCALED