intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/i915: Tidy max/display priority macro
@ 2017-01-21  9:25 Chris Wilson
  2017-01-21  9:25 ` [PATCH 2/3] drm/i915: Priority boost for locked waits Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Chris Wilson @ 2017-01-21  9:25 UTC (permalink / raw)
  To: intel-gfx

Convert I915_PRIORITY_DISPLAY to an enum for easier ranking with new
priorities in later patches.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/i915_drv.h         | 1 -
 drivers/gpu/drm/i915/i915_gem_request.h | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 1b340eb0db19..562e8bfa5501 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -3401,7 +3401,6 @@ int i915_gem_object_wait(struct drm_i915_gem_object *obj,
 int i915_gem_object_wait_priority(struct drm_i915_gem_object *obj,
 				  unsigned int flags,
 				  int priority);
-#define I915_PRIORITY_DISPLAY I915_PRIORITY_MAX
 
 int __must_check
 i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj,
diff --git a/drivers/gpu/drm/i915/i915_gem_request.h b/drivers/gpu/drm/i915/i915_gem_request.h
index 316c86c98b6a..da71ae280b2a 100644
--- a/drivers/gpu/drm/i915/i915_gem_request.h
+++ b/drivers/gpu/drm/i915/i915_gem_request.h
@@ -73,6 +73,10 @@ struct i915_priotree {
 #define I915_PRIORITY_MIN (-I915_PRIORITY_MAX)
 };
 
+enum {
+	I915_PRIORITY_DISPLAY = I915_PRIORITY_MAX
+};
+
 struct i915_gem_capture_list {
 	struct i915_gem_capture_list *next;
 	struct i915_vma *vma;
-- 
2.11.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-01-23 12:02 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-21  9:25 [PATCH 1/3] drm/i915: Tidy max/display priority macro Chris Wilson
2017-01-21  9:25 ` [PATCH 2/3] drm/i915: Priority boost for locked waits Chris Wilson
2017-01-23  8:03   ` Joonas Lahtinen
2017-01-23 10:43   ` Tvrtko Ursulin
2017-01-23 10:51     ` Chris Wilson
2017-01-23 11:41       ` Tvrtko Ursulin
2017-01-23 11:50         ` Chris Wilson
2017-01-23 11:56           ` Tvrtko Ursulin
2017-01-21  9:25 ` [PATCH 3/3] drm/i915: Priority boost switching to an idle ring Chris Wilson
2017-01-21 10:09   ` Chris Wilson
2017-01-23  8:39   ` Joonas Lahtinen
2017-01-23  8:48     ` Chris Wilson
2017-01-23 10:51   ` Tvrtko Ursulin
2017-01-23 11:16     ` Chris Wilson
2017-01-23 11:50       ` Tvrtko Ursulin
2017-01-23 12:02         ` Chris Wilson
2017-01-23  8:31 ` [PATCH 1/3] drm/i915: Tidy max/display priority macro Joonas Lahtinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).