Repository navigation
tests: skip hardware-only GPU tests on the runner's software adapter - #5
Merged
Merged
Conversation
The Windows runner has no GPU: DXGI offers the Microsoft Basic Render Driver, which DXGI does not flag as software and which reports D3D12 with mesh shader tier 1. Four tests that need a real device failed on it: two aperture tests (4 GiB reserved resources: E_OUTOFMEMORY from CreateReservedResource) and two two-pass pipeline tests (the driver rejects the translated rect-list GS and mesh pipelines with E_INVALIDARG). Recognize the Basic Render Driver by its vendor and device id (0x1414 / 0x008C) and by the DXGI software flag, and skip those tests with the existing SKIPPED <test>: no GPU note, which scripts/test.ps1 counts and XCL_REQUIRE_GPU still turns into a failure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #4's Windows job fails on four GPU tests that need a real device. The runner has no GPU: DXGI offers the Microsoft Basic Render Driver, which is not flagged as software and reports D3D12 with mesh shader tier 1, so these tests ran and then failed:
gpu::recomp::aperture_tests::gpu_raw_window_view_reaches_its_topandgpu_aperture_probe_where_it_wraps:CreateReservedResourcefor 4 GiB returnsE_OUTOFMEMORY(0x8007000E).hle::d3d12x::two_pass_tests::gpu_console_gs_pipeline_draws_through_draw_instancedandgpu_console_mesh_pipeline_draws_through_dispatch_mesh: the driver rejects the translated rect-list GS and mesh pipelines withE_INVALIDARG(0x80070057).Fix: recognize software adapters (
adapter::software: DXGI software flag or vendor 0x1414 / device 0x008C) and skip these tests on one, with the existingSKIPPED <test>: no GPUnote thatscripts/test.ps1counts.XCL_REQUIRE_GPUstill turns the skip into a failure, and the tests run unchanged on a real GPU. No test is disabled and no test data is involved.Checked: the adapter predicate has a unit test; the rest is checked by this PR's CI run.