Skip to content

Add first index to end of loop#3021

Open
wzchu-lunarg wants to merge 1 commit into
LunarG:devfrom
wzchu-lunarg:wzchu-query-reset-loop
Open

Add first index to end of loop#3021
wzchu-lunarg wants to merge 1 commit into
LunarG:devfrom
wzchu-lunarg:wzchu-query-reset-loop

Conversation

@wzchu-lunarg

Copy link
Copy Markdown
Contributor

#2679 indicates the loop is incorrect according to the spec.

After testing, there are validation errors on replay as the query pools aren't reset.

GFXR does the following when setting the state for replay:

  • Create query pools
  • Reset query pools
  • Start "dummy" queries for the queries in active states

This fix will result in states being accurate to how they were tracked. However, GFXR simply acknowledges that queries can still read the dummy queries on the first frame after loading the state. Perhaps this will be changed eventually.

Fixes #2679

LunarG#2679 indicates the loop is incorrect according to the spec.

After testing, there are validation errors on replay as the query pools aren't reset.

GFXR does the following when setting the state for replay:
- Create query pools
- Reset query pools
- Start "dummy" queries for the queries in active states

This fix will result in states being accurate to how they were tracked. However, GFXR simply acknowledges that queries can still read the dummy queries on the first frame after loading the state. Perhaps this will be changed eventually.
@wzchu-lunarg wzchu-lunarg requested a review from a team as a code owner June 12, 2026 22:18
@wzchu-lunarg wzchu-lunarg added the approved-to-run-ci Can run CI check on internal LunarG machines label Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-to-run-ci Can run CI check on internal LunarG machines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect loop in VulkanStateTracker::TrackQueryReset

2 participants