Skip to content

Commit

Permalink
drm/amdgpu: drop allocation flag masks
Browse files Browse the repository at this point in the history
Not needed any more.

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>
  • Loading branch information
Christian König authored and Alex Deucher committed Jun 4, 2015
1 parent 9269a60 commit dcc357e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/uapi/drm/amdgpu_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,13 @@
#define AMDGPU_GEM_DOMAIN_GWS 0x10
#define AMDGPU_GEM_DOMAIN_OA 0x20

#define AMDGPU_GEM_DOMAIN_MASK 0x3F

/* Flag that CPU access will be required for the case of VRAM domain */
#define AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED (1 << 0)
/* Flag that CPU access will not work, this VRAM domain is invisible */
#define AMDGPU_GEM_CREATE_NO_CPU_ACCESS (1 << 1)
/* Flag that USWC attributes should be used for GTT */
#define AMDGPU_GEM_CREATE_CPU_GTT_USWC (1 << 2)

/* Flag mask for GTT domain_flags */
#define AMDGPU_GEM_CREATE_CPU_GTT_MASK \
(AMDGPU_GEM_CREATE_CPU_GTT_USWC | \
AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED | \
AMDGPU_GEM_CREATE_NO_CPU_ACCESS)

struct drm_amdgpu_gem_create_in {
/** the requested memory size */
uint64_t bo_size;
Expand Down

0 comments on commit dcc357e

Please sign in to comment.