Mesa (main): turnip: Plug the vendor/device ID into the pipeline cache fields, too.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 6 17:09:49 UTC 2021
Module: Mesa
Branch: main
Commit: 23cad1b5668d3f3973d2c9c0a5391214097aa6df
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=23cad1b5668d3f3973d2c9c0a5391214097aa6df
Author: Emma Anholt <emma at anholt.net>
Date: Tue Oct 5 09:50:24 2021 -0700
turnip: Plug the vendor/device ID into the pipeline cache fields, too.
Fixes a regression in dEQP-VK.pipeline.cache.misc_tests.cache_header_test.
Fixes: 7e471541e0d1 ("turnip: Match the blob's format for vendorID and deviceID.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13200>
---
src/freedreno/vulkan/tu_pipeline_cache.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/freedreno/vulkan/tu_pipeline_cache.c b/src/freedreno/vulkan/tu_pipeline_cache.c
index b5b15542c1c..dae4f5e2a8e 100644
--- a/src/freedreno/vulkan/tu_pipeline_cache.c
+++ b/src/freedreno/vulkan/tu_pipeline_cache.c
@@ -212,9 +212,9 @@ tu_pipeline_cache_load(struct tu_pipeline_cache *cache,
return;
if (header.header_version != VK_PIPELINE_CACHE_HEADER_VERSION_ONE)
return;
- if (header.vendor_id != 0 /* TODO */)
+ if (header.vendor_id != 0x5143)
return;
- if (header.device_id != 0 /* TODO */)
+ if (header.device_id != device->physical_device->dev_id.chip_id)
return;
if (memcmp(header.uuid, device->physical_device->cache_uuid,
VK_UUID_SIZE) != 0)
@@ -319,8 +319,8 @@ tu_GetPipelineCacheData(VkDevice _device,
header = p;
header->header_size = sizeof(*header);
header->header_version = VK_PIPELINE_CACHE_HEADER_VERSION_ONE;
- header->vendor_id = 0 /* TODO */;
- header->device_id = 0 /* TODO */;
+ header->vendor_id = 0x5143;
+ header->device_id = device->physical_device->dev_id.chip_id;
memcpy(header->uuid, device->physical_device->cache_uuid, VK_UUID_SIZE);
p += header->header_size;
More information about the mesa-commit
mailing list