From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753239AbdJLVCL (ORCPT ); Thu, 12 Oct 2017 17:02:11 -0400 Received: from home.keithp.com ([63.227.221.253]:48428 "EHLO elaine.keithp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751900AbdJLVCK (ORCPT ); Thu, 12 Oct 2017 17:02:10 -0400 From: "Keith Packard" To: Daniel Vetter Cc: linux-kernel@vger.kernel.org, Dave Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 2/6] drm: Allow render nodes to query display objects In-Reply-To: <20171012184117.s6qrcpubd6wfm5wl@phenom.ffwll.local> References: <20171011004831.9624-1-keithp@keithp.com> <20171011004831.9624-3-keithp@keithp.com> <20171012184117.s6qrcpubd6wfm5wl@phenom.ffwll.local> Date: Thu, 12 Oct 2017 14:02:08 -0700 Message-ID: <87o9pc5bcf.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: > So given the huge possibilities of abuse, do we really, really need all > this, and is there not any way to create a bit of protocol to pass the > relevant data from X to clients? From your presentation is sounded like > current xrandr is (almost) there ... Yeah, it's the Vulkan EXT_acquire_xlib_display API which is using this access to discover the set of resources available via the render fd in preparation for accessing them over the lease fd once the lease has been created. I *think* I can get enough information to make a good guess as to what kernel resources there are from the RandR info. I'll go give that a try and see if I get stuck. Thanks for the feedback; the fewer kernel API changes the better. =2D-=20 =2Dkeith --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAlnf2FAACgkQ2yIaaQAA ABHgDBAAoKEfW19Y1oOxX14NeLpX8YHpDEFamAwtQZz87aCfqn6I8QQgMgFMkqxc AnoRd505OBpM513dWONTXcXk0ocAuE4XQOy2gEmpTyl/pw8/MUfPxfv6dNd15NbO uju4jS/k7zQ0e05pGCs+5M6ZNxxIOzXPpk/kKBtSTdh5Whn8bRp0fChL7++r3yhi hnj8GhcKtgqZndLk/3tPFqhKkenTqX1HL7g0h4lazHoPQMTYyI8uTpQ4fedI+8gz odT7pqHlPHjZlvfQo3HoP7pdnifofirqmiCPqlFVZHfgzYyPNC13RLBt9H/pRv0p /8DioQGCvYEXkRNlfGcDMHQEdoqnTBPcym1HXs5eIDA7/hVT+8By2fVTHvZoz+PS lD0onvyf1EFOrC1alZoHXVMDds3y/fj/vaAlAwnpgf1UrbmW5tHv1Jmf4zpncMPB Zc+Iyj5f/+jp1y+V4UPI/l10bc0uo0CoiuSjcumDVFi9q49rP/xoEGAN72GYopil 2XMCqkL18/pyzigVsq/S00oVPYdkyFsrEkusMTnfFFODHbGdn1/3C/IX3DX4ni44 erolZivFeZi8Q1vMHZ1xOIrofJzj0ElHQ5l/han/cL72X6QLQjHotOFKCtrU3wUd Bru+iIVsVQvEhqadVCEFeX272ugR/+98OIr9OhwM4dxt0VfcYiY= =pWr9 -----END PGP SIGNATURE----- --=-=-=--