[Intel-gfx] [PATCH 4/6] drm/i915: switch ring->id to be a real id
Chris Wilson
chris at chris-wilson.co.uk
Tue Oct 11 17:55:17 CEST 2011
On Tue, 11 Oct 2011 16:39:12 +0200, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> ... and add a helpr function for the places where we want a flag.
>
> This way we can use ring->id to index into arrays.
>
> Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
> drivers/gpu/drm/i915/i915_debugfs.c | 8 ++++----
> drivers/gpu/drm/i915/i915_gem_execbuffer.c | 4 ++--
> drivers/gpu/drm/i915/i915_irq.c | 2 +-
> drivers/gpu/drm/i915/intel_ringbuffer.c | 14 +++++++-------
> drivers/gpu/drm/i915/intel_ringbuffer.h | 20 ++++++++++----------
> 5 files changed, 24 insertions(+), 24 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> index 8e95d66..75c5dd6 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -659,9 +659,9 @@ static int i915_ringbuffer_info(struct seq_file *m, void *data)
> static const char *ring_str(int ring)
> {
> switch (ring) {
> - case RING_RENDER: return " render";
> - case RING_BSD: return " bsd";
> - case RING_BLT: return " blt";
> + case RCS: return "render";
> + case VCS: return "bsd";
> + case BCS: return "blt";
> default: return "";
You dropped the beautifying space. On purpose?
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list