[igt-dev] [i-g-t V2 1/4] tests/intel/kms_fbt: Use blitter as a default draw method

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Wed Nov 15 13:31:01 UTC 2023


Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>

On 15.11.2023 15.02, Bhanuprakash Modem wrote:
> As Rendercopy support in IGT is not present for few latest
> platforms, use Blitter as default draw method.
> 
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
> Cc: Jouni Högander <jouni.hogander at intel.com>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
>   tests/intel/kms_frontbuffer_tracking.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
> index 60a469901..eac33f48b 100644
> --- a/tests/intel/kms_frontbuffer_tracking.c
> +++ b/tests/intel/kms_frontbuffer_tracking.c
> @@ -1236,12 +1236,12 @@ static void init_crcs(enum pixel_format format, enum tiling_type tiling,
>   			for (r_ = 0; r_ <= r; r_++)
>   				draw_rect_igt_fb(pattern, &tmp_fbs[r],
>   						 igt_draw_supports_method(drm.fd, IGT_DRAW_PWRITE) ?
> -						 IGT_DRAW_PWRITE : IGT_DRAW_RENDER,
> +						 IGT_DRAW_PWRITE : IGT_DRAW_BLT,
>   						 r_);
>   	} else {
>   		for (r = 0; r < pattern->n_rects; r++)
>   			draw_rect_igt_fb(pattern, &tmp_fbs[r], igt_draw_supports_method(drm.fd, IGT_DRAW_PWRITE) ?
> -					 IGT_DRAW_PWRITE : IGT_DRAW_RENDER, r);
> +					 IGT_DRAW_PWRITE : IGT_DRAW_BLT, r);
>   	}
>   
>   	igt_output_set_pipe(prim_mode_params.output, prim_mode_params.pipe);



More information about the igt-dev mailing list