Verify all eight BC7 modes against real D3D12 WARP texture sampling #116

Manually merged
github merged 7 commits from gh-pr/116/head into gh-pr/116/base 2026-11-26 21:08:03 +00:00
Owner

@⁠ProhorovIlja on GitHub · 2026-11-23 14:51 UTC · original
ProhorovIlja:test/bc7-all-modes-warp-gpu-differential-20261123 → main · +90 −8 · 4 files · 7 commits · merged 2026-11-23 14:58 UTC

Extends the existing source-built native Windows D3D12 WARP compressed texture GPU/CPU differential fixture with eight synthetic BC7 mode 0..7 cases. Each uploads a valid-prefix BC7 block, shader-loads it, draws to a render target, fences and reads back 256 pixels (1,024 RGBA channels) with existing tolerance against the pinned iOrange/bcdec CPU decoder merged in PR #115. Preserves all earlier formats/tests and explicit environment skips. Includes technical acceptance document and STATE update. No title, RPF9, Xbox tile/swizzle, real GPU benchmark, or GTA VI FPS claim. No new automation workflows or scheduled tasks. Merge only if both Windows/Linux CI pass.

**@⁠ProhorovIlja** on GitHub · 2026-11-23 14:51 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/pull/116) `ProhorovIlja:test/bc7-all-modes-warp-gpu-differential-20261123` → `main` · +90 −8 · 4 files · 7 commits · merged 2026-11-23 14:58 UTC Extends the existing source-built native Windows D3D12 WARP compressed texture GPU/CPU differential fixture with eight synthetic BC7 mode 0..7 cases. Each uploads a valid-prefix BC7 block, shader-loads it, draws to a render target, fences and reads back 256 pixels (1,024 RGBA channels) with existing tolerance against the pinned iOrange/bcdec CPU decoder merged in PR #115. Preserves all earlier formats/tests and explicit environment skips. Includes technical acceptance document and STATE update. No title, RPF9, Xbox tile/swizzle, real GPU benchmark, or GTA VI FPS claim. No new automation workflows or scheduled tasks. Merge only if both Windows/Linux CI pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:08:01 +00:00
github manually merged commit c1c7138c80 into gh-pr/116/base 2026-11-26 21:08:03 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-23 14:51 UTC · original · edited 2026-11-23 14:53 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T14:53:08.822315Z a34dcd0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-23 14:51 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/pull/116#issuecomment-7104649469) · edited 2026-11-23 14:53 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"a34dcd0b661495f83068713f7dbeffe85930185e","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-23T14:53:08.822315Z">2026-11-23T14:53:08.822315Z</relative-time> | `a34dcd0` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-23 14:53 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a34dcd0b66

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-23 14:53 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/pull/116#pullrequestreview-6023778156) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `a34dcd0b66` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-23 14:53 UTC · original
On CMakeLists.txt line 621 (outdated):

@@ -604,11 +604,36 @@ if(WIN32 AND CMAKE_SIZEOF_VOID_P EQUAL 8)
     COMMAND d3d12_warp_bc_texture bc5)
   add_test(NAME native_win_d3d12_bc7_mode6_gpu_cpu_differential
     COMMAND d3d12_warp_bc_texture bc7-mode6)
+  # Compare each legal BC7 compression mode with actual D3D12 WARP decoder.
+  add_test(NAME native_win_d3d12_bc7_mode0_gpu_cpu_differential
+    COMMAND d3d12_warp_bc_texture bc7-0)
+  add_test(NAME native_win_d3d12_bc7_mode1_gpu_cpu_differential
+    COMMAND d3d12_warp_bc_texture bc7-1)
+  add_test(NAME native_win_d3d12_bc7_mode2_gpu_cpu_differential
+    COMMAND d3d12_warp_bc_texture bc7-2)
+  add_test(NAME native_win_d3d12_bc7_mode3_gpu_cpu_differential
+    COMMAND d3d12_warp_bc_texture bc7-3)
+  add_test(NAME native_win_d3d12_bc7_mode4_gpu_cpu_differential
+    COMMAND d3d12_warp_bc_texture bc7-4)
+  add_test(NAME native_win_d3d12_bc7_mode5_gpu_cpu_differential
+    COMMAND d3d12_warp_bc_texture bc7-5)
+  add_test(NAME native_win_d3d12_bc7_mode6_gpu_cpu_differential
+    COMMAND d3d12_warp_bc_texture bc7-6)

P1 Badge Give the new mode-6 differential test a unique name

On Windows x64, this registration duplicates native_win_d3d12_bc7_mode6_gpu_cpu_differential, already registered at lines 605–606 for the original bc7-mode6 fixture. CMake rejects duplicate test names in the same directory; reproducing these two registrations produces add_test given test NAME ... which already exists in this directory. Consequently, Windows x64 configuration fails before any build or tests can run. Give the new synthetic mode-6 case a distinct name and update its set_tests_properties entry while retaining the original test.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-23 14:53 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/pull/116#discussion_r4667460261) On `CMakeLists.txt` line 621 (outdated): ```diff @@ -604,11 +604,36 @@ if(WIN32 AND CMAKE_SIZEOF_VOID_P EQUAL 8) COMMAND d3d12_warp_bc_texture bc5) add_test(NAME native_win_d3d12_bc7_mode6_gpu_cpu_differential COMMAND d3d12_warp_bc_texture bc7-mode6) + # Compare each legal BC7 compression mode with actual D3D12 WARP decoder. + add_test(NAME native_win_d3d12_bc7_mode0_gpu_cpu_differential + COMMAND d3d12_warp_bc_texture bc7-0) + add_test(NAME native_win_d3d12_bc7_mode1_gpu_cpu_differential + COMMAND d3d12_warp_bc_texture bc7-1) + add_test(NAME native_win_d3d12_bc7_mode2_gpu_cpu_differential + COMMAND d3d12_warp_bc_texture bc7-2) + add_test(NAME native_win_d3d12_bc7_mode3_gpu_cpu_differential + COMMAND d3d12_warp_bc_texture bc7-3) + add_test(NAME native_win_d3d12_bc7_mode4_gpu_cpu_differential + COMMAND d3d12_warp_bc_texture bc7-4) + add_test(NAME native_win_d3d12_bc7_mode5_gpu_cpu_differential + COMMAND d3d12_warp_bc_texture bc7-5) + add_test(NAME native_win_d3d12_bc7_mode6_gpu_cpu_differential + COMMAND d3d12_warp_bc_texture bc7-6) ``` **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Give the new mode-6 differential test a unique name** On Windows x64, this registration duplicates `native_win_d3d12_bc7_mode6_gpu_cpu_differential`, already registered at lines 605–606 for the original `bc7-mode6` fixture. CMake rejects duplicate test names in the same directory; reproducing these two registrations produces `add_test given test NAME ... which already exists in this directory`. Consequently, Windows x64 configuration fails before any build or tests can run. Give the new synthetic mode-6 case a distinct name and update its `set_tests_properties` entry while retaining the original test. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.