[Intel-gfx] [RFC 1/2] include/drm: Rename the 'pad' field to 'flags' of gem_create ioctl

sourab.gupta at intel.com sourab.gupta at intel.com
Wed Mar 5 12:33:18 CET 2014


From: Sourab Gupta <sourab.gupta at intel.com>

Renamed the 'pad' field to 'flags' of gem_create ioctl.
Also, added a new flag I915_CPU_MAP_NOT_NEEDED which can be passed with
gem_create ioctl.

Signed-off-by: Sourab Gupta <sourab.gupta at intel.com>

Signed-off-by: Akash Goel <akash.goel at intel.com>
---
 include/drm/i915_drm.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index 2f4eb8c..39ff300 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -431,7 +431,8 @@ struct drm_i915_gem_create {
 	 * Object handles are nonzero.
 	 */
 	__u32 handle;
-	__u32 pad;
+	__u32 flags;
+#define I915_CPU_MAP_NOT_NEEDED 0x1
 };
 
 struct drm_i915_gem_pread {
-- 
1.7.9.5




More information about the Intel-gfx mailing list