* [PATCH i-g-t] igt/gem_pwrite_pread: Requires GEM
@ 2018-07-04 14:38 Chris Wilson
2018-07-06 13:40 ` [igt-dev] " Tvrtko Ursulin
0 siblings, 1 reply; 2+ messages in thread
From: Chris Wilson @ 2018-07-04 14:38 UTC (permalink / raw)
To: igt-dev; +Cc: intel-gfx
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);
--
2.18.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] igt/gem_pwrite_pread: Requires GEM
2018-07-04 14:38 [PATCH i-g-t] igt/gem_pwrite_pread: Requires GEM Chris Wilson
@ 2018-07-06 13:40 ` Tvrtko Ursulin
0 siblings, 0 replies; 2+ messages in thread
From: Tvrtko Ursulin @ 2018-07-06 13:40 UTC (permalink / raw)
To: Chris Wilson, igt-dev; +Cc: intel-gfx
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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-06 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-04 14:38 [PATCH i-g-t] igt/gem_pwrite_pread: Requires GEM Chris Wilson
2018-07-06 13:40 ` [igt-dev] " Tvrtko Ursulin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).