[Intel-gfx] [PATCH] Add I915_EXEC_SECURE macro

Ben Widawsky ben at bwidawsk.net
Tue Feb 25 03:37:35 CET 2014


On Mon, Feb 24, 2014 at 11:56:59AM +0000, joao.santos at intel.com wrote:
> 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>

This should already be included in the latest upstream libdrm.

commit a254cb50414a5def5c872a765c0dd1295a550c6b
Author: Ben Widawsky <benjamin.widawsky at intel.com>
Date:   Thu Jan 2 11:36:59 2014 -0800

    intel: Merge latest i915_drm.h

> ---
>  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
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ben Widawsky, Intel Open Source Technology Center



More information about the Intel-gfx mailing list