drm/i915: set ring->size in common ring setup code
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Apr 2012 20:12:47 +0000 (22:12 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Apr 2012 10:41:22 +0000 (12:41 +0200)
commitdfc9ef2fb0ba01ad8256f4dfa9a8e8fcc6288fc4
tree4c2570714f4733f5d3735f36a4ed59fc82b124ad
parent6a848ccb800f5330ca368cd804795b7ce644e36c
drm/i915: set ring->size in common ring setup code

Eventually we want to scale the ring size depending upon available
gtt space. For now just consolidate this instead of replicating it
over all ringbuffer templates.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c