intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH i-g-t] igt/gem_unfence_active_buffers: Check GEM before use
@ 2018-07-12 15:40 Chris Wilson
  2018-07-12 19:01 ` Ville Syrjälä
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Wilson @ 2018-07-12 15:40 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

As we want to make the buffers active on the GPU before removing their
fence, an operational GPU (not wedged!) is required.

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

diff --git a/tests/gem_unfence_active_buffers.c b/tests/gem_unfence_active_buffers.c
index 6df23cc53..b78fbafa7 100644
--- a/tests/gem_unfence_active_buffers.c
+++ b/tests/gem_unfence_active_buffers.c
@@ -74,6 +74,7 @@ igt_simple_main
 		data[i] = i;
 
 	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: [PATCH i-g-t] igt/gem_unfence_active_buffers: Check GEM before use
  2018-07-12 15:40 [PATCH i-g-t] igt/gem_unfence_active_buffers: Check GEM before use Chris Wilson
@ 2018-07-12 19:01 ` Ville Syrjälä
  0 siblings, 0 replies; 2+ messages in thread
From: Ville Syrjälä @ 2018-07-12 19:01 UTC (permalink / raw)
  To: Chris Wilson; +Cc: igt-dev, intel-gfx

On Thu, Jul 12, 2018 at 04:40:03PM +0100, Chris Wilson wrote:
> As we want to make the buffers active on the GPU before removing their
> fence, an operational GPU (not wedged!) is required.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

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

> ---
>  tests/gem_unfence_active_buffers.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/gem_unfence_active_buffers.c b/tests/gem_unfence_active_buffers.c
> index 6df23cc53..b78fbafa7 100644
> --- a/tests/gem_unfence_active_buffers.c
> +++ b/tests/gem_unfence_active_buffers.c
> @@ -74,6 +74,7 @@ igt_simple_main
>  		data[i] = i;
>  
>  	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

-- 
Ville Syrjälä
Intel
_______________________________________________
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-12 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-12 15:40 [PATCH i-g-t] igt/gem_unfence_active_buffers: Check GEM before use Chris Wilson
2018-07-12 19:01 ` Ville Syrjälä

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).