Skip to content

backport and standarize options#46

Draft
pythonlover02 wants to merge 6 commits into
mainfrom
upstream-config
Draft

backport and standarize options#46
pythonlover02 wants to merge 6 commits into
mainfrom
upstream-config

Conversation

@pythonlover02

Copy link
Copy Markdown
Owner

No description provided.

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.
@pythonlover02 pythonlover02 self-assigned this Jun 11, 2026
@pythonlover02 pythonlover02 added the enhancement New feature or request label Jun 11, 2026
@pythonlover02 pythonlover02 changed the title backports and standarization of the options backport and standarize options Jun 11, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant