Repository navigation
borealis: assert pre_gfx never defers CDM flush and update stale comment - #1309
Conversation
Document and assert in hk_dispatch_with_usc_launch() that draw-feeding GS/tess compute helpers on current_cs.pre_gfx never defer their trailing CDM cache flush, and update the stale AGX2 flush comment on the G17P compute launch path after AGX_CAP_CDM_DEFER_FLUSH landed in #1219/#1233. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
There was a problem hiding this comment.
Verdict: MERGE at 22dfe1f7
Blockers: none
Checked:
src/asahi/vulkan/hk_cmd_dispatch.c: verified the newassert(!defer || cs != cs->cmd->current_cs.pre_gfx);inhk_dispatch_with_usc_launch()directly enforces thepre_gfxinvariant with zero release codegen change, and the updated comment inhk_dispatch_g17p_native()matches current deferral behavior after#1219/#1233.- Commit metadata and PR checklist (
What/Tested/Risktwo-way door, humanSigned-off-by,MERGEABLE).
Evidence
- Head:
22dfe1f7(+6/-1acrosssrc/asahi/vulkan/hk_cmd_dispatch.c). - Author verification:
hk_cdm_barrier_stream(-Db_ndebug=false) PASS; no release-build behavior change.
|
@DjDeveloperr, code-owner heads-up: App approval at |
|
Merge-train landing at
Revert: |
What
Two small follow-up hygiene fixes in
src/asahi/vulkan/hk_cmd_dispatch.cafter#1219/#1233:assert(!defer || cs != cs->cmd->current_cs.pre_gfx)athk_dispatch_with_usc_launch()documenting that draw-feeding GS/tess compute prepasses run oncurrent_cs.pre_gfxand must never defer their trailing CDM cache flush (enforced bycs == cs->cmd->current_cs.cs).hk_dispatch_with_usc_launch()defershk_cdm_cache_flush()until the next barrier, non-deferred launch, or stream close onAGX_CAP_CDM_DEFER_FLUSHchips (G13GandG13X).Tested
meson test -C build hk_cdm_barrier_stream(-Db_ndebug=false): PASS (0.01s, covers bothG13GandG13Xdeferred flush paths with the newassertactive).assertonly; no release codegen or command-stream change).Risk
Zero behavioral change in release builds; adds one comment, one updated comment, and one debug-build invariant
assertinsrc/asahi/vulkan/hk_cmd_dispatch.c. Back out by reverting this single commit.