This flag is a hint that userspace expects the BO to be accessed by the CPU. We can use that hint to prevent such BOs from ever being stored in the CPU inaccessible part of VRAM.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -801,6 +801,8 @@ struct drm_radeon_gem_info { · 800 unmodified lines | ||
| 801 | 801 | #define RADEON_GEM_NO_BACKING_STORE (1 << 0) |
| 802 | 802 | #define RADEON_GEM_GTT_UC (1 << 1) |
| 803 | 803 | #define RADEON_GEM_GTT_WC (1 << 2) |
| 804 | +/* BO is expected to be accessed by the CPU */ | |
| 805 | +#define RADEON_GEM_CPU_ACCESS (1 << 3) | |
| 804 | 806 | |
| 805 | 807 | struct drm_radeon_gem_create { |
| 806 | 808 | uint64_t size; |