History

drm/amdgpu: handle domain mask checking v2

if domain is illegal, we should return error. v2: remove duplicated domain checking.

Chunming Zhou committed 8 years ago

Commit 3f188451 parent aa2b2e23 files · +8 −14Browse files

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

Unified · Split

include/uapi/drm/amdgpu_drm.h+6−0
@@ -78,6 +78,12 @@ extern "C" { · 77 unmodified lines
78#define AMDGPU_GEM_DOMAIN_GDS 0x878#define AMDGPU_GEM_DOMAIN_GDS 0x8
79#define AMDGPU_GEM_DOMAIN_GWS 0x1079#define AMDGPU_GEM_DOMAIN_GWS 0x10
80#define AMDGPU_GEM_DOMAIN_OA 0x2080#define AMDGPU_GEM_DOMAIN_OA 0x20
81#define AMDGPU_GEM_DOMAIN_MASK (AMDGPU_GEM_DOMAIN_CPU | \
82 AMDGPU_GEM_DOMAIN_GTT | \
83 AMDGPU_GEM_DOMAIN_VRAM | \
84 AMDGPU_GEM_DOMAIN_GDS | \
85 AMDGPU_GEM_DOMAIN_GWS | \
86 AMDGPU_GEM_DOMAIN_OA)
81 87
82/* Flag that CPU access will be required for the case of VRAM domain */88/* Flag that CPU access will be required for the case of VRAM domain */
83#define AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED (1 << 0)89#define AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED (1 << 0)

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