diff options
author | Jesse Natalie <jenatali@microsoft.com> | 2024-03-25 14:30:24 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-04-05 00:25:41 +0000 |
commit | ccf439629ff85825b9629aea6fc5cc74a52816eb (patch) | |
tree | 8aa9239baaf2cc28c6b6f1e6dd8de9271aff74f4 | |
parent | 4de88025cc295a9e6751f15257261538b9681640 (diff) |
dzn: Update pipeline cache params to take all options into account
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28383>
-rw-r--r-- | src/microsoft/vulkan/dzn_device.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c index a08fe1ba4cb..748320e0678 100644 --- a/src/microsoft/vulkan/dzn_device.c +++ b/src/microsoft/vulkan/dzn_device.c @@ -348,8 +348,9 @@ dzn_physical_device_init_uuids(struct dzn_physical_device *pdev) _mesa_sha1_init(&sha1_ctx); _mesa_sha1_update(&sha1_ctx, mesa_version, strlen(mesa_version)); disk_cache_get_function_identifier(dzn_physical_device_init_uuids, &sha1_ctx); - _mesa_sha1_update(&sha1_ctx, &pdev->options, sizeof(pdev->options)); - _mesa_sha1_update(&sha1_ctx, &pdev->options2, sizeof(pdev->options2)); + _mesa_sha1_update(&sha1_ctx, &pdev->options, + offsetof(struct dzn_physical_device, options21) + sizeof(pdev->options21) - + offsetof(struct dzn_physical_device, options)); _mesa_sha1_final(&sha1_ctx, sha1); memcpy(pdev->pipeline_cache_uuid, sha1, VK_UUID_SIZE); |