aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlora Cui2016-07-21 22:56:52 -0500
committerAlex Deucher2016-09-02 16:30:19 -0500
commit4462303700fd982eb5fdd266ee04d0543f4f6bf0 (patch)
tree8e2df173d6ddd940c0caea9c27235fc4d900a182 /include
parent72a041694e9467ceb903808edf305eb7ea1cc813 (diff)
downloadexternal-libdrm-4462303700fd982eb5fdd266ee04d0543f4f6bf0.tar.gz
external-libdrm-4462303700fd982eb5fdd266ee04d0543f4f6bf0.tar.xz
external-libdrm-4462303700fd982eb5fdd266ee04d0543f4f6bf0.zip
amdgpu: expose the AMDGPU_GEM_CREATE_VRAM_CLEARED flag
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>
Diffstat (limited to 'include')
-rw-r--r--include/drm/amdgpu_drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
index fbdd1185..d43895ed 100644
--- a/include/drm/amdgpu_drm.h
+++ b/include/drm/amdgpu_drm.h
@@ -73,6 +73,8 @@
73#define AMDGPU_GEM_CREATE_NO_CPU_ACCESS (1 << 1) 73#define AMDGPU_GEM_CREATE_NO_CPU_ACCESS (1 << 1)
74/* Flag that USWC attributes should be used for GTT */ 74/* Flag that USWC attributes should be used for GTT */
75#define AMDGPU_GEM_CREATE_CPU_GTT_USWC (1 << 2) 75#define AMDGPU_GEM_CREATE_CPU_GTT_USWC (1 << 2)
76/* Flag that the memory should be in VRAM and cleared */
77#define AMDGPU_GEM_CREATE_VRAM_CLEARED (1 << 3)
76 78
77struct drm_amdgpu_gem_create_in { 79struct drm_amdgpu_gem_create_in {
78 /** the requested memory size */ 80 /** the requested memory size */