dzn: Update pipeline cache params to take all options into account

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28383>
This commit is contained in:
Jesse Natalie
2024-03-25 14:30:24 -07:00
committed by Marge Bot
parent 4de88025cc
commit ccf439629f
+3 -2
View File
@@ -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);