igt/kms_frontbuffer_tracking: Show FBC status at the start of the wait

Submitted by Chris Wilson on Jan. 16, 2018, 3:10 p.m.

Details

Message ID 20180116151023.10890-1-chris@chris-wilson.co.uk
State New
Series "igt/kms_frontbuffer_tracking: Show FBC status at the start of the wait"
Headers show

Commit Message

Chris Wilson Jan. 16, 2018, 3:10 p.m.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/kms_frontbuffer_tracking.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 1601cab45..8b440dadc 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -927,6 +927,10 @@  static bool fbc_stride_not_supported(void)
 
 static bool fbc_wait_until_enabled(void)
 {
+	if (fbc_is_enabled())
+		return true;
+
+	fbc_print_status();
 	return igt_wait(fbc_is_enabled(), 2000, 1);
 }
 

Comments

Daniel Vetter Jan. 17, 2018, 10:34 a.m.
On Tue, Jan 16, 2018 at 03:10:23PM +0000, Chris Wilson wrote:
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

Makes sense for debugging. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>

> ---
>  tests/kms_frontbuffer_tracking.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
> index 1601cab45..8b440dadc 100644
> --- a/tests/kms_frontbuffer_tracking.c
> +++ b/tests/kms_frontbuffer_tracking.c
> @@ -927,6 +927,10 @@ static bool fbc_stride_not_supported(void)
>  
>  static bool fbc_wait_until_enabled(void)
>  {
> +	if (fbc_is_enabled())
> +		return true;
> +
> +	fbc_print_status();
>  	return igt_wait(fbc_is_enabled(), 2000, 1);
>  }
>  
> -- 
> 2.15.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx