Message ID | 20180704143842.5181-1-chris@chris-wilson.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 04/07/2018 15:38, Chris Wilson wrote: > Mark up gem_pwrite_pread's dependence on a functioning GPU, by calling > igt_require_gem in its setup fixture. > > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> > --- > tests/gem_pwrite_pread.c | 1 + > tests/gem_tiled_partial_pwrite_pread.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/tests/gem_pwrite_pread.c b/tests/gem_pwrite_pread.c > index 383a57f72..f91fc7c4f 100644 > --- a/tests/gem_pwrite_pread.c > +++ b/tests/gem_pwrite_pread.c > @@ -272,6 +272,7 @@ int main(int argc, char **argv) > uint32_t devid; > > fd = drm_open_driver(DRIVER_INTEL); > + igt_require_gem(fd); > > dst = gem_create(fd, object_size); > src = gem_create(fd, object_size); > diff --git a/tests/gem_tiled_partial_pwrite_pread.c b/tests/gem_tiled_partial_pwrite_pread.c > index fe573c37c..39779dbed 100644 > --- a/tests/gem_tiled_partial_pwrite_pread.c > +++ b/tests/gem_tiled_partial_pwrite_pread.c > @@ -259,6 +259,7 @@ igt_main > > igt_fixture { > fd = drm_open_driver(DRIVER_INTEL); > + igt_require_gem(fd); > > bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); > //drm_intel_bufmgr_gem_enable_reuse(bufmgr); > Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Regards, Tvrtko
diff --git a/tests/gem_pwrite_pread.c b/tests/gem_pwrite_pread.c index 383a57f72..f91fc7c4f 100644 --- a/tests/gem_pwrite_pread.c +++ b/tests/gem_pwrite_pread.c @@ -272,6 +272,7 @@ int main(int argc, char **argv) uint32_t devid; fd = drm_open_driver(DRIVER_INTEL); + igt_require_gem(fd); dst = gem_create(fd, object_size); src = gem_create(fd, object_size); diff --git a/tests/gem_tiled_partial_pwrite_pread.c b/tests/gem_tiled_partial_pwrite_pread.c index fe573c37c..39779dbed 100644 --- a/tests/gem_tiled_partial_pwrite_pread.c +++ b/tests/gem_tiled_partial_pwrite_pread.c @@ -259,6 +259,7 @@ igt_main igt_fixture { fd = drm_open_driver(DRIVER_INTEL); + igt_require_gem(fd); bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); //drm_intel_bufmgr_gem_enable_reuse(bufmgr);
Mark up gem_pwrite_pread's dependence on a functioning GPU, by calling igt_require_gem in its setup fixture. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> --- tests/gem_pwrite_pread.c | 1 + tests/gem_tiled_partial_pwrite_pread.c | 1 + 2 files changed, 2 insertions(+)