Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Only map memory that is meant to be accessed by CPU #12

Description

@kvark

Currently, gfx-memory unconditionally maps everything that is CPU-visible. It assumes that 1) mapping is harmless if we don't actually do anything with it, and 2) that on most systems non-cpu-visible memory types will be preferred for private resources.

However, on Intel GPUs apparently all memory types are CPU-visible. We don't want to map everything and exhaust the resident memory space. We don't want to confuse RenderDoc - baldurk/renderdoc#1863 (comment)

I wish we could approach this without breaking the API though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions