mesa/src
Icenowy Zheng 9870c8d8c4
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
pvr: follow other drivers' practice for copying build ID
Previously the output length of pvr_get_driver_build_sha() is changed to
BUILD_ID_EXPECTED_HASH_LENGTH, but the array defined to receive its
output, the driver_build_sha array inside struct pvr_instance, is
declared with BLAKE3_KEY_LEN, which is longer than
BUILD_ID_EXPECTED_HASH_LENGTH.

This leads to uninitialized memory being accessed when creating
pipelineCacheUUID value, and the pipelineCacheUUID value would become
random in each run, defecting the purpose of it.

Refactor the code copying the build ID to follow other drivers: changing
the parameter from the buffer to the instance pointer, inserting a
static assert thanks to being able to retrieve the destination buffer
length (as an array inside the instance structure) and using
copy_build_id_to_sha1() to do the final copy.

Fixes: 6a42493c94 ("pvr: Use BUILD_ID_EXPECTED_HASH_LENGTH")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Ella Stanforth <ella@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40673>
2026-04-20 09:23:31 +00:00
..
amd amd: use gfx_level instead of family_id to choose addrlib 2026-04-18 18:55:46 +00:00
android_stub android_stub: fix missing prototypes issues 2025-12-02 20:03:02 +00:00
asahi hk: Add HK_MAX_RTS to maxFragmentCombinedOutputResources 2026-04-13 19:02:08 +00:00
broadcom broadcom/compiler: MULTOP in branch delay slots doesn't generate RTOP hazard 2026-04-14 16:34:54 +00:00
c11
compiler nir/gather_info: clear interpolation qualifiers only in fragment stage 2026-04-19 10:10:15 +00:00
drm-shim drm-shim: fix shim on GLX 2026-04-14 12:06:10 +00:00
egl meson: Add support for buidling zink + Turnip/KGSL 2026-03-31 15:00:29 +00:00
etnaviv Uprev Piglit to 11ce9eb56edb00e6a7702d13168cc827ce5e0cbd 2026-04-10 21:21:52 +00:00
freedreno freedreno/decode: Fix error() in script.c 2026-04-17 09:16:34 +00:00
gallium d3d12: Use HEVC RefPicSet order from frontend 2026-04-20 08:24:22 +00:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: additional Goldfish logic for Android builds 2026-04-11 01:11:45 +00:00
glx meson: Add support for buidling zink + Turnip/KGSL 2026-03-31 15:00:29 +00:00
gtest
imagination pvr: follow other drivers' practice for copying build ID 2026-04-20 09:23:31 +00:00
imgui
intel intel/compiler: implement macl part of Wa_18035690555 2026-04-19 11:39:10 +00:00
kosmickrisp kk: Increase maxFragmentCombinedOutputResources to KK_MAX_DESCRIPTORS 2026-04-17 13:24:18 +00:00
loader kmsro: wire Zink up as a fallback 2026-03-13 18:54:26 +00:00
mesa mesa/st: do not advertise CL subgroup features on the GL side 2026-04-17 21:47:34 +00:00
microsoft nir,treewide: add nir_image_intrinsic_type 2026-03-31 09:10:27 +00:00
nouveau nak: the MS location comes last in TLD, same spot as depth compare in TEX 2026-04-15 17:00:07 +00:00
panfrost panvk: use perf-trilinear when doing anisotropic sampling 2026-04-17 12:52:17 +00:00
poly panvk/csf: implement VK_EXT_primitives_generated_query primitive restart 2026-01-21 09:03:34 +00:00
tool intel: Include available counter descriptions in the perfetto counter spec 2026-03-06 08:47:16 +00:00
util util: allow for overriding u_stub tail 2026-04-17 09:40:13 +00:00
virtio ci/venus: update expectation for an expected fail 2026-04-10 12:16:04 +00:00
vulkan vulkan/video: Reject interlaced picture layout for H.264 baseline profile 2026-04-17 14:16:13 +00:00
x11 meson: Add support for buidling zink + Turnip/KGSL 2026-03-31 15:00:29 +00:00
.clang-format intel: add Jay 2026-04-10 18:21:21 +00:00
meson.build gallium/dril: Don't use gbm if there is no gbm configured 2026-02-17 08:24:02 +00:00