[Intel-gfx] [PATCH 3/3] drm/i915: Make num_sprites a per-pipe value

Damien Lespiau damien.lespiau at intel.com
Fri Feb 28 18:37:39 CET 2014


On Fri, Feb 28, 2014 at 05:30:02PM +0000, Chris Wilson wrote:
> On Fri, Feb 28, 2014 at 04:42:15PM +0000, Damien Lespiau wrote:
> > In the future, we need to be able to specify per-pipe number of
> > planes/sprites. Let's start today!
> 
> But today, what's wrong with:
> for_each_pipe(pipe) info->num_sprites[pipe] = IS_VLV(dev) ? 2 : 1;

I'd rather have info->num_sprites[pipe] == 0 when the device doesn't
support that pipe, even if that value shouldn't be used anywhere.

-- 
Damien




More information about the Intel-gfx mailing list