diff --git a/d3d12/crates/leonida-gpu/src/indirect.rs b/d3d12/crates/leonida-gpu/src/indirect.rs index a9e4cbb1a9..25a51e859b 100644 --- a/d3d12/crates/leonida-gpu/src/indirect.rs +++ b/d3d12/crates/leonida-gpu/src/indirect.rs @@ -4032,8 +4032,6 @@ void main() { /// The benchmark of the clamp and its barriers (ignored by default). #[cfg(test)] mod bench; -#[cfg(test)] -mod asbench; /// What one small draw costs this card, bare and with one thing changed /// between every two draws: a measurement, not a check (it asserts only diff --git a/tools/make_amplify_dxil.py b/tools/make_amplify_dxil.py index 8fa71cff06..0f38be9b1f 100644 --- a/tools/make_amplify_dxil.py +++ b/tools/make_amplify_dxil.py @@ -66,4 +66,8 @@ def main(): if __name__ == "__main__": + try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode + sys.stdout.reconfigure(errors="replace") + except (AttributeError, ValueError, OSError): + pass main()