diff options
| author | Zack <zmasi21@gmail.com> | 2026-11-29 15:45:08 -0800 |
|---|---|---|
| committer | Zack <zmasi21@gmail.com> | 2026-11-29 15:45:08 -0800 |
| commit | 214f7bfa7f9c391be2a9d672cb4f14084609d6bb (patch) | |
| tree | e5d39f0dbef677e89e04d78f9b220c86816a38fa /tests/test_run_gpu_tests_python_assembler.py | |
| parent | 5e53cef8545c2df5dad8959b360aba1eaea829d7 (diff) | |
| parent | 452d1d1b68aa2da94d5f0eff43ad0a6a83bbbadf (diff) | |
perf(d3d12-gpu): extend R9G9B9E5 relaxed format casting to CreatePlacedResource2
D3D12-ALIAS-CAST-R9G9B9E5
Merge origin/main and extend R32_UINT/R32_SINT -> R9G9B9E5_SHAREDEXP
relaxed format casting across both ID3D12Device10::CreateCommittedResource3
and ID3D12Device10::CreatePlacedResource2 (pool::texture_with_cast + ID3D12Device12
GetResourceAllocationInfo3) using D3D12_BARRIER_LAYOUT_COMMON and
&[DXGI_FORMAT_R9G9B9E5_SHAREDEXP] while keeping legacy D3D12_RESOURCE_STATES
transitions everywhere and leaving host.rs untouched.
Fold view_cast_serial into draw::entry_once keys and add D3D12 debug-layer
GPU tests covering both committed and placed 2D, 2D-array, and 3D R32_UINT
textures written via UAV and sampled in place as R9G9B9E5_SHAREDEXP.
AI-assisted.
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
| -rw-r--r-- | tests/test_run_gpu_tests_python_assembler.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_run_gpu_tests_python_assembler.py b/tests/test_run_gpu_tests_python_assembler.py index d817f4ec0..fd61b6a9d 100644 --- a/tests/test_run_gpu_tests_python_assembler.py +++ b/tests/test_run_gpu_tests_python_assembler.py | |||
| @@ -20,6 +20,14 @@ import run_gpu_tests | |||
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | class PythonAssemblerTests(unittest.TestCase): | 22 | class PythonAssemblerTests(unittest.TestCase): |
| 23 | def test_native_assembler_error_preserves_undecodable_diagnostics(self): | ||
| 24 | run = subprocess.run | ||
| 25 | child = [sys.executable, "-c", "import sys; sys.stderr.buffer.write(b'bad operand \\xff'); sys.exit(1)"] | ||
| 26 | with patch.object(run_gpu_tests.subprocess, "run", side_effect=lambda _, **kw: run(child, **kw)): | ||
| 27 | with self.assertRaises(RuntimeError) as raised: | ||
| 28 | run_gpu_tests.spirv_as("", "unused.spv") | ||
| 29 | self.assertIn(r"bad operand \xff", str(raised.exception)) | ||
| 30 | |||
| 23 | def test_resolve_assembler_auto_and_explicit(self) -> None: | 31 | def test_resolve_assembler_auto_and_explicit(self) -> None: |
| 24 | self.assertEqual(run_gpu_tests.resolve_assembler("python"), "python") | 32 | self.assertEqual(run_gpu_tests.resolve_assembler("python"), "python") |
| 25 | self.assertEqual(run_gpu_tests.resolve_assembler("spirv-as"), "spirv-as") | 33 | self.assertEqual(run_gpu_tests.resolve_assembler("spirv-as"), "spirv-as") |