aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-graphics/drm/libdrm-2.4.66/0103-amdgpu-expose-the-AMDGPU_GEM_CREATE_VRAM_CLEARED-fla.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-graphics/drm/libdrm-2.4.66/0103-amdgpu-expose-the-AMDGPU_GEM_CREATE_VRAM_CLEARED-fla.patch')
-rw-r--r--common/recipes-graphics/drm/libdrm-2.4.66/0103-amdgpu-expose-the-AMDGPU_GEM_CREATE_VRAM_CLEARED-fla.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-graphics/drm/libdrm-2.4.66/0103-amdgpu-expose-the-AMDGPU_GEM_CREATE_VRAM_CLEARED-fla.patch b/common/recipes-graphics/drm/libdrm-2.4.66/0103-amdgpu-expose-the-AMDGPU_GEM_CREATE_VRAM_CLEARED-fla.patch
new file mode 100644
index 00000000..1b61a838
--- /dev/null
+++ b/common/recipes-graphics/drm/libdrm-2.4.66/0103-amdgpu-expose-the-AMDGPU_GEM_CREATE_VRAM_CLEARED-fla.patch
@@ -0,0 +1,32 @@
+From fad00706737fb2593523dbf799d7c6889a0edd73 Mon Sep 17 00:00:00 2001
+From: Flora Cui <Flora.Cui@amd.com>
+Date: Fri, 22 Jul 2016 11:56:52 +0800
+Subject: [PATCH 103/117] amdgpu: expose the AMDGPU_GEM_CREATE_VRAM_CLEARED
+ flag
+
+With this flag specified, VRAM buffer will be cleared at
+allocation time.
+
+Change-Id: Ic587ed7e524a3bfc3862a57b42aa95ff458fe880
+Signed-off-by: Flora Cui <Flora.Cui@amd.com>
+Reviewed-by: Alexandre Demers <alexandre.f.demers@gmail.com>
+---
+ include/drm/amdgpu_drm.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
+index 46a3c40..9aa0420 100644
+--- a/include/drm/amdgpu_drm.h
++++ b/include/drm/amdgpu_drm.h
+@@ -77,6 +77,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)
+ /* Flag that the memory allocation should be pinned */
+ #define AMDGPU_GEM_CREATE_NO_EVICT (1 << 31)
+
+--
+2.7.4
+