On Thu, Feb 06, 2014 at 04:19:08PM -0200, Rodrigo Vivi wrote: > Update XY_COLOR_BLT command for Broadwell. > > v2: stash devid and remove ugly double allocation. (by Chris). > > Cc: Chris Wilson chris@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx> > --- > tests/gem_gtt_hog.c | 24 +++++++++++++++++------- > 1 file changed, 17 insertions(+), 7 deletions(-) > > diff --git a/tests/gem_gtt_hog.c b/tests/gem_gtt_hog.c > index 53cd7eb..4198a94 100644 > --- a/tests/gem_gtt_hog.c > +++ b/tests/gem_gtt_hog.c > @@ -57,17 +57,25 @@ 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; > - int i; > + uint32_t buf[170], *b; > + int i, b_size; > + int devid = intel_get_drm_devid(fd); This function is called many times. But the value is static. -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx