aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Gordon <david.s.gordon@intel.com>2016-08-19 10:23:42 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2016-08-19 10:31:17 -0400
commit0be81156b3fb4d4e8e2c94177e5222dc21c3ff10 (patch)
treec672c870010723eb458c1e3a82f82897ddccd1ef
parent52a42cec4b7088599a9f51187c454d45c460167a (diff)
drm/i915: Reattach comment, complete type specification
In the recent patch bc3d674 drm/i915: Allow userspace to request no-error-capture upon ... the final version moved the flags and the associated #defines around so they were adjacent; unfortunately, they ended up between a comment and the thing (hw_id) to which the comment applies :( So this patch reshuffles the comment and subject back together. Also, as we're touching 'hw_id', let's change it from just 'unsigned' to a fully-specified 'unsigned int', because some code checking tools (including checkpatch) object to plain 'unsigned'. Fixes: bc3d674462e5 ("drm/i915: Allow userspace to request no-error-capture...") Signed-off-by: Dave Gordon <david.s.gordon@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Link: http://patchwork.freedesktop.org/patch/msgid/1471616622-6919-1-git-send-email-david.s.gordon@intel.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 299949d54dca..016425c0b475 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -893,11 +893,12 @@ struct i915_gem_context {
893 893
894 struct i915_ctx_hang_stats hang_stats; 894 struct i915_ctx_hang_stats hang_stats;
895 895
896 /* Unique identifier for this context, used by the hw for tracking */
897 unsigned long flags; 896 unsigned long flags;
898#define CONTEXT_NO_ZEROMAP BIT(0) 897#define CONTEXT_NO_ZEROMAP BIT(0)
899#define CONTEXT_NO_ERROR_CAPTURE BIT(1) 898#define CONTEXT_NO_ERROR_CAPTURE BIT(1)
900 unsigned hw_id; 899
900 /* Unique identifier for this context, used by the hw for tracking */
901 unsigned int hw_id;
901 u32 user_handle; 902 u32 user_handle;
902 903
903 u32 ggtt_alignment; 904 u32 ggtt_alignment;