History

drm/amdgpu: introduce AMDGPU_GEM_CREATE_EXPLICIT_SYNC v2

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

Andres Rodriguez committed 9 years ago

Commit 177ae091 parent b82485f8 files · +29 −11Browse files

Showing the changes to include/uapi (1 of 8 files). Show all

Unified · Split

include/uapi/drm/amdgpu_drm.h+2−0
@@ -91,6 +91,8 @@ extern "C" { · 90 unmodified lines
9191 #define AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS (1 << 5)
9292 /* Flag that BO is always valid in this VM */
9393 #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)
9496
9597 struct drm_amdgpu_gem_create_in {
9698 /** the requested memory size */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t