[igt-dev] [PATCH i-g-t v7 2/9] lib/i915_blt: Add T_YFMAJOR tiling type

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Fri Jan 20 11:05:35 UTC 2023


On Fri, Jan 20, 2023 at 11:14:02AM +0100, Karolina Stolarek wrote:
> Introduce a tiling type used by older generation in fast copy command.
> Update functions that use blt_tiling_type to handle this type.

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew

> 
> Signed-off-by: Karolina Stolarek <karolina.stolarek at intel.com>
> ---
>  lib/i915/i915_blt.c | 10 ++++++++++
>  lib/i915/i915_blt.h |  1 +
>  2 files changed, 11 insertions(+)
> 
> diff --git a/lib/i915/i915_blt.c b/lib/i915/i915_blt.c
> index 694c818c..a1abc2eb 100644
> --- a/lib/i915/i915_blt.c
> +++ b/lib/i915/i915_blt.c
> @@ -253,6 +253,9 @@ const char *blt_tiling_name(enum blt_tiling_type tiling)
>  	case T_YMAJOR: return "ymajor";
>  	case T_TILE4:  return "tile4";
>  	case T_TILE64: return "tile64";
> +	case T_YFMAJOR: return "yfmajor";
> +	default:
> +		break;
>  	}
>  
>  	igt_warn("invalid tiling passed: %d\n", tiling);
> @@ -267,6 +270,8 @@ static int __block_tiling(enum blt_tiling_type tiling)
>  	case T_YMAJOR: return 1;
>  	case T_TILE4:  return 2;
>  	case T_TILE64: return 3;
> +	default:
> +		break;
>  	}
>  
>  	igt_warn("invalid tiling passed: %d\n", tiling);
> @@ -898,8 +903,13 @@ static int __fast_tiling(enum blt_tiling_type tiling)
>  	case T_XMAJOR: return 1;
>  	case T_YMAJOR: return 2;
>  	case T_TILE4:  return 2;
> +	case T_YFMAJOR: return 2;
>  	case T_TILE64: return 3;
> +	default:
> +		break;
>  	}
> +
> +	igt_warn("invalid tiling passed: %d\n", tiling);
>  	return 0;
>  }
>  
> diff --git a/lib/i915/i915_blt.h b/lib/i915/i915_blt.h
> index 747eb093..bc375aba 100644
> --- a/lib/i915/i915_blt.h
> +++ b/lib/i915/i915_blt.h
> @@ -65,6 +65,7 @@ enum blt_tiling_type {
>  	T_YMAJOR,
>  	T_TILE4,
>  	T_TILE64,
> +	T_YFMAJOR,
>  };
>  
>  enum blt_compression {
> -- 
> 2.25.1
> 


More information about the igt-dev mailing list