Skip to content

Test uninitialized queries in unsubmitted command buffers#4624

Open
greggman wants to merge 1 commit intogpuweb:mainfrom
greggman:add-query-read-unintialized-tests
Open

Test uninitialized queries in unsubmitted command buffers#4624
greggman wants to merge 1 commit intogpuweb:mainfrom
greggman:add-query-read-unintialized-tests

Conversation

@greggman
Copy link
Copy Markdown
Contributor

Query slots that have never been used at required to resolve to zero. Some implementations might wrongly mark them as used at encoding time instead of submit time.

These pass on some implementations but it could be by luck of the just happen to be zero


Requirements for PR author:

  • All missing test coverage is tracked with "TODO" or .unimplemented().
  • New helpers are /** documented */ and new helper files are found in helper_index.txt.
  • Test behaves as expected in a WebGPU implementation. (If not passing, explain above.)
  • Test have be tested with compatibility mode validation enabled and behave as expected. (If not passing, explain above.)

Requirements for reviewer sign-off:

  • Tests are properly located.
  • Test descriptions are accurate and complete.
  • Tests provide complete coverage (including validation control cases). Missing coverage MUST be covered by TODOs.
  • Tests avoid over-parameterization (see case count report).

When landing this PR, be sure to make any necessary issue status updates.

Query slots that have never been used at required to resolve
to zero. Some implementaitons might wrongly mark them as
used at encoding time instead of submit time.
@greggman greggman requested a review from kainino0x April 15, 2026 20:06
@github-actions
Copy link
Copy Markdown

Results for build job (at 702ebb4):

+webgpu:api,operation,command_buffer,queries,occlusionQuery:occlusion_query,unsubmitted_render_pass:* - 1 cases, 1 subcases (~1/case)
+webgpu:api,operation,command_buffer,queries,timestampQuery:resolve_unused_slots:* - 2 cases, 2 subcases (~1/case)
-TOTAL: 280761 cases, 2322100 subcases
+TOTAL: 280764 cases, 2322103 subcases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant