intel/compiler: fix singleton pointer coverity warning

fix brw_kernel::stats member that was declared as a variable
but used as a pointer to array of 3 elements

CID: 1503279

Signed-off-by: Bozhenko Alexey <oleksii.bozhenko@globallogic.com>

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15975>
This commit is contained in:
Alexey Bozhenko 2022-04-15 18:38:03 +03:00
parent 4c6bec2c0c
commit 2d7d907ad1
2 changed files with 2 additions and 2 deletions

View File

@ -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,
};

View File

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