[PATCH] i915: Add I915_PARAM_REVISION

Daniel Vetter daniel at ffwll.ch
Wed Mar 4 10:02:23 PST 2015


On Wed, Mar 04, 2015 at 02:37:09PM +0000, Neil Roberts wrote:
> This is a new parameter for DRM_I915_GETPARAM to query the GPU
> revision.
> 
> Signed-off-by: Neil Roberts <neil at linux.intel.com>
> ---
>  include/drm/i915_drm.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
> index 15dd01d..943a9d9 100644
> --- a/include/drm/i915_drm.h
> +++ b/include/drm/i915_drm.h
> @@ -340,6 +340,7 @@ typedef struct drm_i915_irq_wait {
>  #define I915_PARAM_HAS_EXEC_HANDLE_LUT   26
>  #define I915_PARAM_HAS_WT     	 	 27
>  #define I915_PARAM_CMD_PARSER_VERSION	 28

This gap isn't good and means you've manually added this line. Please use
the make headers_install target from the kernel and update the entire
i915_drm.h file from the generated one.

Thanks, Daniel

> +#define I915_PARAM_REVISION              32
>  
>  typedef struct drm_i915_getparam {
>  	int param;
> -- 
> 1.9.3
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch


More information about the dri-devel mailing list