An instruction guard depends on its EXEC and the reachability of its block. Keep the most recent result, including an elided guard, rather than repeating the same BDD queries for consecutive vector instructions. Scalar instructions still bypass guard selection. Cover EXEC changes across and within a branch with a synthetic shader. Add a CPU-only guard_runs benchmark for unmasked, short, and long masked runs. (cherry picked from commit 81b81df351437c50f4321286c725de51664c7b1b)
45 lines
1.1 KiB
TOML
45 lines
1.1 KiB
TOML
[package]
|
|
name = "victory-shader"
|
|
description = "Xbox shader containers (DXBC/DXIL + precompiled GFX10) to host shaders."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
thiserror.workspace = true
|
|
zlib-rs.workspace = true
|
|
|
|
[features]
|
|
# Host D3D12 pipeline checks (`emit::host`).
|
|
host = ["dep:windows"]
|
|
# Debugging switches (emitted-module dumps and the like).
|
|
diagnostics = []
|
|
|
|
[[bench]]
|
|
name = "guard_runs"
|
|
harness = false
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { workspace = true, features = ["Win32_System_LibraryLoader"] }
|
|
windows = { workspace = true, optional = true, features = [
|
|
"Win32_Foundation",
|
|
"Win32_Graphics_Direct3D",
|
|
"Win32_Graphics_Direct3D12",
|
|
"Win32_Graphics_Dxgi",
|
|
"Win32_Graphics_Dxgi_Common",
|
|
] }
|
|
|
|
[target.'cfg(windows)'.dev-dependencies]
|
|
windows = { workspace = true, features = [
|
|
"Win32_Foundation",
|
|
"Win32_Graphics_Direct3D",
|
|
"Win32_Graphics_Direct3D12",
|
|
"Win32_Graphics_Dxgi",
|
|
"Win32_Graphics_Dxgi_Common",
|
|
] }
|
|
|
|
[lints]
|
|
workspace = true
|