backport and standarize options#46
Draft
pythonlover02 wants to merge 6 commits into
Draft
Conversation
tilerMode is only partially active. preferCachedMemory biases host-visible allocations toward cached memory on tilers and works. preferRenderPassOps is detected and set but not yet consumed by Sarek render-pass code, which diverges significantly from upstream; wiring it requires changes to the context/render-pass layer and on-device testing, left as a future todo.
Zero initializes host-visible mapped memory to work around games that assume freshly mapped buffers are clean and break on stale data. Sarek static budget allocator has no per allocation flags or clear on free hook like upstream, so this clears on handout instead of on free. Memory is zeroed at every site that returns a mapped pointer: sub-allocated slices in DxvkMemoryChunk::alloc (covering reused slices from recycled chunks) and direct large/dedicated allocations in tryAllocFromType. Nonmapped memory is skipped via a null map-pointer guard. App visible guarantee matches upstream (no resource ever receives stale mapped data), but the mechanism differs. Off by default; adds one memset per host visible allocation when enabled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.