mesa/src
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
..
amd amd/vpelib: fix coverity defects 2024-12-16 08:13:40 +00:00
android_stub
asahi agx: optimize scratch access 2024-12-12 21:16:13 +00:00
broadcom broadcom: Add perfetto data source 2024-12-13 12:29:11 +00:00
c11 build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
compiler nir: do not generate b2i64 when driver want to lower it 2024-12-16 07:35:07 +00:00
drm-shim drm-shim: stub synobj_timeline_wait and query ioctl 2024-07-16 11:17:59 +02:00
egl meson: drop unused variables 2024-11-26 20:45:41 +00:00
etnaviv etnaviv/ml: Add support for tensor split and concatenation operations 2024-12-06 13:29:11 +00:00
freedreno ir3/validate: print file/line info 2024-12-14 06:05:26 +00:00
gallium radeonsi: add AMD_FORCE_SHADER_USE_ACO for debug 2024-12-16 07:35:06 +00:00
gbm Revert "gbm: mark surface buffers as explicit flushed" 2024-11-27 22:48:04 +00:00
getopt build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
gfxstream gfxstream: fix issues with VK1.4 build 2024-12-03 20:35:44 +00:00
glx glx: ignore zink check for has_explicit_modifiers and DRI3 on MacOS. 2024-12-13 00:39:16 +00:00
gtest build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
imagination vulkan: rename depth bias graphics states 2024-12-06 13:48:26 -05:00
imgui
intel intel/brw: Add SHADER_OPCODE_READ_FROM_CHANNEL and LIVE_CHANNEL 2024-12-14 11:38:14 -08:00
loader loader: Fix typo in __DRI_IMAGE_FORMAT_XBGR16161616 definition 2024-10-25 14:18:24 +00:00
mapi meson: remove selinux option 2024-10-21 01:14:35 +00:00
mesa mesa: when blitting between formats clear any unused components 2024-12-05 18:27:37 +00:00
microsoft microsoft/clc: Initialize printf buffer for tests 2024-12-10 19:13:07 +00:00
nouveau nvk/ci: update the ga106 expectations 2024-12-11 04:24:35 +00:00
panfrost panvk/ci: add a few more g52 skips 2024-12-13 08:35:04 +00:00
tool perfetto: Add v3d data sources to gpu.cfg 2024-12-13 12:29:11 +00:00
util util/blake3: add _mesa_blake3_from_printed_string 2024-12-16 07:35:06 +00:00
virtio treewide: Stop putting enum in front of Vulkan enum types 2024-12-02 17:22:49 +00:00
vulkan vulkan: Fix the argument order of update_as 2024-12-12 11:15:08 +00:00
x11 meson: require dri3 modifiers 2024-09-06 17:34:17 +00:00
.clang-format nir: add helpers for precompiled shaders 2024-11-28 17:34:12 +00:00
meson.build meson: simplify logic a bit 2024-11-26 20:45:41 +00:00