mesa/src/amd
You, Min-Hsuan 22ff26a0be amd/vpelib: fix coverity defects
\[WHY\]
The reason for making these changes is to address the defects identified
by the Coverity scan. By fixing these defects, we can ensure that any
future defects generated by our own code changes can be easily
identified and resolved.

\[HOW\]
To implement the changes/fixes, the following steps were taken:

1. CHECKED_RETURN: All cases were aligned to check the return value.
2. DC.WEAK_CRYPTO: The use of rand() to generate random numbers was
replaced with a more secure method using platofrm API.
3. DEADCODE: Useless code that always returned true was removed.
4. DIVIDE_BY_ZERO: A check was added to ensure that the divisor is not
zero before performing division.
5. HFA: An unused header was removed.
6. MISSING_BREAK: A break statement was added in switch cases where it
was missing.
7. PASS_BY_VALUE: Parameters that were being passed by value and were
too big were changed to pass by reference.

\[TESTING\]
What testings have been done (test IDs and json file):

Reviewed-by: Tomson Chang <Tomson.Chang@amd.com>
Signed-off-by: Min-Hsuan You <Min-Hsuan.You@amd.com>
Acked-by: Chenyu Chen <Chen-Yu.Chen@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32646>
2024-12-16 08:13:40 +00:00
..
addrlib amd: add GFX v11.5.3 support 2024-12-11 19:14:34 +00:00
ci radv/ci: Convert Valve RADV jobs to deqp-runner suites 2024-12-13 09:36:08 +00:00
common ac/lower_ngg: improve streamout code generation for gfx12/ACO to match LLVM 2024-12-16 07:35:07 +00:00
compiler aco: enable gfx12 support for radeonsi 2024-12-16 07:35:07 +00:00
drm-shim amd/drm-shim: add GFX1150 support 2024-08-13 13:17:17 +00:00
llvm nir,aco,ac/llvm: add nir_op_alignbyte_amd 2024-11-13 12:59:26 +00:00
registers amd: Rename GFX1103_R1/R2 to PHOENIX/2 2024-11-20 02:14:40 +00:00
vpelib amd/vpelib: fix coverity defects 2024-12-16 08:13:40 +00:00
vulkan radv: mark HAWAII (GFX7) as Vulkan 1.3 conformant 2024-12-13 13:32:38 +00:00
meson.build build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00