mtbuf: fix 32-bit tbuffer_store partial writes and snorm ties (#42) #100

Closed
github-bot wants to merge 1 commit from gh-pr/100/head into gh-pr/100/base
Owner

@⁠Trwthh on GitHub · 2026-11-22 09:13 UTC · original
Trwthh:fix/42-mtbuf-partial-store → main · +72 −24 · 2 files · 102 commits · closed without merging

Summary

  • tbuffer_store now always writes the whole element (zero-fills missing components) instead of refusing partial-byte writes
  • Snorm pack rounds ties away from zero using floor + >= 0.5 test, matching RDNA2 hardware
  • Adds mtbuf_partial_store_rdna2_hw and mtbuf_snorm2_ties_away exec tests

Fixes #42

Test plan

  • cargo test -p tombox-xshader passes, new mtbuf tests verify partial store and snorm tie behavior
**@⁠Trwthh** on GitHub · 2026-11-22 09:13 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/100) `Trwthh:fix/42-mtbuf-partial-store` → `main` · +72 −24 · 2 files · 102 commits · closed without merging ## Summary - `tbuffer_store` now always writes the whole element (zero-fills missing components) instead of refusing partial-byte writes - Snorm pack rounds ties away from zero using floor + >= 0.5 test, matching RDNA2 hardware - Adds `mtbuf_partial_store_rdna2_hw` and `mtbuf_snorm2_ties_away` exec tests Fixes #42 ## Test plan - `cargo test -p tombox-xshader` passes, new mtbuf tests verify partial store and snorm tie behavior
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:10:27 +00:00
github-bot closed this pull request 2026-11-26 06:10:28 +00:00
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-22 13:13 UTC · original

Main's history was rewritten, which auto-closed this PR (sorry for the noise). Already on main with equivalent code (b72625c), so nothing is left to apply. Thanks for the fix!

**@⁠omonkeyz** on GitHub · 2026-11-22 13:13 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/100#issuecomment-7079650433) Main's history was rewritten, which auto-closed this PR (sorry for the noise). Already on main with equivalent code (b72625c), so nothing is left to apply. Thanks for the fix!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.