diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 6fb225f6b2c8..c241468c632e 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1216,30 +1216,14 @@ static inline void i915_write(struct drm_i915_private *dev_priv, u32 reg, | |||
1216 | #define I915_DEBUG_DISABLE_IO() (dev_priv->debug_flags &= ~(I915_DEBUG_READ | \ | 1216 | #define I915_DEBUG_DISABLE_IO() (dev_priv->debug_flags &= ~(I915_DEBUG_READ | \ |
1217 | I915_DEBUG_WRITE)) | 1217 | I915_DEBUG_WRITE)) |
1218 | 1218 | ||
1219 | #define I915_VERBOSE 0 | 1219 | #define BEGIN_LP_RING(n) \ |
1220 | intel_ring_begin(&dev_priv->render_ring, (n)) | ||
1220 | 1221 | ||
1221 | #define BEGIN_LP_RING(n) do { \ | 1222 | #define OUT_RING(x) \ |
1222 | drm_i915_private_t *dev_priv__ = dev->dev_private; \ | 1223 | intel_ring_emit(&dev_priv->render_ring, x) |
1223 | if (I915_VERBOSE) \ | ||
1224 | DRM_DEBUG(" BEGIN_LP_RING %x\n", (int)(n)); \ | ||
1225 | intel_ring_begin(&dev_priv__->render_ring, (n)); \ | ||
1226 | } while (0) | ||
1227 | |||
1228 | |||
1229 | #define OUT_RING(x) do { \ | ||
1230 | drm_i915_private_t *dev_priv__ = dev->dev_private; \ | ||
1231 | if (I915_VERBOSE) \ | ||
1232 | DRM_DEBUG(" OUT_RING %x\n", (int)(x)); \ | ||
1233 | intel_ring_emit(&dev_priv__->render_ring, x); \ | ||
1234 | } while (0) | ||
1235 | 1224 | ||
1236 | #define ADVANCE_LP_RING() do { \ | 1225 | #define ADVANCE_LP_RING() \ |
1237 | drm_i915_private_t *dev_priv__ = dev->dev_private; \ | 1226 | intel_ring_advance(&dev_priv->render_ring) |
1238 | if (I915_VERBOSE) \ | ||
1239 | DRM_DEBUG("ADVANCE_LP_RING %x\n", \ | ||
1240 | dev_priv__->render_ring.tail); \ | ||
1241 | intel_ring_advance(&dev_priv__->render_ring); \ | ||
1242 | } while(0) | ||
1243 | 1227 | ||
1244 | /** | 1228 | /** |
1245 | * Reads a dword out of the status page, which is written to from the command | 1229 | * Reads a dword out of the status page, which is written to from the command |