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

rsx: More fixups #6914

Merged
merged 5 commits into from
Oct 29, 2019
Merged

rsx: More fixups #6914

merged 5 commits into from
Oct 29, 2019

Conversation

kd-11
Copy link
Contributor

@kd-11 kd-11 commented Oct 29, 2019

  • Preserve image dimensions when uploading instead of relying on the dimensions in block. Fixes textures with sizes not aligned to block size (e.g DXT texture with width of 3 texels)
  • Reorganize context management. Needs a lot more work in the future, but this needs to be reworked into one instance and multiple logical devices. It's not important for now though since multi-context support does not work yet.
  • Remember to delete the WSI surfaceKHR object on exit.
  • Skip depth bounds on intel hardware where it is not supported. Intel IGPs are still unsupported due to reasons like these.

kd-11 and others added 5 commits October 28, 2019 21:06
subresource_layout::dim_in_texel

- These two are not always linked when working with compressed textures.
The actual texels extend past the actual size of the image if the size
is not aligned. e.g if height is 1, the real height is 4, but its not
possible to determine this from the aligned size. It could be 1, 2, 3 or
4 for example.
- Fixes image out-of-bounds writes when uploading from CPU
- Simplify active instance management. While multicontext support will
be required in future, this is better done with multiple logical devices
rather than multiple instances.
- Destroy the WSI surface on exit
- Enable depthBoundsTest explicitly. TODO: Properly check for supported
features.
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.

1 participant