radv: use device name in cache creation like radeonsi.
Not sure how useful this is, but it makes it more consistent. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Cc: "17.3" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
3cd3035ace
commit
d8cefaa197
|
@ -152,6 +152,8 @@ radv_physical_device_init(struct radv_physical_device *device,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
device->name = get_chip_name(device->rad_info.family);
|
||||||
|
|
||||||
if (radv_device_get_cache_uuid(device->rad_info.family, device->cache_uuid)) {
|
if (radv_device_get_cache_uuid(device->rad_info.family, device->cache_uuid)) {
|
||||||
radv_finish_wsi(device);
|
radv_finish_wsi(device);
|
||||||
device->ws->destroy(device->ws);
|
device->ws->destroy(device->ws);
|
||||||
|
@ -170,10 +172,9 @@ radv_physical_device_init(struct radv_physical_device *device,
|
||||||
*/
|
*/
|
||||||
char buf[VK_UUID_SIZE + 1];
|
char buf[VK_UUID_SIZE + 1];
|
||||||
disk_cache_format_hex_id(buf, device->cache_uuid, VK_UUID_SIZE);
|
disk_cache_format_hex_id(buf, device->cache_uuid, VK_UUID_SIZE);
|
||||||
device->disk_cache = disk_cache_create("radv", buf, shader_env_flags);
|
device->disk_cache = disk_cache_create(device->name, buf, shader_env_flags);
|
||||||
|
|
||||||
fprintf(stderr, "WARNING: radv is not a conformant vulkan implementation, testing use only.\n");
|
fprintf(stderr, "WARNING: radv is not a conformant vulkan implementation, testing use only.\n");
|
||||||
device->name = get_chip_name(device->rad_info.family);
|
|
||||||
|
|
||||||
radv_get_driver_uuid(&device->device_uuid);
|
radv_get_driver_uuid(&device->device_uuid);
|
||||||
radv_get_device_uuid(&device->rad_info, &device->device_uuid);
|
radv_get_device_uuid(&device->rad_info, &device->device_uuid);
|
||||||
|
|
Loading…
Reference in New Issue