From: Chris Wilson Subject: Re: [PATCH] drm/i915: Add support to change pixel format, tiling mode, tiling offset. Date: Mon, 23 Sep 2013 13:37:11 +0100 Message-ID: <20130923123711.GG8482@nuc-i3427.alporthouse.com> References: <1379079331-19405-1-git-send-email-sandeepx.ramakutty@intel.com> <20130913143820.GH30165@nuc-i3427.alporthouse.com> <9FFD648774C2FE4CBFB1FC2607336026085E92@BGSMSX102.gar.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (unknown [109.228.6.236]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A9FCE5C84 for ; Mon, 23 Sep 2013 05:37:18 -0700 (PDT) Received: from fireflyinternet.com (unverified [87.106.93.118]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP id 129814215-1500050 for ; Mon, 23 Sep 2013 13:37:17 +0100 Content-Disposition: inline In-Reply-To: <9FFD648774C2FE4CBFB1FC2607336026085E92@BGSMSX102.gar.corp.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: "Ramakutty, SandeepX" Cc: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Mon, Sep 23, 2013 at 11:32:40AM +0000, Ramakutty, SandeepX wrote: > Hi Chris, > > This patch is necessary for applying pixel format changes without creating new frame buffer. No, it doesn't. As pixelformat is only specified with AddFB2, it appears there is something else required to allow changing format on an existing fb on the fly. > The pixel format will be changed at page flip. > Background - The present kernel code does not support applying pixel format to the current frame buffer. Hence hardware composer needs to create a new frame buffer each time it needs to change the frame buffer. If the application/game tries to change the pixel format very frequently, this affects performance. > Motivation - This change enables the hardware composer to apply the new pixel format without creating a new framebuffer. This improves the performance at a time when the application frequently changes the pixel format. That's obvious from the patch. I was hoping for more details on the use case to demonstrate the necessity of this approach, I still do not see a scenario that would require frequent changes in scanout pixelformat. Quantify, quantify, quantify. Then we know whether the approach meets your goal, and more importantly detect any future regressions. -Chris -- Chris Wilson, Intel Open Source Technology Centre