From: Chris Wilson Subject: Re: [PATCH 4/4] tests/gem_gtt_hog: Fix for BDW Date: Thu, 6 Feb 2014 17:26:44 +0000 Message-ID: <20140206172644.GF5360@nuc-i3427.alporthouse.com> References: <1391705667-13122-1-git-send-email-rodrigo.vivi@gmail.com> <1391705667-13122-4-git-send-email-rodrigo.vivi@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (mail.fireflyinternet.com [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id 4A7B9FB5A9 for ; Thu, 6 Feb 2014 09:26:50 -0800 (PST) Content-Disposition: inline In-Reply-To: <1391705667-13122-4-git-send-email-rodrigo.vivi@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Rodrigo Vivi Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Feb 06, 2014 at 02:54:27PM -0200, Rodrigo Vivi wrote: > Update XY_COLOR_BLT command for Broadwell. > > Signed-off-by: Rodrigo Vivi > --- > tests/gem_gtt_hog.c | 19 +++++++++++++++---- > 1 file changed, 15 insertions(+), 4 deletions(-) > > diff --git a/tests/gem_gtt_hog.c b/tests/gem_gtt_hog.c > index 53cd7eb..d97658e 100644 > --- a/tests/gem_gtt_hog.c > +++ b/tests/gem_gtt_hog.c > @@ -57,17 +57,26 @@ static void busy(int fd, uint32_t handle, int size, int loops) > struct drm_i915_gem_execbuffer2 execbuf; > struct drm_i915_gem_pwrite gem_pwrite; > struct drm_i915_gem_create create; > - uint32_t buf[122], *b; > + uint32_t buf[122], buf_bdw[170], *b; Just allocate the one buffer large enough to take both and tweak the length use to pwrite/exec. -Chris -- Chris Wilson, Intel Open Source Technology Centre