diff --git a/src/intel/compiler/brw_kernel.c b/src/intel/compiler/brw_kernel.c index fe4349877bd..5f2e6f37d31 100644 --- a/src/intel/compiler/brw_kernel.c +++ b/src/intel/compiler/brw_kernel.c @@ -454,7 +454,7 @@ brw_kernel_from_spirv(struct brw_compiler *compiler, .nir = nir, .key = &key, .prog_data = &kernel->prog_data, - .stats = &kernel->stats, + .stats = kernel->stats, .log_data = log_data, }; diff --git a/src/intel/compiler/brw_kernel.h b/src/intel/compiler/brw_kernel.h index 837dc57b4cd..b71b54b8666 100644 --- a/src/intel/compiler/brw_kernel.h +++ b/src/intel/compiler/brw_kernel.h @@ -49,7 +49,7 @@ struct brw_kernel_arg_desc { struct brw_kernel { struct brw_cs_prog_data prog_data; - struct brw_compile_stats stats; + struct brw_compile_stats stats[3]; uint16_t args_size; uint16_t arg_count;