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

[d3d9] Don't clear mipGenBit if texture is bound as attachment #4350

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

K0bin
Copy link
Collaborator

@K0bin K0bin commented Oct 11, 2024

Fixes #4344

The map binds a AUTOGENMIPMAP texture as RT, calls GenerateMipSubLevels which clears the dirty bits, renders to the texture and then calls GenerateMipSubLevels again which just exits out early because of the cleared dirty bits.
The contents of mip 0 have changed however due to some drawing. I don't want to mark the texture mip gen bits as dirty on every single draw, so instead I decided to just don't clear them if the texture is currently bound as RT. They will get cleared once the game changes RT and then generates the mip levels.

@K0bin K0bin added the d3d9 label Oct 11, 2024
@doitsujin doitsujin merged commit 5890eae into doitsujin:master Oct 13, 2024
4 checks passed
@K0bin K0bin deleted the water-mipgen branch October 13, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[d3d9][regression] King's Bounty: Warriors of the North striped distant water
2 participants