GPU: reject empty query heaps at creation #2909
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2909
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2909"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 23:44 UTC · original
andrewpozdnakov7-jpg:codex2/reject-empty-query-heap→main· +33 −0 · 1 files · 1 commits · openSummary
Reject zero-count query heaps before creating a guest object or returning a successful probe.
CreateQueryHeapnow returnsE_INVALIDARGfor a timestamp heap with no queries.Verification
E_INVALIDARGfor count zero and leaves the output slot untouched. Count one creates a heap. Microsoft documents the positive-count requirement in Queries.S_OKand creates a zero-count object, and returnsS_FALSEwith no output slot. The patch returnsE_INVALIDARGin both cases, leaves the output untouched, and still creates the one-query heap.@Marvisak on GitHub · 2026-11-26 02:20 UTC · original
Automated triage for the maintainers.
Needs work.
query.rscreatenow returnsE_INVALIDARGfor a query heap withcount == 0. Onmainthe query heap is a stub (Heap { object, desc }) with no host heap behind it, so a zero count harms nothing today, and the change only alters a return value. CIcheckpasses. To change the verdict: evidence that the title creates an empty query heap and depends on the error, or that the console runtime returns it (its compiler output, a hardware trace, or public documentation of the console API). Without that, it is a guard for a case the title does not reach.Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.