From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Packard Subject: Re: [PATCH] Pack swap complete bits into an XEvent Date: Thu, 28 Apr 2011 15:01:16 -0700 Message-ID: References: <1304022442-8070-1-git-send-email-jbarnes@virtuousgeek.org> <1304022442-8070-2-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0847450078==" Return-path: In-Reply-To: <1304022442-8070-2-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Jesse Barnes , dri-devel@lists.freedesktop.org, xorg-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0847450078== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 28 Apr 2011 13:27:19 -0700, Jesse Barnes = wrote: > The defintion of the swap complete event was wrong; XEvents are only 32 > bytes long, and with padding the swap event was longer. So use some > creative packing to get all the bits we want transmitted. Requires a > proto version bump. If you've got a proto version on both sides, you should just stick the low 32 bits in place of the event type and pad fields, rather than abusing. Yes, this requires two different structures in the X server, but you need to do that anyways -- the event type has to shrink from 16 bits to 8 bits, moving it at the same time is not a problem. Besides, this will make the xcb case really ugly as xcb doesn't hide the protocol event structures from the application. =2D-=20 keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iD8DBQFNueOsQp8BWwlsTdMRAoMFAJ9SnUtU4dHE+M74/IiuZ10fosn89gCfUGg5 usF2HuqRTth9yu1sWa/wKH8= =g/1J -----END PGP SIGNATURE----- --=-=-=-- --===============0847450078== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0847450078==--