summaryrefslogtreecommitdiff
path: root/tests/prime_nv_pcopy.c
AgeCommit message (Collapse)AuthorFilesLines
2024-03-22tests: Remove 'Run type' documentation fieldKatarzyna Piecielska1-1/+0
It has been easier to maintain the Run type field by reading it from testlists instead of from C file, as this changes dynamically, and different devices may have either have it inside, for instance, BAT test list or not. So, drop the field from the C file. Signed-off-by: Katarzyna Piecielska <katarzyna.piecielska@intel.com> Cc: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Acked-by: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
2024-03-22tests: Introduce intel-nouveau subcategoryKatarzyna Piecielska1-0/+18
There are some intel-nouveau tests that deserve its own subcategory. Signed-off-by: Katarzyna Piecielska <katarzyna.piecielska@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Cc: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Reviewed-by: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
2022-12-19tests/prime_nv: Remove intel-libdrm callsZbigniew Kempczyński1-63/+44
Replace intel-libdrm calls with already existing IGT wrappers. We need this to completely remove intel_batchbuffer helpers. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2021-01-30meson: Turn on -WerrorAshutosh Dixit1-1/+1
We can choose which compile warnings to enable, but once they are enabled treat all warnings as error. This enforces stricter checks against compile warnings creeping in. v2: Fix redefinition warning errors from i915/gem_userptr_blits v3: Fix the even more pedantic clang compilation v4: Do not alter whitespace in lib/tests/igt_describe! Note: clang does not build assembler/ Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2018-01-11include inttypes.h for PRI definesMike Frysinger1-0/+1
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96620 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2015-08-21lib: add a single include headerThomas Wood1-5/+1
Add a header that includes all the headers for the library. This allows reorganisation of the library without affecting programs using it and also simplifies the headers that need to be included to use the library. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-03-06igt.cocci: Replace igt_assert() with igt_assert_CMP() where possibleMatt Roper1-4/+4
The integer comparison macros give us better error output by including the actual values that failed the comparison. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2014-08-30batch: Specify number of relocations to accommodateChris Wilson1-1/+1
Since relocations are variable size, depending upon generation, it is easier to handle the resizing of the batch request inside the BEGIN_BATCH macro. This still leaves us with having to resize commands in a few places - which still need adaption for gen8+. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-05-14tests/prime_nv_pcopy: Remove unused tiling testsDaniel Vetter1-253/+0
We now know that the hardware can't do this, and it's not designed to. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-14tests/prime_nv_pcopy: Drop return values from testsDaniel Vetter1-85/+36
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-14tests/prime_nv_pcopy: Drop return values from copy/check functionsDaniel Vetter1-101/+71
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-14tests/prime_nv_pcopy: Use asserts in setup codeDaniel Vetter1-68/+25
Now we even have more fine-grained checking and only skip if the nouveau card isn't supported, but fail properly if something else goes wrong. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-14tests/prime_nv_pcopy: Use asserts in nv_bo_allocDaniel Vetter1-60/+22
Step one to untangle the control flow in this test and replace it all with igt assert magic. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-14tests: sprinkle igt loggingDaniel Vetter1-13/+12
All the cases that simply dump some debug information and couldn't be converted to some of the fancier macros. Some information output removed when it's redundant with the subtest status. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: rename intel_gpu_tools.h to intel_io.hDaniel Vetter1-1/+1
With the header cleanup we can now give this header a suitable name, since it now really only contains register access and other I/O functions and assorted definitions. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: unnecessary header removal for drmtest.h, part 1Daniel Vetter1-1/+2
Brought a few missing headers to light in ioctl_wrappers.h, too. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-01-15tests/primve_nv_pcopy: Comment out unused check_swizzle functionDaniel Vetter1-1/+1
I've botched this in my patch to disable the swizzled pcopy test. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-01-14tests/prime_nv_pcopy: disable swizzle testsDaniel Vetter1-1/+3
It's pure luck that nv can detile some of the intel layouts since one of the video MC formats matches it. Since we can't possible fix this comment the test out. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73538 Acked-by: Maarten Lankhorst <bugs@mblankhorst.nl> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-01lib: add igt_main macroDaniel Vetter1-5/+1
In the past new testcases with subtest often forgot to add the call to igt_exit at the end of their main() function. That is now caught with a bit more obnoxious asserts, but it's still a nuissance. This little igt_main macro takes care of that (and also of calling the subtest machinery initialization code correctly). If no one objects I'll roll this out for all the simple cases (i.e. those tests that don't have additional argv parsing on top of the subtest machinery). v2: Roll it out across the board. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-14tests: roll out igt_fixtureDaniel Vetter1-34/+28
Also sprinkle igt_assert and igt_require over the setup code to clean up code while at it. To avoid gcc getting upset about unitialized variables just move them out of main as global data (where they always get initialized to 0) - gcc can't see through our igt_fixture and igt_subtest maze properly. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-14tests: use igt_exit() consistently with subtestsDaniel Vetter1-13/+4
This is mostly important to get the SKIP reporting right, but I've found a few stragglers that wanted to get converted over to the igt result reporting completely. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-13tests: s/assert/igt_assertDaniel Vetter1-10/+10
Just a wholesale rollout for now, we can refine later on. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-12s/drmtest_/igt_/Daniel Vetter1-4/+4
Requested-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-12s/drmtest_subtest_block/drmtest_subtest/Daniel Vetter1-1/+1
The _block postfix meant to convey that a C statement/block must follow can be misread as the verb to block. So drop it. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-12lib/drmtest: Add drmtest_subtest_block macroDaniel Vetter1-8/+9
Doesn't do more than an if (drmtest_run_test(name)) right now, but as soon as we get a bit of infrastructure to handle test failures and skipping, this will get more interesting. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-20tests/prime_nv_pcopy: guard output for subtest listingDaniel Vetter1-1/+3
2012-12-15tests/prime_nv_pcopy: convert to subtestsDaniel Vetter1-1/+6
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-10tests/prime_nv_pcopy.c: fail if nouveau_pushbuf_kick fails rather than spinningMaarten Lankhorst1-3/+4
2012-08-24tests/prime_nv_pcopy: kill debug code that's not upstreamMaarten Lankhorst1-16/+2
2012-08-24tests/prime_nv: don't enable buffer reuseDaniel Vetter1-1/+2
We share these suckers, hence the fd-local libdrn instance does not have full control over the lifecycle of the object. Prevents the tests from blowing up with [drm:i915_gem_mmap_gtt] *ERROR* Attempting to mmap a purgeable buffer and similar things. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-14Fixup previous commitMaarten Lankhorst1-1/+2
ENODEV not being defined and return code wrong
2012-08-14And add another corner case skipMaarten Lankhorst1-1/+5
2012-08-14fix crash with insufficient permissionsMaarten Lankhorst1-0/+2
2012-08-14satisfy danvet's OCMaarten Lankhorst1-0/+1335
and add skip codes, but mostly satisfy danvet's OCD