Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player-based GPU test framework #803

Merged
merged 2 commits into from
Jul 17, 2020
Merged

Player-based GPU test framework #803

merged 2 commits into from
Jul 17, 2020

Conversation

kvark
Copy link
Member

@kvark kvark commented Jul 17, 2020

Connections
Closes #786

Description
This change adds a GPU-based testing by re-using the Player from tracing infrastructure - #289.
It converts the player into a lib + binary, and adds an integration test into the crate that implements RON-specified testing.

Current implementation has a few requirements/gotchas that are listed in test.rs:

  • in all the IDs, the backend is Empty
  • all expected buffers have MAP_READ usage on them
  • last action is Submit

I believe it's workable, and we can improve it down the road (e.g. with #792).

Testing
MUHAHAHA
cargo test nails it

@kvark kvark requested a review from cwfitzgerald July 17, 2020 04:01
ptr, slice,
};

#[derive(serde::Deserialize)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to import this trait and use it without the prefix?

Copy link
Member Author

Choose a reason for hiding this comment

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

we totally could, but it's unlikely to substantially reduce the code size in this case, since we only use this a few times

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

This is so exciting! I'm really looking forward to seeing where this goes! A minor note besides what we talked about on the matrix

@kvark kvark requested a review from cwfitzgerald July 17, 2020 14:59
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Beautiful! Like the organization changes too.

@kvark
Copy link
Member Author

kvark commented Jul 17, 2020

bors r=cwfitzgerald

@bors
Copy link
Contributor

bors bot commented Jul 17, 2020

@bors bors bot merged commit 2455a65 into gfx-rs:master Jul 17, 2020
@kvark kvark deleted the test branch July 17, 2020 15:48
kvark added a commit to kvark/wgpu that referenced this pull request Jun 3, 2021
803: Shader fixes with binary expressions r=kvark a=kvark

Goes along with gfx-rs/naga#599

Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com>
Patryk27 pushed a commit to Patryk27/wgpu that referenced this pull request Nov 23, 2022
* Add support for int8, int16, and int64 as well as null constant structs

* Add support for OpArrayLength to the spirv frontend

* Add hacky OpCopyMemory support to spirv frontend

* Add OpInBoundsAccessChain to spirv frontend

* Add OpLogical(Not)Equal to spirv frontend

* Fix several of the issues raised in the pr

* Fix the Op::ArrayLength match

* Validate accessing structs through pointers

* Remove extraneous type check
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.

Player-based GPU testing
3 participants