upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authormrp1no <137657338+mrp1no@users.noreply.github.com>2026-11-23 18:32:40 +0100
committermrp1no <137657338+mrp1no@users.noreply.github.com>2026-11-23 18:32:40 +0100
commit18b0bfbaf10626c473f4476878275402ab658174 (patch)
tree238b49640327fe5ceaf0e6e2ef4e128cb890bab5 /runtime/src/pe_loader.cpp
parent59e4bb81ece279c9ec04123fbac0d843fe1602fe (diff)
d3d12: an A8 render target's castable list takes its own format and refuses the others
castable_view_formats() mapped every castable format through vulkan_format(), which has no A8_UNORM case, so CreateCommittedResource3/CreatePlacedResource2 with castable={A8_UNORM} failed with E_INVALIDARG ("castable format not supported yet: 65"). The resource's own format is always viewable (create_texture adds the image's format), so naming A8_UNORM on an A8 texture is now a no-op. An A8 render target's VK_FORMAT_A8_UNORM_KHR image is in a compatibility class of its own, so an R8_UNORM castable entry (same texel size) would have reached its VkImageFormatListCreateInfo. Any format other than A8_UNORM is now refused with E_INVALIDARG before Vulkan. The A8 gate (runtime and vk_test_device.h) also requires TRANSFER_SRC/DST, since every texture is created with transfer usage. d3d12_draw_test runs the A8 clear/draw/blend cases on a second target made through CreateCommittedResource3 with castable={A8_UNORM}, and checks castable={R8_UNORM} returns E_INVALIDARG. Without the shim change it fails with the reported message. Reported by tupacfan04 on #7403. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions