Lines Matching defs:header
311 struct cache_header header;
313 if (size < sizeof(header))
315 memcpy(&header, data, sizeof(header));
316 if (header.header_size < sizeof(header))
318 if (header.header_version != VK_PIPELINE_CACHE_HEADER_VERSION_ONE)
320 if (header.vendor_id != 0x1002)
322 if (header.device_id != device->physical_device->rad_info.pci_id)
324 if (memcmp(header.uuid, device->physical_device->uuid, VK_UUID_SIZE) != 0)
328 char *p = (void *) data + header.header_size;
406 struct cache_header *header;
408 const size_t size = sizeof(*header) + cache->total_size;
413 if (*pDataSize < sizeof(*header)) {
418 header = p;
419 header->header_size = sizeof(*header);
420 header->header_version = VK_PIPELINE_CACHE_HEADER_VERSION_ONE;
421 header->vendor_id = 0x1002;
422 header->device_id = device->physical_device->rad_info.pci_id;
423 memcpy(header->uuid, device->physical_device->uuid, VK_UUID_SIZE);
424 p += header->header_size;