Skip to content

Improve validation in B2B copies and RenderCommands#895

Merged
bors[bot] merged 2 commits intogfx-rs:masterfrom
kunalmohan:validation
Aug 24, 2020
Merged

Improve validation in B2B copies and RenderCommands#895
bors[bot] merged 2 commits intogfx-rs:masterfrom
kunalmohan:validation

Conversation

@kunalmohan
Copy link
Copy Markdown
Contributor

Connections
Link to the issues addressed by this PR, or dependent PRs in other repositories

Description
Describe what problem this is solving, and how it's solved.
Validation for the following have been added-

  • Validate all parameters in B2B copy even if copy_size == 0.
  • Check for copy operations issued within same buffer.
  • RenderPass.setViewport()
  • RenderPass.setScissorRect()

Testing
Explain how this change is tested.
Tested with CTS in Servo. More tests pass now. Will test on wgpu-rs now.

@kunalmohan
Copy link
Copy Markdown
Contributor Author

I am not sure when BufferUsage::QUERY_RESOLVE is used, but would it make sense to add it to wgpu-types at the moment?

Copy link
Copy Markdown
Contributor

@monocodus monocodus bot 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 an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 0 warnings, 1 errors.

@kvark
Copy link
Copy Markdown
Member

kvark commented Aug 24, 2020

We don't have the occlusion queries implemented yet, so the BufferUsage can be added once we have those.

Copy link
Copy Markdown
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

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

Very nice, thank you!
Just a couple of small suggestions here

@kunalmohan kunalmohan requested a review from kvark August 24, 2020 17:32
Copy link
Copy Markdown
Contributor

@monocodus monocodus bot 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 an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 0 warnings, 1 errors.

Copy link
Copy Markdown
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

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

Thank you!

@kvark
Copy link
Copy Markdown
Member

kvark commented Aug 24, 2020

bors r+

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Aug 24, 2020

@bors bors bot merged commit 59f0996 into gfx-rs:master Aug 24, 2020
@kunalmohan kunalmohan deleted the validation branch August 24, 2020 18:21
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.

2 participants