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

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Jan 18 11:42:51 UTC 2024


Hi Min,

On 2024-01-17 at 19:55:14 +0100, Kamil Konieczny wrote:
> Hi Min,
> On 2024-01-17 at 16:42:51 +0800, Min Zhou wrote:
> > 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>
> 
> Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> 

Thank you for a patch, I merged it with added "opencl/" :

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

Regards,
Kamil

PS. If you consider to contribute more please subscribe to igt-dev
mailing list at
https://lists.freedesktop.org/mailman/listinfo/igt-dev


> > ---
> >  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