[Intel-gfx] [PATCH] Add I915_EXEC_SECURE macro

joao.santos at intel.com joao.santos at intel.com
Mon Feb 24 12:56:59 CET 2014


From: Joao Santos <joao.santos at intel.com>

Making libdrm and kernel drm uniform. The lack of this macro makes igt test
build break.

Change-Id: Ie62a2507e48eb3927bcf8f43a1606e56625db2e8
Signed-off-by: Joao Santos <joao.santos at intel.com>
---
 include/drm/i915_drm.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index 9b330e8..66f1d7b 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -767,6 +767,12 @@ struct drm_i915_gem_execbuffer2 {
 /** Resets the SO write offset registers for transform feedback on gen7. */
 #define I915_EXEC_GEN7_SOL_RESET	(1<<8)
 
+/** Request a privileged ("secure") batch buffer. Note only available for
+ * DRM_ROOT_ONLY | DRM_MASTER processes.
+ */
+#define I915_EXEC_SECURE		(1<<9)
+
+
 #define I915_EXEC_CONTEXT_ID_MASK	(0xffffffff)
 #define i915_execbuffer2_set_context_id(eb2, context) \
 	(eb2).rsvd1 = context & I915_EXEC_CONTEXT_ID_MASK
-- 
1.9.0




More information about the Intel-gfx mailing list