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

Be more flexible in picking formats #69

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

Manishearth
Copy link
Member

Fixes #68

These are the only two formats that I've seen get requested, as the warning shows further ones we should add support

r? @jdm

Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

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

No more panics in my emulator.

@Manishearth
Copy link
Member Author

The full list of formats I get from the device is [87, 91, 28, 29, 55, 45, 40, 20]

@Manishearth
Copy link
Member Author

DXGI_FORMAT_B8G8R8A8_UNORM, DXGI_FORMAT_B8G8R8A8_UNORM_SRGB,
DXGI_FORMAT_R8G8B8A8_UNORM, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
DXGI_FORMAT_D16_UNORM, DXGI_FORMAT_D24_UNORM_S8_UINT
DXGI_FORMAT_D32_FLOAT, DXGI_FORMAT_D32_FLOAT_S8X24_UINT

I believe the other formats are for depth/stencil which we currently are not copying?

@Manishearth
Copy link
Member Author

glReadPixels doesn't seem to allow specifying sRGB values so I think we support everything we can here

eventually we may need a depth and stencil swapchain but we can defer that till surfman (cc @asajeffrey )

this does work, however, so

@bors-servo r=jdm

@bors-servo
Copy link
Contributor

📌 Commit 9a2fa7a has been approved by jdm

@bors-servo
Copy link
Contributor

⌛ Testing commit 9a2fa7a with merge ee9caca...

bors-servo pushed a commit that referenced this pull request Oct 8, 2019
Be more flexible in picking formats

Fixes #68

These are the only two formats that I've seen get requested, as the warning shows further ones we should add support

r? @jdm
@bors-servo
Copy link
Contributor

☀️ Test successful - checks-travis
Approved by: jdm
Pushing ee9caca to master...

@bors-servo bors-servo merged commit 9a2fa7a into servo:master Oct 8, 2019
@Manishearth Manishearth deleted the pixformat branch October 8, 2019 21:38
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.

Panic creating the d3d texture in openxr
3 participants