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

Format packing semantics, dx12 handling #2037

Merged
merged 1 commit into from
May 17, 2018
Merged

Format packing semantics, dx12 handling #2037

merged 1 commit into from
May 17, 2018

Conversation

kvark
Copy link
Member

@kvark kvark commented May 17, 2018

Fixes all of the image related copy/blit CTS tests (>11K passes!). There are 0 failures in this category now and ~5 crashes due to #1945.

PR checklist:

  • make succeeds (on *nix)
  • make reftests succeeds
  • tested examples with the following backends:

@kvark kvark requested a review from msiglreith May 17, 2018 00:07
Copy link
Contributor

@msiglreith msiglreith left a comment

Choose a reason for hiding this comment

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

Looks good, small nit.
(Discussed in gitter)

dim: $dim,
packed: $total > 0x1000,
Copy link
Contributor

Choose a reason for hiding this comment

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

Quite a bit of magic going on here but looks ok for now :p

@@ -40,6 +40,11 @@ pub struct FormatDesc {
pub bits: u16,
/// Dimensions (width, height) of the texel blocks.
pub dim: (u8, u8),
/// The format representation depends on the endianness of the platform.
///
/// * On little-endian systems, the actual oreder of components is reverse of what
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: oreder/order

@kvark
Copy link
Member Author

kvark commented May 17, 2018 via email

bors bot added a commit that referenced this pull request May 17, 2018
2037: Format packing semantics, dx12 handling r=msiglreith a=kvark

Fixes all of the image related copy/blit CTS tests (>11K passes!). There are 0 failures in this category now and ~5 crashes due to #1945.

PR checklist:
- [ ] `make` succeeds (on *nix)
- [x] `make reftests` succeeds
- [ ] tested examples with the following backends:


Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
@bors
Copy link
Contributor

bors bot commented May 17, 2018

@bors bors bot merged commit 9c15cc9 into gfx-rs:master May 17, 2018
@kvark kvark deleted the pack branch May 17, 2018 14:27
@kvark kvark mentioned this pull request May 18, 2018
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.

None yet

2 participants