Skip to content

Fix mesh pipeline multisample state and query availability handling - #1

Open
kisasexypantera94 wants to merge 1 commit into
utmapp:geometry-shadersfrom
kisasexypantera94:geometry-shaders
Open

Fix mesh pipeline multisample state and query availability handling#1
kisasexypantera94 wants to merge 1 commit into
utmapp:geometry-shadersfrom
kisasexypantera94:geometry-shaders

Conversation

@kisasexypantera94

@kisasexypantera94 kisasexypantera94 commented Aug 27, 2026

Copy link
Copy Markdown

Fix three issues:

  • Guard multisample state access for non-rasterizing mesh pipelines
  • Treat the second areQueriesDeviceAvailable() argument as queryCount, matching its callers
  • Offset the query availability buffer by firstQuery when copying query results

The mesh pipeline fix is needed for The Witcher 3 and already exists upstream.

The query fixes prevent hangs in Source engine games such as Portal, Portal 2, Team Fortress 2, and Half-Life 2. These fixes were also accepted upstream in KhronosGroup#2794.

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