[igt-dev] [PATCH i-g-t 01/20] tests/psr: Print the reason for skipping when sink lacks PSR support

Katarzyna Dec katarzyna.dec at intel.com
Fri Apr 13 10:57:02 UTC 2018


On Tue, Apr 10, 2018 at 07:37:13PM -0700, Dhinakaran Pandiyan wrote:
> And rename the function to match what it does.
> 
> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
Reviewed-by: Katarzyna Dec <katarzyna.dec at intel.com>
> ---
>  tests/kms_psr_sink_crc.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
> index 98d29ba9..93807c03 100644
> --- a/tests/kms_psr_sink_crc.c
> +++ b/tests/kms_psr_sink_crc.c
> @@ -193,7 +193,7 @@ static void fill_render(data_t *data, uint32_t handle, unsigned char color)
>  	gem_bo_busy(data->drm_fd, handle);
>  }
>  
> -static bool psr_possible(data_t *data)
> +static bool sink_support(data_t *data)
>  {
>  	char buf[512];
>  
> @@ -513,8 +513,8 @@ int main(int argc, char *argv[])
>  
>  		igt_set_module_param_int("enable_psr", running_with_psr_disabled ?
>  					 0 : 1);
> -
> -		igt_skip_on(!psr_possible(&data));
> +		igt_require_f(sink_support(&data),
> +			      "Sink does not support PSR\n");
>  
>  		data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
>  		igt_assert(data.bufmgr);
> -- 
> 2.14.1
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev


More information about the igt-dev mailing list