From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Subject: Re: [PATCH v3 13/23] drm/qxl: use shadow bo directly Date: Fri, 25 Jan 2019 17:59:13 +0100 Message-ID: <709f738a-308b-90f2-2cc0-698db4e25068@tronnes.org> References: <20190118122020.27596-1-kraxel@redhat.com> <20190118122020.27596-14-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20190118122020.27596-14-kraxel@redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: Gerd Hoffmann , dri-devel@lists.freedesktop.org Cc: David Airlie , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , Dave Airlie List-Id: dri-devel@lists.freedesktop.org Den 18.01.2019 13.20, skrev Gerd Hoffmann: > Pass the shadow bo to qxl_io_create_primary() instead of expecting > qxl_io_create_primary to check bo->shadow. Set is_primary flag on the > shadow bo. Move the is_primary tracking into qxl_io_create_primary() > and qxl_io_destroy_primary() functions. > > That simplifies primary surface tracking and the workflow in > qxl_primary_atomic_update(). > > Signed-off-by: Gerd Hoffmann > > qxl_io_create/destroy_primary: primary_bo tracking [fixup] > --- I'm unable to follow the logic, but I didn't spot anything suspicious looking. Acked-by: Noralf Trønnes