From: Keith Packard Subject: Re: [PATCH] drm/i915: properly mask and or watermark values for sprites Date: Thu, 19 Jan 2012 16:48:52 -0800 Message-ID: <864nvrci6j.fsf@sumi.keithp.com> References: <1326743874-1735-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1949169339==" Return-path: Received: from keithp.com (home.keithp.com [63.227.221.253]) by gabe.freedesktop.org (Postfix) with ESMTP id BBEE09E756 for ; Thu, 19 Jan 2012 16:48:55 -0800 (PST) In-Reply-To: <1326743874-1735-1-git-send-email-jbarnes@virtuousgeek.org> 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: Jesse Barnes , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1949169339== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 16 Jan 2012 11:57:54 -0800, Jesse Barnes = wrote: > Now that we're using the sprite WM fields, we need to take care not to > clobber them in the main update_wm functions. While we're at it, make > sure we mask out the old sprite wm value before or'ing in the new one > when the sprite wm is updated. >=20 > Signed-off-by: Jesse Barnes Reviewed-by: Keith Packard Would avoid line wrapping with: > + val =3D I915_READ(WM0_PIPEA_ILK); > + val &=3D ~(WM0_PIPE_PLANE_MASK | WM0_PIPE_CURSOR_MASK); > + I915_WRITE(WM0_PIPEA_ILK, val | > + ((plane_wm << WM0_PIPE_PLANE_SHIFT) | cursor_wm)); + val =3D I915_READ(WM0_PIPEA_ILK); + val &=3D ~(WM0_PIPE_PLANE_MASK | WM0_PIPE_CURSOR_MASK); + val |=3D ((plane_wm << WM0_PIPE_PLANE_SHIFT) | cursor_wm); + I915_WRITE(WM0_PIPEA_ILK, val); =2D-=20 keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIVAwUBTxi59DYtFsjWk68qAQhLmQ//ZY/ymUJDJYecs6/mTvQCrWjnTcAypU6z z6C3joBqZ3NoYt2XzBuqlTSJQYSrDZjrdl0SRoUYajJfYeJXhN3dj+pIS3jGIXxK o7misgSw79umhOV1m6K1i3AEGDUNbCfjqnjVYcR2AUdN5yXDAALtqcQszL9CDnL4 5QNJeMrF14UzDbqVOIu2O8lwo8CUQm2D45IniIDlTYyoZx6v4RApMmpzC6TOTJeg a/RIHNgMwKe6rpJ3LCPJYJlzF7AcvfozAZHUYNxxai46m1KsDYeEzDKBIEgeH63x KmjjvSE+DrUZHx4bqROWP8H3v3XHUq6sGYHZDkWPUaXJUuHBE7exNbXkhpY0ExQ2 kSM/J6jRUV3Scy34EOTDGSRnsLZX5A/coM0GrmFrYsqaIk/so7OdnWtxmoIr/voA zW9CdOviQ5XC1KxEzjBDART984HwyByx0zR5kai4JEoPJYICRnNp9XEfz1vHuBow jjf9ZXxmKYdvQ3FS6Kl5bcj//IOwI3PS/qZhCQQVhgj9QGtkDm/hXKvqVYxcscCy 9Id2ydvPvnRwf0pbSfZiCqQstgSwSd+hBnuAY3ncDoLaW8M7VHFU1efW2cnW0ePP NmMq8YpXE7Aw8Xu2STfQb8PCASa5QJrrBER6n9uHLr5KPckfp2vciU3Lo+q0532N NgXILShVzco= =JDOq -----END PGP SIGNATURE----- --=-=-=-- --===============1949169339== 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 --===============1949169339==--