From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755516AbdJLVFE (ORCPT ); Thu, 12 Oct 2017 17:05:04 -0400 Received: from home.keithp.com ([63.227.221.253]:48464 "EHLO elaine.keithp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753141AbdJLVFB (ORCPT ); Thu, 12 Oct 2017 17:05:01 -0400 From: "Keith Packard" To: Daniel Vetter , linux-kernel@vger.kernel.org, Dave Airlie , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 2/6] drm: Allow render nodes to query display objects In-Reply-To: <20171012194543.vpsaxt4xitv4muz6@phenom.ffwll.local> References: <20171011004831.9624-1-keithp@keithp.com> <20171011004831.9624-3-keithp@keithp.com> <20171012184117.s6qrcpubd6wfm5wl@phenom.ffwll.local> <20171012194543.vpsaxt4xitv4muz6@phenom.ffwll.local> Date: Thu, 12 Oct 2017 14:04:59 -0700 Message-ID: <87infk5b7o.fsf@keithp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Daniel Vetter writes: > One more that came up on irc after discussion why this is needed: The > userspace side using this won't work on split gpus where the render node > has 0 displays, and hence where you really need to query the compositor > anyway. Agreed -- using the X connection to get the information should let this work on split systems. Within the Vulkan code, I already have to move objects from the render node to the display node. Hrm. That exposes a weakness in the kms_display extension I've proposed; that only allows you to pass a single fd. Passing separate display and render fds through that interface seems like a pretty useful change. =2D-=20 =2Dkeith --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAlnf2PsACgkQ2yIaaQAA ABHz1xAAgybo8lq3YP4PBUVR9Ffo0DQgr6Pyy6gt6h5J/cPpyjNcP5gs9cEpSoNz dsD7h1sDN9whlPtWH18K/jeobeMo/mC4ggaKABqKrqk1L9ynF2jEF+n8eXsEW40k TKpBcydjvhkU5+HXJ5r2PQ33qlWRUavAtbncR2q7W2jNaeLB50wIjoqQAXoIXhZK +XD9vPA9aW2aYpzAVnR/wAlCpc59oZpI5+ewMH8txT3qbWyeFBUyjIANctXrryMG kpRqu7Y9EL/htPS6sR69/1pYOXVCNmJxhtXPuWoCkP3LBeMXSF6k/Ha4e/yHsiTM EFG7UiJoLC1tABAJPqRzabi6Gd0gfWjsfnzcpkOMo2w4tLgPEUQCGOmlF+qELGpZ IlVbecMV2CjD31hHWOMaUCXVApGBiyMK9ivMlLh7E5TR9LSHlqxf/yfo3KWmY70M aEHca4Rnc/N7scm3kktBSaFbtQSo+lgSqT1afNIGE7TL2bSFIdXHXZylq8GZE06y nsa6QM/GcVCoSvYCQ4qCkuPD+lfpsIn+Oi37oNc21mByXpv/Ae4tC4DBHdqlTgM0 PJWOqSJG86g7lSSBt4NyVvSOaFbaFrBG8jxXeWCR8yt6rkbi+mpI2ojS6lnIDEd/ Mu9y3Rbio6mCdoQ7YppBCDKzkrjwBM/VeIkrDblZT4s+vaBBeiY= =YctC -----END PGP SIGNATURE----- --=-=-=--