nvk: Include the chipset in the pipeline/binary cache UUID

Cc: mesa-stable
(cherry picked from commit d1793c7a59)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38167>
This commit is contained in:
Faith Ekstrand 2025-10-22 17:25:58 -04:00 committed by Dylan Baker
parent bfd09d9891
commit cd253df92a
2 changed files with 4 additions and 1 deletions

View file

@ -964,7 +964,7 @@
"description": "nvk: Include the chipset in the pipeline/binary cache UUID",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1267,6 +1267,9 @@ nvk_physical_device_init_pipeline_cache(struct nvk_physical_device *pdev)
_mesa_sha1_update(&sha_ctx, instance->driver_build_sha,
sizeof(instance->driver_build_sha));
_mesa_sha1_update(&sha_ctx, &pdev->info.chipset,
sizeof(pdev->info.chipset));
const uint64_t compiler_flags = nvk_physical_device_compiler_flags(pdev);
_mesa_sha1_update(&sha_ctx, &compiler_flags, sizeof(compiler_flags));