[PATCH i-g-t 2/3] lib/intel_compute: Align objects on 64K for xehpc
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Tue Feb 4 06:55:47 UTC 2025
On Mon, Feb 03, 2025 at 02:38:47PM +0100, Francois Dugast wrote:
> Some of the buffers are aligned on 4K. Ensure 64K alignment
> in preparation for a switch to using xe_bo_create() during
> buffers creation.
>
> Signed-off-by: Francois Dugast <francois.dugast at intel.com>
> ---
> lib/intel_compute.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/intel_compute.c b/lib/intel_compute.c
> index 983b2e2c3..0e1179b62 100644
> --- a/lib/intel_compute.c
> +++ b/lib/intel_compute.c
> @@ -1125,7 +1125,7 @@ static void xehpc_compute_exec(int fd, const unsigned char *kernel,
> bo_execenv_create(fd, &execenv, eci);
>
> /* Sets Kernel size */
> - bo_dict[0].size = ALIGN(size, 0x1000);
> + bo_dict[0].size = ALIGN(size, 0x10000);
You may align to xe_get_default_alignment() I think. Same in 1/3
patch but I've noticed it now. With this nit:
Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
--
Zbigniew
>
> bo_execenv_bind(&execenv, bo_dict, XEHPC_BO_DICT_ENTRIES);
>
> --
> 2.43.0
>
More information about the igt-dev
mailing list