[Intel-gfx] [RFC] tests/gem_bo_falloc: New igt for testing gem_fallocate() ioctl

2014-04-28 Thread arun . siluvery
From: "Siluvery, Arun" This ioctl allows vary the effective size of the gem object. User can mark certain range in object space as scratch thus effectively modifying the size used. v2: modify subtest names and function names as per tooling convention. Signed-off-by: Siluvery, Arun --- tests/M

Re: [Intel-gfx] [RFC] tests/gem_bo_falloc: New igt for testing gem_fallocate() ioctl

2014-04-25 Thread Daniel Vetter
On Fri, Apr 25, 2014 at 04:10:10PM +0200, Daniel Vetter wrote: > On Fri, Apr 25, 2014 at 01:50:32PM +0100, arun.siluv...@linux.intel.com wrote: > > +int main(int argc, char **argv) > > +{ > > + igt_subtest_init(argc, argv); > > + > > + igt_fixture > > + fd = drm_open_any(); > > + > >

Re: [Intel-gfx] [RFC] tests/gem_bo_falloc: New igt for testing gem_fallocate() ioctl

2014-04-25 Thread Daniel Vetter
On Fri, Apr 25, 2014 at 01:50:32PM +0100, arun.siluv...@linux.intel.com wrote: > +int main(int argc, char **argv) > +{ > + igt_subtest_init(argc, argv); > + > + igt_fixture > + fd = drm_open_any(); > + > + igt_subtest("gem_falloc arguments validation") > + test_g

[Intel-gfx] [RFC] tests/gem_bo_falloc: New igt for testing gem_fallocate() ioctl

2014-04-25 Thread arun . siluvery
From: "Siluvery, Arun" This ioctl allows vary the effective size of the gem object. User can mark certain range in object space as scratch thus effectively modifying the size used. Signed-off-by: Siluvery, Arun --- tests/Makefile.sources | 1 + tests/gem_bo_falloc.c | 469 ++