aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König2015-05-19 09:06:50 -0500
committerAlex Deucher2015-08-05 12:47:50 -0500
commit942a5dbe6c716185f57adc60d7cfe488ec0e133d (patch)
treed665a052d8ee743888d290893f96ae2ab589c9f8 /include/drm/amdgpu_drm.h
parent0f4e6702ee914994e45af5b281b9cf92e70c13e1 (diff)
downloadexternal-libgbm-942a5dbe6c716185f57adc60d7cfe488ec0e133d.tar.gz
external-libgbm-942a5dbe6c716185f57adc60d7cfe488ec0e133d.tar.xz
external-libgbm-942a5dbe6c716185f57adc60d7cfe488ec0e133d.zip
amdgpu: stop checking flag masks
The kernel is responsible for parameter checking, not libdrm. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Monk Liu <monk.liu@amd.com>
Diffstat (limited to 'include/drm/amdgpu_drm.h')
-rw-r--r--include/drm/amdgpu_drm.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
index dc4caf16..03e46b0d 100644
--- a/include/drm/amdgpu_drm.h
+++ b/include/drm/amdgpu_drm.h
@@ -67,8 +67,6 @@
67#define AMDGPU_GEM_DOMAIN_GWS 0x10 67#define AMDGPU_GEM_DOMAIN_GWS 0x10
68#define AMDGPU_GEM_DOMAIN_OA 0x20 68#define AMDGPU_GEM_DOMAIN_OA 0x20
69 69
70#define AMDGPU_GEM_DOMAIN_MASK 0x3F
71
72/* Flag that CPU access will be required for the case of VRAM domain */ 70/* Flag that CPU access will be required for the case of VRAM domain */
73#define AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED (1 << 0) 71#define AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED (1 << 0)
74/* Flag that CPU access will not work, this VRAM domain is invisible */ 72/* Flag that CPU access will not work, this VRAM domain is invisible */
@@ -76,12 +74,6 @@
76/* Flag that USWC attributes should be used for GTT */ 74/* Flag that USWC attributes should be used for GTT */
77#define AMDGPU_GEM_CREATE_CPU_GTT_USWC (1 << 2) 75#define AMDGPU_GEM_CREATE_CPU_GTT_USWC (1 << 2)
78 76
79/* Flag mask for GTT domain_flags */
80#define AMDGPU_GEM_CREATE_CPU_GTT_MASK \
81 (AMDGPU_GEM_CREATE_CPU_GTT_USWC | \
82 AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED | \
83 AMDGPU_GEM_CREATE_NO_CPU_ACCESS)
84
85struct drm_amdgpu_gem_create_in { 77struct drm_amdgpu_gem_create_in {
86 /** the requested memory size */ 78 /** the requested memory size */
87 uint64_t bo_size; 79 uint64_t bo_size;