s/Intel: fix/anv: fix: potentially overflowing expression in genX
authorIllia Polishchuk <illia.a.polishchuk@globallogic.com>
Mon, 8 May 2023 00:56:53 +0000 (03:56 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Jul 2023 08:55:56 +0000 (08:55 +0000)
commitc2724b4d374d3ddbb47d6853d610cddbea370e80
treea84d660797aa4781532b47915b0882606d1aa742
parent1cbf10ca88a0589c66b26a191b7f6213a4889536
s/Intel: fix/anv: fix: potentially overflowing expression in genX

CID 1528164 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
overflow_before_widen: Potentially overflowing expression
pool->n_passes * pool->khr_perf_preamble_stride with type
unsigned int (32 bits, unsigned) is evaluated using 32-bit arithmetic,
and then used in a context that expects an expression of type uint64_t (64 bits, unsigned).

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Illia Polishchuk <illia.a.polishchuk@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20893>
src/intel/vulkan/genX_query.c