Skip to content

Shaders: start code constant tables after instructions - #37

Closed
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1795588133-code-table
Closed

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1795588133-code-table

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

  • Ports upstream #2143: constant tables embedded in shader code now start after the program's instructions unless a fixed load demonstrably reads inside the instruction bytes.
  • Prevents computed constant loads from embedding the whole shader program as a private constant array, reducing translated DXIL memory pressure and driver-local allocations.
  • Keeps the helper in a split lowering include so lower.rs remains under the repository asset-policy size cap.

Validation

  • cargo fmt --all -- --check
  • cargo run --locked --quiet --package xtask -- policy
  • cargo test --locked -p victory-shader --lib (238 passed)
  • CARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo check --locked -p victory-shader --target x86_64-pc-windows-msvc
  • CARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo clippy --locked -p victory-shader --all-targets --target x86_64-pc-windows-msvc

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Fechando porque a integração fxceless da #29 alterou a base e tornou este diff conflitante/obsoleto; vou reavaliar/reaplicar o que ainda faltar sobre a nova base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant