Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions runtime/test/d3d12_first_light_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ int main() {
EXPECT(SUCCEEDED(rt::d3d12_xs::create_device_proxy(inner, __uuidof(ID3D12Device),
reinterpret_cast<void**>(&device.p), /*console_lists=*/false)));
rt::d3d12::set_device_outer(inner, device.p);
if (rt::d3d12::device_push_constants_need_fallback(inner)) {
std::printf("d3d12_first_light_test: skipped, the PSOs need 144 push-constant bytes and this GPU has %u\n",
rt::d3d12::device_max_push_constants_size(inner));
return 77;
}

// No root parameters: the VS applies no matrix and the PS has no bindings (vk_harness pushes zeros too).
D3D12_VERSIONED_ROOT_SIGNATURE_DESC root_desc{};
Expand Down
7 changes: 7 additions & 0 deletions runtime/test/d3d12_state_sweep_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,13 @@ int main() {
Ref<ID3D12Device> ours, host;
std::string adapter;
if (FAILED(rt::d3d12::create_vulkan_device(info, IID_PPV_ARGS(&ours.p)))) return 1;
// Every case's PSO needs the 144 push-constant bytes the index declares; on a smaller limit they all fail and
// each would count as a per-case skip, leaving a silent pass that compared nothing.
if (rt::d3d12::device_push_constants_need_fallback(ours.p)) {
std::printf("d3d12_state_sweep_test: skipped, the PSOs need 144 push-constant bytes and this GPU has %u\n",
rt::d3d12::device_max_push_constants_size(ours.p));
return 77;
}
if (!host_device(vk, host, adapter)) {
std::fprintf(stderr, "no host D3D12 device on the Vulkan device's adapter\n");
return 77;
Expand Down
Loading