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:
authorTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-24 16:08:15 +0100
committerTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-24 20:57:36 +0100
commitb67109eb3e30f60549e5d0f7f9deffe46d4c69bd (patch)
tree3e688aab6359dcaf91aaff677360197d16d4ae8b /runtime/src
parent6293c1c4f88c7ea2088ec595fea51362f1759996 (diff)
vulkan_replay: clear packed 16-bit UAV textures
uav_clear.h had no layout for R5G6B5, A1R5G5B5 and A4R4G4B4 (D3D12 B5G6R5, B5G5R5A1 and B4G4R4A4), so ClearUnorderedAccessView on such a texture was refused at replay and the whole submission was dropped.
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/uav_clear.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/src/uav_clear.h b/runtime/src/uav_clear.h
index b73ec50e1..385d55950 100644
--- a/runtime/src/uav_clear.h
+++ b/runtime/src/uav_clear.h
@@ -91,6 +91,10 @@ inline constexpr Layout layouts[] = {
91 {VK_FORMAT_R16_UNORM, Kind::unorm, 2, {{{0, 16}, {}, {}, {}}}}, 91 {VK_FORMAT_R16_UNORM, Kind::unorm, 2, {{{0, 16}, {}, {}, {}}}},
92 // A4B4G4R4_UNORM: typed UAVs are the driver's call (WARP has them, AMD's D3D12 driver doesn't). 92 // A4B4G4R4_UNORM: typed UAVs are the driver's call (WARP has them, AMD's D3D12 driver doesn't).
93 {VK_FORMAT_R4G4B4A4_UNORM_PACK16, Kind::unorm, 2, {{{12, 4}, {8, 4}, {4, 4}, {0, 4}}}}, 93 {VK_FORMAT_R4G4B4A4_UNORM_PACK16, Kind::unorm, 2, {{{12, 4}, {8, 4}, {4, 4}, {0, 4}}}},
94 // B5G6R5, B5G5R5A1 and B4G4R4A4_UNORM, likewise (WARP has all three).
95 {VK_FORMAT_R5G6B5_UNORM_PACK16, Kind::unorm, 2, {{{11, 5}, {5, 6}, {0, 5}, {}}}},
96 {VK_FORMAT_A1R5G5B5_UNORM_PACK16, Kind::unorm, 2, {{{10, 5}, {5, 5}, {0, 5}, {15, 1}}}},
97 {VK_FORMAT_A4R4G4B4_UNORM_PACK16, Kind::unorm, 2, {{{8, 4}, {4, 4}, {0, 4}, {12, 4}}}},
94 {VK_FORMAT_R16_SNORM, Kind::snorm, 2, {{{0, 16}, {}, {}, {}}}}, 98 {VK_FORMAT_R16_SNORM, Kind::snorm, 2, {{{0, 16}, {}, {}, {}}}},
95 {VK_FORMAT_R16_UINT, Kind::uint, 2, {{{0, 16}, {}, {}, {}}}}, 99 {VK_FORMAT_R16_UINT, Kind::uint, 2, {{{0, 16}, {}, {}, {}}}},
96 {VK_FORMAT_R16_SINT, Kind::sint, 2, {{{0, 16}, {}, {}, {}}}}, 100 {VK_FORMAT_R16_SINT, Kind::sint, 2, {{{0, 16}, {}, {}, {}}}},