Lines Matching defs:device
203 struct v3dv_device *device,
207 cache->device = device;
301 struct v3dv_device *device = cache->device;
302 struct disk_cache *disk_cache = device->pdevice->disk_cache;
308 if (disk_cache && device->instance->pipeline_cache_enabled) {
348 v3dv_pipeline_shared_data_destroy(struct v3dv_device *device,
355 v3dv_shader_variant_destroy(device, shared_data->variants[stage]);
362 vk_free(&device->vk.alloc, shared_data->maps[stage]);
367 v3dv_bo_free(device, shared_data->assembly_bo);
369 vk_free(&device->vk.alloc, shared_data);
381 /* We create new_entry using the device alloc. Right now shared_data is ref
387 vk_zalloc2(&cache->device->vk.alloc, NULL, size, 8,
401 struct v3dv_bo *bo = v3dv_bo_alloc(cache->device, total_assembly_size,
408 bool ok = v3dv_bo_map(cache->device, bo, total_assembly_size);
421 v3dv_pipeline_shared_data_unref(cache->device, new_entry);
474 struct v3dv_device *device = cache->device;
475 struct disk_cache *disk_cache = device->pdevice->disk_cache;
524 shader_variant_create_from_blob(struct v3dv_device *device,
567 return v3dv_shader_variant_create(device, stage,
593 maps[stage] = vk_zalloc2(&cache->device->vk.alloc, NULL,
613 shader_variant_create_from_blob(cache->device, blob);
636 vk_free2(&cache->device->vk.alloc, NULL, maps[i]);
638 v3dv_shader_variant_destroy(cache->device, variants[i]);
648 struct v3dv_device *device = cache->device;
649 struct v3dv_physical_device *pdevice = &device->instance->physicalDevice;
716 V3DV_FROM_HANDLE(v3dv_device, device, _device);
721 cache = vk_object_zalloc(&device->vk, pAllocator,
726 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
728 v3dv_pipeline_cache_init(cache, device, pCreateInfo->flags,
729 device->instance->pipeline_cache_enabled);
761 v3dv_pipeline_shared_data_unref(cache->device, cache_entry);
773 V3DV_FROM_HANDLE(v3dv_device, device, _device);
781 vk_object_free(&device->vk, pAllocator, cache);
785 v3dv_MergePipelineCaches(VkDevice device,
955 V3DV_FROM_HANDLE(v3dv_device, device, _device);
965 struct v3dv_physical_device *pdevice = &device->instance->physicalDevice;