Skip to content

Conversation

@cwfitzgerald
Copy link
Member

@cwfitzgerald cwfitzgerald commented Dec 4, 2025

Connections

Closes #8659

Description

To avoid recompilations, we use a test in the test suite to generate the needed .gpuinfo file. See inline comments for more discussion.

I also updated the cfgs in wgpu-info to be the newer no_main style.

A whitespace change in wgpu-types now takes 43s vs 60s and a clean build from 156s (11.6GB) to 99s (9.8GB)

Testing

It is.

Squash or Rebase?

Rebase

@cwfitzgerald cwfitzgerald force-pushed the cw/test-to-enumerate-adapters branch 3 times, most recently from bff0858 to cf5121b Compare December 4, 2025 20:31
@cwfitzgerald cwfitzgerald force-pushed the cw/test-to-enumerate-adapters branch from cf5121b to c234cc1 Compare December 7, 2025 07:24
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's clever! :)
With the added doc this was also easy enough to follow, so don't think that's too much added mental load/maintenance compared to the gains!

@Wumpf Wumpf merged commit fd671d4 into gfx-rs:trunk Dec 7, 2025
42 checks passed
@cwfitzgerald cwfitzgerald deleted the cw/test-to-enumerate-adapters branch December 7, 2025 18:14
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.

Reduce test recompilations

2 participants