OSDN Git Service

amdgpu: expose the AMDGPU_GEM_CREATE_VRAM_CLEARED flag
authorFlora Cui <Flora.Cui@amd.com>
Fri, 22 Jul 2016 03:56:52 +0000 (11:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Sep 2016 21:30:19 +0000 (17:30 -0400)
With this flag specified, VRAM buffer will be cleared at
allocation time.

Signed-off-by: Flora Cui <Flora.Cui@amd.com>
Reviewed-by: Alexandre Demers <alexandre.f.demers@gmail.com>
include/drm/amdgpu_drm.h

index fbdd118..d43895e 100644 (file)
@@ -73,6 +73,8 @@
 #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 that the memory should be in VRAM and cleared */
+#define AMDGPU_GEM_CREATE_VRAM_CLEARED         (1 << 3)
 
 struct drm_amdgpu_gem_create_in  {
        /** the requested memory size */