summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-02-07 10:23:19 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-02-10 21:43:43 +0000
commitae9a043b0c5b0d90dcd9fb8b3a2d27f34f0725fc (patch)
tree35f308a8a3c7dac15159cd2779ac7fdcf3cbe23b /drivers/gpu/drm/i915/intel_ringbuffer.h
parent8c12d121590ebe5a43bf9a0aedbbeb192f257846 (diff)
downloadop-kernel-dev-ae9a043b0c5b0d90dcd9fb8b3a2d27f34f0725fc.zip
op-kernel-dev-ae9a043b0c5b0d90dcd9fb8b3a2d27f34f0725fc.tar.gz
drm/i915: Rename conditional GEM execution macros
After a brief discussion, we settled on a naming convention for the conditional GEM debugging data that should be clearer to the casual user: GEM_DEBUG Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170207102319.10910-1-chris@chris-wilson.co.uk Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index 896838c..b122c3c 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -144,7 +144,7 @@ struct intel_ring {
u32 head;
u32 tail;
- GEM_BUG_ONLY_DECLARE(u32 advance);
+ GEM_DEBUG_DECL(u32 advance);
int space;
int size;
@@ -381,7 +381,7 @@ struct intel_engine_cs {
struct execlist_port {
struct drm_i915_gem_request *request;
unsigned int count;
- GEM_BUG_ONLY_DECLARE(u32 context_id);
+ GEM_DEBUG_DECL(u32 context_id);
} execlist_port[2];
struct rb_root execlist_queue;
struct rb_node *execlist_first;
@@ -519,7 +519,7 @@ static inline void intel_ring_advance(struct intel_ring *ring)
* reserved for the command packet (i.e. the value passed to
* intel_ring_begin()).
*/
- GEM_BUG_ONLY_ON(ring->tail != ring->advance);
+ GEM_DEBUG_BUG_ON(ring->tail != ring->advance);
}
static inline u32 intel_ring_offset(struct intel_ring *ring, void *addr)
OpenPOWER on IntegriCloud