[PATCH i-g-t 16/37] lib/igt_fb: Require enginecopy for clear color

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Tue Aug 27 16:37:10 UTC 2024


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

On 3.7.2024 2.27, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> The blitter code can't currently do clear color (looks like there
> is some hardware support for it in the block copy comand, but
> not currently implemented). Require the use of enginecopy for
> clear color modifiers.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
>   lib/igt_fb.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index 6c9b4b7f3107..80e3c0a48bda 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -2496,6 +2496,9 @@ static bool block_copy_ok(const struct igt_fb *fb)
>   
>   static bool ccs_needs_enginecopy(const struct igt_fb *fb)
>   {
> +	if (is_gen12_rc_ccs_cc_modifier(fb->modifier))
> +		return true;
> +
>   	if (is_gen12_mc_ccs_modifier(fb->modifier))
>   		return true;
>   



More information about the igt-dev mailing list