[Intel-gfx] [PATCH] tests/gem_gtt_hog: Fix for BDW

2014-02-07 Thread Rodrigo Vivi
Update XY_COLOR_BLT command for Broadwell. v2: stash devid and remove ugly double allocation. (by Chris). v3: fix inverted blt command size and stash fd, devid and intel_gen. v4: improved len calculation and noop between blt commands. (by Chris). Cc: Chris Wilson ch...@chris-wilson.co.uk> Signed-

Re: [Intel-gfx] [PATCH] tests/gem_gtt_hog: Fix for BDW

2014-02-07 Thread Chris Wilson
On Fri, Feb 07, 2014 at 02:04:56PM -0200, Rodrigo Vivi wrote: > >> for (i = 0; i < 20; i++) { > >> - *b++ = XY_COLOR_BLT_CMD_NOLEN | 4 | > >> - COLOR_BLT_WRITE_ALPHA | XY_COLOR_BLT_WRITE_RGB; > >> + if (data->intel_gen >= 8) { > >> +

Re: [Intel-gfx] [PATCH] tests/gem_gtt_hog: Fix for BDW

2014-02-07 Thread Rodrigo Vivi
On Fri, Feb 7, 2014 at 7:51 AM, Chris Wilson wrote: > On Thu, Feb 06, 2014 at 07:46:38PM -0200, Rodrigo Vivi wrote: >> Update XY_COLOR_BLT command for Broadwell. >> >> v2: stash devid and remove ugly double allocation. (by Chris). >> v3: fix inverted blt command size and stash fd, devid and intel_

Re: [Intel-gfx] [PATCH] tests/gem_gtt_hog: Fix for BDW

2014-02-07 Thread Chris Wilson
On Thu, Feb 06, 2014 at 07:46:38PM -0200, Rodrigo Vivi wrote: > Update XY_COLOR_BLT command for Broadwell. > > v2: stash devid and remove ugly double allocation. (by Chris). > v3: fix inverted blt command size and stash fd, devid and intel_gen. > > Cc: Chris Wilson ch...@chris-wilson.co.uk> > Sig

[Intel-gfx] [PATCH] tests/gem_gtt_hog: Fix for BDW

2014-02-06 Thread Rodrigo Vivi
Update XY_COLOR_BLT command for Broadwell. v2: stash devid and remove ugly double allocation. (by Chris). v3: fix inverted blt command size and stash fd, devid and intel_gen. Cc: Chris Wilson ch...@chris-wilson.co.uk> Signed-off-by: Rodrigo Vivi --- tests/gem_gtt_hog.c | 59

Re: [Intel-gfx] [PATCH] tests/gem_gtt_hog: Fix for BDW

2014-02-06 Thread Chris Wilson
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 ch...@chris-wilson.co.uk> > Signed-off-by: Rodrigo Vivi > --- > tests/gem_gtt_hog.c | 24 +++

[Intel-gfx] [PATCH] tests/gem_gtt_hog: Fix for BDW

2014-02-06 Thread Rodrigo Vivi
Update XY_COLOR_BLT command for Broadwell. v2: stash devid and remove ugly double allocation. (by Chris). Cc: Chris Wilson ch...@chris-wilson.co.uk> Signed-off-by: Rodrigo Vivi --- tests/gem_gtt_hog.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/