From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz5rN-0004F1-6d for qemu-devel@nongnu.org; Thu, 11 Dec 2014 10:41:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xz5rF-0001At-NG for qemu-devel@nongnu.org; Thu, 11 Dec 2014 10:40:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz5rF-0001AO-A7 for qemu-devel@nongnu.org; Thu, 11 Dec 2014 10:40:49 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBBFemei010114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 11 Dec 2014 10:40:48 -0500 Message-ID: <1418312446.1664.57.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Thu, 11 Dec 2014 16:40:46 +0100 In-Reply-To: <54899C01.9050503@redhat.com> References: <1418295956-22479-1-git-send-email-kraxel@redhat.com> <54899C01.9050503@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RfC PATCH 0/3] sdl2: add opengl rendering support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Hi, > Do you have a case in mind where the device emulation needs to know that? > As opposed to "always need opengl" or "never needs opengl". virtio-gpu has optional opengl support, and ideally the default behavior is 'enable opengl support in case the UI supports it'. > But you'd still need to know the UI in order to have a decent default. For > example should "-display vnc" should disable opengl by default (it's not > in your list above)? "-display egl" probably should enable it. For SDL I'd like to have it initially disabled by default, then later when it proved to be stable flip the default to enabled. > Perhaps "-display" could be processed in two steps. Hmm, that could work. Have some ${ui}_early_init(), called when parameters are parsed, to figure whenever opengl is available (and possibly have different opengl-enable defaults per UI) but don't do full initialization yet. cheers, Gerd