Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] igt/gem_ctx_isolation: Fix checking for context support
@ 2018-02-22  8:27 Chris Wilson
  2018-02-22 15:10 ` Mika Kuoppala
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Wilson @ 2018-02-22  8:27 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

Missed the new method for igt_require(gem_has_contexts()) in the rebase.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/gem_ctx_isolation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/gem_ctx_isolation.c b/tests/gem_ctx_isolation.c
index cb822c5b..d8109aa0 100644
--- a/tests/gem_ctx_isolation.c
+++ b/tests/gem_ctx_isolation.c
@@ -630,8 +630,8 @@ igt_main
 
 		fd = drm_open_driver(DRIVER_INTEL);
 		igt_require_gem(fd);
+		igt_require(gem_has_contexts(fd));
 
-		gem_context_destroy(fd, gem_context_create(fd));
 		has_context_isolation = __has_context_isolation(fd);
 		igt_require(has_context_isolation);
 
-- 
2.16.1

_______________________________________________
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: [PATCH igt] igt/gem_ctx_isolation: Fix checking for context support
  2018-02-22  8:27 [PATCH igt] igt/gem_ctx_isolation: Fix checking for context support Chris Wilson
@ 2018-02-22 15:10 ` Mika Kuoppala
  0 siblings, 0 replies; 2+ messages in thread
From: Mika Kuoppala @ 2018-02-22 15:10 UTC (permalink / raw)
  To: Chris Wilson, intel-gfx; +Cc: igt-dev

Chris Wilson <chris@chris-wilson.co.uk> writes:

> Missed the new method for igt_require(gem_has_contexts()) in the rebase.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>  tests/gem_ctx_isolation.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/gem_ctx_isolation.c b/tests/gem_ctx_isolation.c
> index cb822c5b..d8109aa0 100644
> --- a/tests/gem_ctx_isolation.c
> +++ b/tests/gem_ctx_isolation.c
> @@ -630,8 +630,8 @@ igt_main
>  
>  		fd = drm_open_driver(DRIVER_INTEL);
>  		igt_require_gem(fd);
> +		igt_require(gem_has_contexts(fd));
>  
> -		gem_context_destroy(fd, gem_context_create(fd));

Seems that this was the last user of this pattern atleast.

Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
_______________________________________________
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-02-22 15:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-22  8:27 [PATCH igt] igt/gem_ctx_isolation: Fix checking for context support Chris Wilson
2018-02-22 15:10 ` Mika Kuoppala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox