[Intel-gfx] [PATCH] drm/i915: fix IVB cursor support

Jesse Barnes jbarnes at virtuousgeek.org
Wed Oct 12 23:43:13 CEST 2011


On Wed, 12 Oct 2011 21:00:29 +0100
Chris Wilson <chris at chris-wilson.co.uk> wrote:

> On Wed, 12 Oct 2011 13:37:53 -0600, Keith Packard <keithp at keithp.com> wrote:
> Non-text part: multipart/mixed
> Non-text part: multipart/signed
> > On Wed, 12 Oct 2011 11:12:59 -0700, Jesse Barnes <jbarnes at virtuousgeek.org> wrote:
> > 
> > > +#define CURCNTR_IVB(pipe) _PIPE(pipe, _CURACNTR, _CURBCNTR_IVB)
> > > +#define CURBASE_IVB(pipe) _PIPE(pipe, _CURABASE, _CURBBASE_IVB)
> > > +#define CURPOS_IVB(pipe) _PIPE(pipe, _CURAPOS, _CURBPOS_IVB)
> > 
> > Only two cursors?
> 
> They are at regular offsets (0x1000), so:
> 
>    CURCBASE = CURABASE + pipe*(CURBBASE - CURABASE);
> 
> CURABASE: 0x70084
> CURBBASE: 0x71084
> CURCBASE: 0x72084

Yeah as long as the hw guys aren't trying to trick is (as with the PCH
DPLL regs) we use this pattern everywhere and walk past the 'B' range to
get to the 'C' regs.

-- 
Jesse Barnes, Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20111012/f3fd6f76/attachment.sig>


More information about the Intel-gfx mailing list