Lines Matching defs:device
76 v3dv_shader_variant_destroy(struct v3dv_device *device,
85 vk_free(&device->vk.alloc, variant);
89 destroy_pipeline_stage(struct v3dv_device *device,
97 vk_free2(&device->vk.alloc, pAllocator, p_stage);
101 pipeline_free_stages(struct v3dv_device *device,
110 destroy_pipeline_stage(device, pipeline->vs, pAllocator);
111 destroy_pipeline_stage(device, pipeline->vs_bin, pAllocator);
112 destroy_pipeline_stage(device, pipeline->gs, pAllocator);
113 destroy_pipeline_stage(device, pipeline->gs_bin, pAllocator);
114 destroy_pipeline_stage(device, pipeline->fs, pAllocator);
115 destroy_pipeline_stage(device, pipeline->cs, pAllocator);
127 struct v3dv_device *device,
133 pipeline_free_stages(device, pipeline, pAllocator);
136 v3dv_pipeline_shared_data_unref(device, pipeline->shared_data);
142 v3dv_bo_free(device, pipeline->spill.bo);
146 v3dv_bo_free(device, pipeline->default_attribute_values);
153 vk_object_free(&device->vk, pAllocator, pipeline);
161 V3DV_FROM_HANDLE(v3dv_device, device, _device);
167 v3dv_destroy_pipeline(pipeline, device, pAllocator);
434 shader_module_compile_to_nir(struct v3dv_device *device,
448 VkResult result = vk_shader_module_to_nir(&device->vk, stage->module,
1150 const bool rba = p_stage->pipeline->device->features.robustBufferAccess;
1215 v3dv_get_format_swizzle(p_stage->pipeline->device, fb_format),
1268 const bool rba = p_stage->pipeline->device->features.robustBufferAccess;
1310 const bool rba = p_stage->pipeline->device->features.robustBufferAccess;
1405 struct v3dv_device *device = src->pipeline->device;
1408 vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*p_stage), 8,
1453 struct v3dv_bo *bo = v3dv_bo_alloc(pipeline->device, total_size,
1460 bool ok = v3dv_bo_map(pipeline->device, bo, total_size);
1562 struct v3dv_device *device = pipeline->device;
1570 4 * device->devinfo.qpu_count * max_spill_size;
1573 v3dv_bo_free(device, pipeline->spill.bo);
1576 v3dv_bo_alloc(device, total_spill_size, "spill", true);
1593 v3dv_shader_variant_create(struct v3dv_device *device,
1603 vk_zalloc(&device->vk.alloc, sizeof(*variant), 8,
1649 &pipeline->device->instance->physicalDevice;
1684 v3dv_shader_variant_create(pipeline->device, p_stage->stage,
1829 nir = shader_module_compile_to_nir(pipeline->device, p_stage);
1833 &pipeline->device->default_pipeline_cache;
1943 pipeline->device->features.robustBufferAccess;
1996 v3dv_get_format_swizzle(pipeline->device, fb_format),
2035 pipeline->device->features.robustBufferAccess;
2043 /* We create new_entry using the device alloc. Right now shared_data is ref
2049 vk_zalloc2(&pipeline->device->vk.alloc, NULL,
2075 vk_zalloc2(&pipeline->device->vk.alloc, NULL,
2100 vk_free(&pipeline->device->vk.alloc, new_entry->maps[stage]);
2104 vk_free(&pipeline->device->vk.alloc, new_entry);
2288 struct v3dv_device *device = pipeline->device;
2290 &device->instance->physicalDevice;
2293 vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*p_stage), 8,
2356 struct v3dv_device *device = pipeline->device;
2358 &device->instance->physicalDevice;
2368 vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*p_stage), 8,
2432 vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*p_stage), 8,
2488 if (cache_hit && cache != &pipeline->device->default_pipeline_cache)
2587 pipeline_free_stages(device, pipeline, pAllocator);
2615 if (!v3d_compute_vpm_config(&pipeline->device->devinfo,
2857 v3dv_pipeline_create_default_attribute_values(struct v3dv_device *device,
2863 bo = v3dv_bo_alloc(device, size, "default_vi_attributes", true);
2871 bool ok = v3dv_bo_map(device, bo, size);
2892 v3dv_bo_unmap(device, bo);
2923 struct v3dv_device *device,
2930 pipeline->device = device;
2991 v3dv_X(device, pipeline_pack_state)(pipeline, cb_info, ds_info,
3018 v3dv_X(device, pipeline_pack_compile_state)(pipeline, vi_info, vd_info);
3022 v3dv_pipeline_create_default_attribute_values(pipeline->device, pipeline);
3042 V3DV_FROM_HANDLE(v3dv_device, device, _device);
3049 if (cache == NULL && device->instance->default_pipeline_cache_enabled)
3050 cache = &device->default_pipeline_cache;
3052 pipeline = vk_object_zalloc(&device->vk, pAllocator, sizeof(*pipeline),
3056 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
3058 result = pipeline_init(pipeline, device, cache,
3063 v3dv_destroy_pipeline(pipeline, device, pAllocator);
3082 V3DV_FROM_HANDLE(v3dv_device, device, _device);
3086 mtx_lock(&device->pdevice->mutex);
3112 mtx_unlock(&device->pdevice->mutex);
3149 struct v3dv_device *device = pipeline->device;
3151 &device->instance->physicalDevice;
3157 vk_zalloc2(&device->vk.alloc, alloc, sizeof(*p_stage), 8,
3194 if (cache_hit && cache != &pipeline->device->default_pipeline_cache)
3226 pipeline->device->features.robustBufferAccess);
3254 pipeline_free_stages(device, pipeline, alloc);
3263 struct v3dv_device *device,
3270 pipeline->device = device;
3285 V3DV_FROM_HANDLE(v3dv_device, device, _device);
3292 if (cache == NULL && device->instance->default_pipeline_cache_enabled)
3293 cache = &device->default_pipeline_cache;
3295 pipeline = vk_object_zalloc(&device->vk, pAllocator, sizeof(*pipeline),
3298 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
3300 result = compute_pipeline_init(pipeline, device, cache,
3303 v3dv_destroy_pipeline(pipeline, device, pAllocator);
3322 V3DV_FROM_HANDLE(v3dv_device, device, _device);
3326 mtx_lock(&device->pdevice->mutex);
3351 mtx_unlock(&device->pdevice->mutex);
3480 if (!v3dv_bo_map(pipeline->device, qpu_bo, qpu_bo->size)) {
3504 const char *str = v3d_qpu_disasm(&pipeline->device->devinfo, qpu[i]);
3519 v3dv_bo_unmap(pipeline->device, qpu_bo);
3534 VkDevice device,
3575 VkDevice device,
3610 VkDevice device,