Add I915_EXEC_SECURE macro
PATCH 1/1 Add I915_EXEC_SECURE macro
From: Joao Santos <[email protected]>
Making libdrm and kernel drm uniform. The lack of this macro makes igt test build break.
--- include/drm/i915_drm.h | 6 ++++++ 1 file changed, 6 insertions(+)
include/drm/i915_drm.h +6 -0
@@ -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
Signature · 1 line
1.9.0
Quoted 7 lines · On Mon, Feb 24, 2014 at 11:56:59AM +0000, [email protected] wrote:
From: Joao Santos <[email protected]>
Making libdrm and kernel drm uniform. The lack of this macro makes igt test build break.
Change-Id Ie62a2507e48eb3927bcf8f43a1606e56625db2e8Signed-off-by Joao Santos <[email protected]>
This should already be included in the latest upstream libdrm.
commit a254cb50414a5def5c872a765c0dd1295a550c6b
Author: Ben Widawsky <[email protected]> Date: Thu Jan 2 11:36:59 2014 -0800
intel: Merge latest i915_drm.h
Quoted 28 lines
--- include/drm/i915_drm.h | 6 ++++++ 1 file changed, 6 insertions(+)include/drm/i915_drm.h +6
-0@@ -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_MASKSignature · 6 lines
1.9.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 1 line
Ben Widawsky, Intel Open Source Technology Center
Quoted 9 lines · Ben Widawsky
Quoted 7 lines · On Mon, Feb 24, 2014 at 11:56:59AM +0000, [email protected] wrote:
From: Joao Santos <[email protected]>
Making libdrm and kernel drm uniform. The lack of this macro makes igt test build break.
Change-Id Ie62a2507e48eb3927bcf8f43a1606e56625db2e8Signed-off-by Joao Santos <[email protected]>
Quoted 7 lines
This should already be included in the latest upstream libdrm.
commit
a254cb50414a5def5c872a765c0dd1295a550c6bAuthor: Ben Widawsky <[email protected]> Date: Thu Jan 2 11:36:59 2014 -0800intel: Merge latest
i915_drm.h
I guess that means we need to ref the libdrm build deps for igt. Joao, care to create the relevant autconf patch for igt?
Thanks, Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch