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
1 change: 1 addition & 0 deletions apps/victory/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ pub fn run(
let code = main
.join()
.map_err(|_| anyhow::anyhow!("title main thread panicked"))??;
victory_hle::runtime::flush_graphics_cache();
println!("title exited with {code}");
Ok(())
}
Expand Down
10 changes: 9 additions & 1 deletion apps/victory/src/translate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,15 @@ fn translate(
if let (Some(r), Some(i), Some(s)) = (res, raised, structured) {
let label = || format!("{} {:?}", example(), p.stage);
*counter(t, p.stage, 0) += 1;
match emit::emit(&container, &p, &program, &s, &i, &r) {
let options = emit::TranslateOptions {
wave64: checks
.host
.as_ref()
.map_or(emit::Wave64Mode::Native, |(h, _)| {
h.recommended_wave64_mode()
}),
};
match emit::emit_with(&container, &p, &program, &s, &i, &r, options) {
Ok(shader) => {
*counter(t, p.stage, 1) += 1;
check(shader, t, checks, label);
Expand Down
1 change: 0 additions & 1 deletion crates/victory-gpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ workspace = true
windows-sys = { workspace = true, features = ["Win32_Foundation", "Win32_Security", "Win32_System_Diagnostics_Debug", "Win32_System_Kernel", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Performance", "Win32_System_ProcessStatus", "Win32_System_SystemInformation", "Win32_System_Threading"] }
windows = { workspace = true, features = [
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D_Fxc",
"Win32_Graphics_Direct3D12",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
Expand Down
Loading
Loading