diff mbox

[i-g-t] igt/gem_render_copy_redux: Check for GEM before use

Message ID 20180712153849.12517-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Wilson July 12, 2018, 3:38 p.m. UTC
As render copy wants to use the GPU, we should make sure it is not
wedged first.

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

Comments

Ville Syrjälä July 12, 2018, 7 p.m. UTC | #1
On Thu, Jul 12, 2018 at 04:38:49PM +0100, Chris Wilson wrote:
> As render copy wants to use the GPU, we should make sure it is not
> wedged first.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
>  tests/gem_render_copy_redux.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/gem_render_copy_redux.c b/tests/gem_render_copy_redux.c
> index 27098ea6d..a861862d0 100644
> --- a/tests/gem_render_copy_redux.c
> +++ b/tests/gem_render_copy_redux.c
> @@ -209,6 +209,7 @@ int main(int argc, char **argv)
>  
>  	igt_fixture {
>  		data_init(&data);
> +		igt_require_gem(data.fd);
>  	}
>  
>  	igt_subtest("normal") {
> -- 
> 2.18.0
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
diff mbox

Patch

diff --git a/tests/gem_render_copy_redux.c b/tests/gem_render_copy_redux.c
index 27098ea6d..a861862d0 100644
--- a/tests/gem_render_copy_redux.c
+++ b/tests/gem_render_copy_redux.c
@@ -209,6 +209,7 @@  int main(int argc, char **argv)
 
 	igt_fixture {
 		data_init(&data);
+		igt_require_gem(data.fd);
 	}
 
 	igt_subtest("normal") {