[PATCH i-g-t] gen_opencl_kernel: Fix code generation

Min Zhou zhoumin at loongson.cn
Wed Jan 17 08:42:51 UTC 2024


Since commit 1e0900fdb939 ("lib/intel_compute: Migrate xe_compute
library to intel_compute") had changed the `struct xe_compute_kernels`
to `struct intel_compute_kernels`, we should update it in the
./opencl/gen_opencl_kernel script.

Signed-off-by: Min Zhou <zhoumin at loongson.cn>
---
 opencl/gen_opencl_kernel | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opencl/gen_opencl_kernel b/opencl/gen_opencl_kernel
index e6f9601e0..15c6313d9 100755
--- a/opencl/gen_opencl_kernel
+++ b/opencl/gen_opencl_kernel
@@ -84,7 +84,7 @@ INCLUDES
 
 cat $out_files >>$output_fname
 
-echo "const struct xe_compute_kernels ${kernel_name}_kernels[] = {" >>$output_fname
+echo "const struct intel_compute_kernels ${kernel_name}_kernels[] = {" >>$output_fname
 
 for i in "${args[@]}"; do
         out="$dest_dir/${i}_${kernel_name}.h"
-- 
2.39.3



More information about the igt-dev mailing list