[PATCH i-g-t 2/3] lib/intel_compute: Align objects on 64K for xehpc

Francois Dugast francois.dugast at intel.com
Mon Feb 3 13:38:47 UTC 2025


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);
 
 	bo_execenv_bind(&execenv, bo_dict, XEHPC_BO_DICT_ENTRIES);
 
-- 
2.43.0



More information about the igt-dev mailing list