From: Jesse Barnes Subject: Re: [PATCH] drm/i915: fix IVB cursor support Date: Wed, 12 Oct 2011 14:43:13 -0700 Message-ID: <20111012144313.1613d18f@jbarnes-desktop> References: <1318443179-4917-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1666612003==" Return-path: Received: from oproxy9.bluehost.com (oproxy9.bluehost.com [69.89.24.6]) by gabe.freedesktop.org (Postfix) with SMTP id DA1C79E7B1 for ; Wed, 12 Oct 2011 14:43:19 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1666612003== Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Q8FqH3C7KmUD_gVVl9j5sAA"; protocol="application/pgp-signature" --Sig_/Q8FqH3C7KmUD_gVVl9j5sAA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 12 Oct 2011 21:00:29 +0100 Chris Wilson wrote: > On Wed, 12 Oct 2011 13:37:53 -0600, Keith Packard wro= te: > Non-text part: multipart/mixed > Non-text part: multipart/signed > > On Wed, 12 Oct 2011 11:12:59 -0700, Jesse Barnes wrote: > >=20 > > > +#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) > >=20 > > Only two cursors? >=20 > They are at regular offsets (0x1000), so: >=20 > CURCBASE =3D CURABASE + pipe*(CURBBASE - CURABASE); >=20 > 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. --=20 Jesse Barnes, Intel Open Source Technology Center --Sig_/Q8FqH3C7KmUD_gVVl9j5sAA Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJOlgnxAAoJEIEoDkX4Qk9hys4P/itBDrrdFZ/X+750v1PvPZzN Qyc1FLeL/J7cJdLmbfKyb+8qXiTcxKBuiKKlytQR+b59icQ+YOR5yOqyVGWKs56t WgxbbP3RCIqDp6QcT7Te8zfpquIBRaAQ8oc5ShGhjBy/f/ZJNzMC8Kk+zJ6/C/ud aPfx5Yw4pBl+2Ww6j6xXZsiNPUB9qjPXh3bIPn8LPU7dP5EyZ/2k3BEdtGVkhngV c8jEI4OLbWtuwz8kyxuI+CNydVHYAGLEP3YpbUUVZ69SIEEQhnzWDUVbv38Ld8YG O6D4cRxjAYKhKcwLB0F1JCx9DvLN6mCbRJllXGVjewnohIYjDjE9u+mRCzuLEqVJ Am6c0+MVAkIFyhj0Ij6x1MJqWkFgkmrliS7D2Ir84fpGSR53rr5t/FDbqs8TbkT0 beQTj2+QNY75BrMZHZ6zIucJID4fJtwOruZQSh720YcC2GL2S7lylzzvbjYT1La5 ow7spjQh89FyCZPhzugJwxz8TMWxNuAB3H3KDW4tQyMKO6iJiXb77fArIA1creKT px4nCkQWGq9TUO+fkPhD7YxH97GqqZa8QYI4XVsL3xHlZ+ITUmSEoQtB/RWqT4Th 1CmrKU0wsvzl/f5skSHoylwY4sfQdVRuoabIu9DOR5DCznsVRbrjS2J3VBIMcJzw JPCdy9lRAzhhy3o015gb =PwOu -----END PGP SIGNATURE----- --Sig_/Q8FqH3C7KmUD_gVVl9j5sAA-- --===============1666612003== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1666612003==--