summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2024-03-25 14:30:24 -0700
committerMarge Bot <emma+marge@anholt.net>2024-04-05 00:25:41 +0000
commitccf439629ff85825b9629aea6fc5cc74a52816eb (patch)
tree8aa9239baaf2cc28c6b6f1e6dd8de9271aff74f4
parent4de88025cc295a9e6751f15257261538b9681640 (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.c5
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);