Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-05-06 Thread Daniel Vetter
On Tue, May 05, 2015 at 06:30:50PM -0300, Paulo Zanoni wrote: > 2015-04-07 10:44 GMT-03:00 Daniel Vetter : > > On Tue, Apr 07, 2015 at 11:12:09AM +0100, Chris Wilson wrote: > >> On Tue, Apr 07, 2015 at 11:07:07AM +0200, Daniel Vetter wrote: > >> > On Tue, Apr 07, 2015 at 09:36:37AM +0100, Chris Wil

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-05-05 Thread Paulo Zanoni
2015-04-07 10:44 GMT-03:00 Daniel Vetter : > On Tue, Apr 07, 2015 at 11:12:09AM +0100, Chris Wilson wrote: >> On Tue, Apr 07, 2015 at 11:07:07AM +0200, Daniel Vetter wrote: >> > On Tue, Apr 07, 2015 at 09:36:37AM +0100, Chris Wilson wrote: >> > > On Tue, Apr 07, 2015 at 10:10:25AM +0200, Daniel Vet

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-07 Thread Daniel Vetter
On Tue, Apr 07, 2015 at 11:12:09AM +0100, Chris Wilson wrote: > On Tue, Apr 07, 2015 at 11:07:07AM +0200, Daniel Vetter wrote: > > On Tue, Apr 07, 2015 at 09:36:37AM +0100, Chris Wilson wrote: > > > On Tue, Apr 07, 2015 at 10:10:25AM +0200, Daniel Vetter wrote: > > > > On Thu, Apr 02, 2015 at 12:15

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-07 Thread Chris Wilson
On Tue, Apr 07, 2015 at 11:07:07AM +0200, Daniel Vetter wrote: > On Tue, Apr 07, 2015 at 09:36:37AM +0100, Chris Wilson wrote: > > On Tue, Apr 07, 2015 at 10:10:25AM +0200, Daniel Vetter wrote: > > > On Thu, Apr 02, 2015 at 12:15:13AM +0100, Chris Wilson wrote: > > > > On Wed, Apr 01, 2015 at 07:40

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-07 Thread Daniel Vetter
On Tue, Apr 07, 2015 at 09:36:37AM +0100, Chris Wilson wrote: > On Tue, Apr 07, 2015 at 10:10:25AM +0200, Daniel Vetter wrote: > > On Thu, Apr 02, 2015 at 12:15:13AM +0100, Chris Wilson wrote: > > > On Wed, Apr 01, 2015 at 07:40:59PM -0300, Paulo Zanoni wrote: > > > > +static void draw_rect_mmap_wc

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-07 Thread Chris Wilson
On Tue, Apr 07, 2015 at 10:10:25AM +0200, Daniel Vetter wrote: > On Thu, Apr 02, 2015 at 12:15:13AM +0100, Chris Wilson wrote: > > On Wed, Apr 01, 2015 at 07:40:59PM -0300, Paulo Zanoni wrote: > > > +static void draw_rect_mmap_wc(int fd, struct buf_data *buf, struct rect > > > *rect, > > > +

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-07 Thread Daniel Vetter
On Thu, Apr 02, 2015 at 12:15:13AM +0100, Chris Wilson wrote: > On Wed, Apr 01, 2015 at 07:40:59PM -0300, Paulo Zanoni wrote: > > +static void draw_rect_mmap_wc(int fd, struct buf_data *buf, struct rect > > *rect, > > + uint32_t color) > > +{ > > + uint32_t *ptr; > > +

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-01 Thread Chris Wilson
On Thu, Apr 02, 2015 at 12:15:13AM +0100, Chris Wilson wrote: > On Wed, Apr 01, 2015 at 07:40:59PM -0300, Paulo Zanoni wrote: > > +static void draw_rect_mmap_wc(int fd, struct buf_data *buf, struct rect > > *rect, > > + uint32_t color) > > +{ > > + uint32_t *ptr; > > +

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-01 Thread Chris Wilson
On Wed, Apr 01, 2015 at 07:40:59PM -0300, Paulo Zanoni wrote: > +static void draw_rect_mmap_wc(int fd, struct buf_data *buf, struct rect > *rect, > + uint32_t color) > +{ > + uint32_t *ptr; > + uint32_t tiling, swizzle; > + > + gem_get_tiling(fd, buf->handle,

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-01 Thread Chris Wilson
On Wed, Apr 01, 2015 at 07:33:15PM -0300, Paulo Zanoni wrote: > 2015-04-01 19:22 GMT-03:00 Chris Wilson : > > On Wed, Apr 01, 2015 at 07:08:18PM -0300, Paulo Zanoni wrote: > >> 2015-03-31 19:05 GMT-03:00 Chris Wilson : > >> > the BLT code is an opencoded > >> > intel_copy_bo > >> > >> No, we do BLT

[Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-01 Thread Paulo Zanoni
From: Paulo Zanoni For all those IGT tests that need an easy way to draw rectangles on buffers using different methods. Current planned users: FBC and PSR CRC tests. There is also a tests/kms_draw_crc program to check if the library is sane. v2: - Move the test from lib/tests to tests/ (Daniel)

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-01 Thread Paulo Zanoni
2015-04-01 19:22 GMT-03:00 Chris Wilson : > On Wed, Apr 01, 2015 at 07:08:18PM -0300, Paulo Zanoni wrote: >> 2015-03-31 19:05 GMT-03:00 Chris Wilson : >> > the BLT code is an opencoded >> > intel_copy_bo >> >> No, we do BLT fills, not copies. On the render side I used rendercopy >> just because I s

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-01 Thread Chris Wilson
On Wed, Apr 01, 2015 at 07:08:18PM -0300, Paulo Zanoni wrote: > 2015-03-31 19:05 GMT-03:00 Chris Wilson : > > the BLT code is an opencoded > > intel_copy_bo > > No, we do BLT fills, not copies. On the render side I used rendercopy > just because I still don't know how to do a "render fill". O

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-04-01 Thread Paulo Zanoni
2015-03-31 19:05 GMT-03:00 Chris Wilson : > On Tue, Mar 31, 2015 at 06:52:08PM -0300, Paulo Zanoni wrote: >> From: Paulo Zanoni >> >> For all those IGT tests that need an easy way to draw rectangles on >> buffers using different methods. Current planned users: FBC and PSR >> CRC tests. >> >> There

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-03-31 Thread Chris Wilson
On Tue, Mar 31, 2015 at 06:52:08PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > For all those IGT tests that need an easy way to draw rectangles on > buffers using different methods. Current planned users: FBC and PSR > CRC tests. > > There is also a tests/kms_draw_crc program to check if

[Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-03-31 Thread Paulo Zanoni
From: Paulo Zanoni For all those IGT tests that need an easy way to draw rectangles on buffers using different methods. Current planned users: FBC and PSR CRC tests. There is also a tests/kms_draw_crc program to check if the library is sane. v2: - Move the test from lib/tests to tests/ (Daniel)

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-03-31 Thread Paulo Zanoni
2015-03-31 10:07 GMT-03:00 Daniel Vetter : > On Mon, Mar 30, 2015 at 04:45:49PM -0300, Paulo Zanoni wrote: >> 2015-03-26 7:19 GMT-03:00 Daniel Vetter : >> > On Wed, Mar 25, 2015 at 06:50:39PM -0300, Paulo Zanoni wrote: >> >> From: Paulo Zanoni >> >> >> >> For all those IGT tests that need an easy

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-03-31 Thread Daniel Vetter
On Mon, Mar 30, 2015 at 04:45:49PM -0300, Paulo Zanoni wrote: > 2015-03-26 7:19 GMT-03:00 Daniel Vetter : > > On Wed, Mar 25, 2015 at 06:50:39PM -0300, Paulo Zanoni wrote: > >> From: Paulo Zanoni > >> > >> For all those IGT tests that need an easy way to draw rectangles on > >> buffers using diffe

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-03-30 Thread Paulo Zanoni
2015-03-26 7:19 GMT-03:00 Daniel Vetter : > On Wed, Mar 25, 2015 at 06:50:39PM -0300, Paulo Zanoni wrote: >> From: Paulo Zanoni >> >> For all those IGT tests that need an easy way to draw rectangles on >> buffers using different methods. Current planned users: FBC and PSR >> CRC tests. >> >> There

Re: [Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-03-26 Thread Daniel Vetter
On Wed, Mar 25, 2015 at 06:50:39PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > For all those IGT tests that need an easy way to draw rectangles on > buffers using different methods. Current planned users: FBC and PSR > CRC tests. > > There is also a lib/tests/igt_draw program to check if

[Intel-gfx] [PATCH 7/7] lib: add igt_draw

2015-03-25 Thread Paulo Zanoni
From: Paulo Zanoni For all those IGT tests that need an easy way to draw rectangles on buffers using different methods. Current planned users: FBC and PSR CRC tests. There is also a lib/tests/igt_draw program to check if the library is sane. Signed-off-by: Paulo Zanoni --- lib/Makefile.source