Textures: copy linear mip levels a row at a time #331

Closed
jfarre20 wants to merge 1 commit from upstream-pr/334 into main
jfarre20 commented 2026-11-23 23:41:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jfarre20 on 2026-11-23T23:41:16Z.


Linear video planes go through the element-by-element address calculation in Chain::detile_level on every upload. This implements the row-copy case described by @gw1337x in the profiling thread on #283. It uses the existing layout calculation for the first element and the stored mip pitch for subsequent rows.

<!-- greyfinch-sync:ivall/xcl:issue:6571172940 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/334). Originally posted by [jfarre20](https://github.com/jfarre20) on 2026-11-23T23:41:16Z. --- Linear video planes go through the element-by-element address calculation in `Chain::detile_level` on every upload. This implements the row-copy case described by @gw1337x in [the profiling thread on #283](https://github.com/ivall/xcl/pull/283#issuecomment-7116115692). It uses the existing layout calculation for the first element and the stored mip pitch for subsequent rows.
upstream-sync closed this pull request 2026-11-24 06:58:11 +00:00
regiumlepidi commented 2026-11-24 07:04:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by regiumlepidi on 2026-11-23T23:58:02Z.


Two more GPU families for Not tested (Blackwell, and RDNA2 with native wave64): 1e3d6bb (based on main db1ddb2): pass.

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves), driver 617.42 (32.0.16.1742), and AMD Radeon(TM) Graphics (Ryzen 7 9800X3D iGPU, RDNA2, 64-lane waves), driver 32.0.21030.2001, selected with XCL_ADAPTER=radeon
  • Ryzen 7 9800X3D, 48 GB, Windows 11 Pro 25H2, rustc 1.100.0 MSVC, DXC from Windows SDK 10.0.26100, debug
  • .\scripts\test.ps1 (cargo test --workspace -- --test-threads=4), no XCL_SAMPLE_* set
Build RTX 5070 Ti RDNA2 iGPU
main db1ddb2 666 passed, 0 failed, 41 ignored 666 passed, 0 failed, 41 ignored
1e3d6bb 667 passed, 0 failed, 41 ignored 667 passed, 0 failed, 41 ignored

GPU tests skipped: the usual 2 (no wave64) on NVIDIA, none on the iGPU; the mesh tests ran on both.

Not tested

  • scripts/smoke.ps1 / movie playback (I have no Series title).
  • The release microbenchmark (it is not in the branch).

AI use: Claude Code with Claude Opus 5.5 ran the build and tests and wrote this comment; the numbers come from those runs.

<!-- greyfinch-sync:ivall/xcl:comment:7117555746 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/334#issuecomment-7117555746). Originally posted by [regiumlepidi](https://github.com/regiumlepidi) on 2026-11-23T23:58:02Z. --- Two more GPU families for **Not tested** (Blackwell, and RDNA2 with native wave64): `1e3d6bb` (based on `main` `db1ddb2`): **pass**. **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves), driver 617.42 (32.0.16.1742), and AMD Radeon(TM) Graphics (Ryzen 7 9800X3D iGPU, RDNA2, 64-lane waves), driver 32.0.21030.2001, selected with `XCL_ADAPTER=radeon` - Ryzen 7 9800X3D, 48 GB, Windows 11 Pro 25H2, rustc 1.100.0 MSVC, DXC from Windows SDK 10.0.26100, debug - `.\scripts\test.ps1` (`cargo test --workspace -- --test-threads=4`), no `XCL_SAMPLE_*` set | Build | RTX 5070 Ti | RDNA2 iGPU | |---|---|---| | `main` `db1ddb2` | 666 passed, 0 failed, 41 ignored | 666 passed, 0 failed, 41 ignored | | `1e3d6bb` | 667 passed, 0 failed, 41 ignored | 667 passed, 0 failed, 41 ignored | GPU tests skipped: the usual 2 (`no wave64`) on NVIDIA, none on the iGPU; the mesh tests ran on both. **Not tested** - `scripts/smoke.ps1` / movie playback (I have no Series title). - The release microbenchmark (it is not in the branch). AI use: Claude Code with Claude Opus 5.5 ran the build and tests and wrote this comment; the numbers come from those runs.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!331
No description provided.