From: Chris Wilson Subject: Re: [PATCH] tests: Make it easy to tell if rendercopy is doing the right thing Date: Wed, 27 Feb 2013 19:06:37 +0000 Message-ID: <20130227190637.GD1924@cantiga.alporthouse.com> References: <1361989687-12989-1-git-send-email-damien.lespiau@intel.com> <1361989687-12989-2-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 940A2E6048 for ; Wed, 27 Feb 2013 11:06:49 -0800 (PST) Content-Disposition: inline In-Reply-To: <1361989687-12989-2-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Damien Lespiau Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Feb 27, 2013 at 06:28:07PM +0000, Damien Lespiau wrote: > When dumping an .aub file, gem_render_linear_blit samples a texture to > write it in a render target 1:1. > > When enabling new platforms, it's really handy to be able to see if you > are actually rendering to the target which is hard to see currently as > all the buffers are initialized with incrementing numbers and look very > much alike. > > So, when dumping an .aub file for inspection, let's fill the destination > buffer with a constant color (0xff0000ff) and dump both src and dest bos > into bmp files. Just create a new target that just does this extremely simple operation. Arbtrarily reusing gem_render_linear_blits and making it perform differently under tracing is going to a source of major confusion later. Something like gem_render_copy and a note in the README about how you use it during bringup. -Chris -- Chris Wilson, Intel Open Source Technology Centre