summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXia Yang2016-03-11 08:18:05 -0600
committerandroid-build-merger2016-03-11 08:18:05 -0600
commitbc4d2021bfeae34c5c6f74347094570cf64ec6f8 (patch)
treee62961ada2a4c7f29bb5056c233d1c42c9552612
parent3da561b5b8e81ab661d683134165cfd6bf54b20d (diff)
parent5afe8e056d6756c8e2ac96279542c3d2daf0742d (diff)
downloadexternal-libdrm-bc4d2021bfeae34c5c6f74347094570cf64ec6f8.tar.gz
external-libdrm-bc4d2021bfeae34c5c6f74347094570cf64ec6f8.tar.xz
external-libdrm-bc4d2021bfeae34c5c6f74347094570cf64ec6f8.zip
drm: add flag support for address space alloc
am: 5afe8e056d * commit '5afe8e056d6756c8e2ac96279542c3d2daf0742d': drm: add flag support for address space alloc
-rw-r--r--include/drm/nouveau_drm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/nouveau_drm.h b/include/drm/nouveau_drm.h
index 915853c0..1372f533 100644
--- a/include/drm/nouveau_drm.h
+++ b/include/drm/nouveau_drm.h
@@ -213,10 +213,11 @@ struct drm_nouveau_gem_cpu_fini {
213 uint32_t handle; 213 uint32_t handle;
214}; 214};
215 215
216#define NOUVEAU_GEM_AS_SPARSE 0x00000001
216struct drm_nouveau_gem_as_alloc { 217struct drm_nouveau_gem_as_alloc {
217 uint64_t pages; /* in, page length */ 218 uint64_t pages; /* in, page length */
218 uint32_t page_size; /* in, byte page size */ 219 uint32_t page_size; /* in, byte page size */
219 uint32_t pad; 220 uint32_t flags; /* in, flags of address space */
220 uint64_t align; /* in, requested alignment in bytes */ 221 uint64_t align; /* in, requested alignment in bytes */
221 uint64_t address; /* in/out, non-zero for fixed address allocation */ 222 uint64_t address; /* in/out, non-zero for fixed address allocation */
222}; 223};