Introduce a flag to signal that access to a BO will be synchronized through an external mechanism. Currently all buffers shared between contexts are subject to implicit synchronization. However, this is only required for protocols that currently don't support an explicit synchronization mechanism (DRI2/3). This patch introduces the AMDGPU_GEM_CREATE_EXPLICIT_SYNC, so that users can specify when it is safe to disable implicit sync. v2: only disable explicit sync in amdgpu_cs_ioctl
Showing the changes to include/uapi (1 of 8 files). Show all
Unified · Split
| @@ -91,6 +91,8 @@ extern "C" { · 90 unmodified lines | ||
| 91 | 91 | #define AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS (1 << 5) |
| 92 | 92 | /* Flag that BO is always valid in this VM */ |
| 93 | 93 | #define AMDGPU_GEM_CREATE_VM_ALWAYS_VALID (1 << 6) |
| 94 | +/* Flag that BO sharing will be explicitly synchronized */ | |
| 95 | +#define AMDGPU_GEM_CREATE_EXPLICIT_SYNC (1 << 7) | |
| 94 | 96 | |
| 95 | 97 | struct drm_amdgpu_gem_create_in { |
| 96 | 98 | /** the requested memory size */ |