[PATCH i-g-t 05/12] lib/intel_bufops: Add Yf tiling

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Mon Jun 17 11:16:27 UTC 2024


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

On 27.5.2024 10.33, Zbigniew Kempczyński wrote:
> Start supporting Yf tiling in xe as detection reveals it is Yf, not
> Tile4.
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
> ---
>   lib/intel_bufops.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/intel_bufops.c b/lib/intel_bufops.c
> index 56e37d2da7..36b9aa2a8c 100644
> --- a/lib/intel_bufops.c
> +++ b/lib/intel_bufops.c
> @@ -1697,8 +1697,6 @@ static struct buf_ops *__buf_ops_create(int fd, bool check_idempotencopy_linear_to_ycy)
>   		bops->y_to_linear = copy_y_to_linear;
>   		bops->linear_to_tile4 = copy_linear_to_tile4;
>   		bops->tile4_to_linear = copy_tile4_to_linear;
> -		bops->linear_to_yf = NULL;
> -		bops->yf_to_linear = NULL;
>   		bops->linear_to_ys = NULL;
>   		bops->ys_to_linear = NULL;
>   
> @@ -1954,6 +1952,10 @@ bool buf_ops_set_software_tiling(struct buf_ops *bops,
>   		igt_debug("-> use SW on tiling 4\n");
>   		break;
>   
> +	case I915_TILING_Yf:
> +		igt_debug("-> use SW on tiling Yf\n");
> +		break;
> +
>   	default:
>   		igt_warn("Invalid tiling: %d\n", tiling);
>   		was_changed = false;



More information about the igt-dev mailing list