summaryrefslogtreecommitdiff
path: root/src/intel/vulkan/anv_pipeline_cache.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2020-01-17 23:45:31 -0600
committerMarge Bot <eric+marge@anholt.net>2020-01-20 22:08:52 +0000
commit3ecfba388a01d5ceb32fdd8122c5cf14e174aa3c (patch)
treeaab6327324d1cf620543894528d609031f841fbd /src/intel/vulkan/anv_pipeline_cache.c
parent02044be23f179959872158dbf2a470ed49df774c (diff)
anv: Drop separate chipset_id fields
This already exists in gen_device_info. There's no reason to keep duplicate copies. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3461>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline_cache.c')
-rw-r--r--src/intel/vulkan/anv_pipeline_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c
index 1684198a2e0..02bc832ceeb 100644
--- a/src/intel/vulkan/anv_pipeline_cache.c
+++ b/src/intel/vulkan/anv_pipeline_cache.c
@@ -485,7 +485,7 @@ anv_pipeline_cache_load(struct anv_pipeline_cache *cache,
return;
if (header.vendor_id != 0x8086)
return;
- if (header.device_id != device->chipset_id)
+ if (header.device_id != device->info.chipset_id)
return;
if (memcmp(header.uuid, pdevice->pipeline_cache_uuid, VK_UUID_SIZE) != 0)
return;
@@ -566,7 +566,7 @@ VkResult anv_GetPipelineCacheData(
.header_size = sizeof(struct cache_header),
.header_version = VK_PIPELINE_CACHE_HEADER_VERSION_ONE,
.vendor_id = 0x8086,
- .device_id = device->chipset_id,
+ .device_id = device->info.chipset_id,
};
memcpy(header.uuid, device->physical->pipeline_cache_uuid, VK_UUID_SIZE);
blob_write_bytes(&blob, &header, sizeof(header));