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

GPU: Mask away unused bits in framebuf/zbuf ptr, cleanup #16150

Merged
merged 5 commits into from
Oct 3, 2022

Conversation

unknownbrackets
Copy link
Collaborator

Based on tests, setting bits outside this in the register does nothing, so ignore them.

In addition, make sure the fb_address/z_address are always masked, so we don't need to mask them when reading. Mask any incoming comparison parameters to match.

Technically, matching addresses depends on the swizzle, but for the base address or ranges it usually will be close and is basically what we're already doing. This just makes it more consistent.

-[Unknown]

Lower 4 bits are ignored during rendering, and mirrors (even even the 8
bit at the top) are ignored.
In VRAM, always store without mirror.  In RAM, always store without
cache/kernel bits.
@unknownbrackets unknownbrackets added this to the v1.14.0 milestone Oct 3, 2022
@hrydgard
Copy link
Owner

hrydgard commented Oct 3, 2022

nice cleanup!

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