/external/tensorflow/tensorflow/lite/delegates/gpu/cl/testing/ |
D | performance_profiling.cc | 42 InferenceContext::CreateInferenceInfo create_info; in RunModelSample() local 43 create_info.precision = env.IsSupported(CalculationsPrecision::F16) in RunModelSample() 46 create_info.storage_type = GetFastestStorageType(env.device().GetInfo()); in RunModelSample() 47 create_info.hints.Add(ModelHints::kAllowSpecialKernels); in RunModelSample() 48 std::cout << "Precision: " << ToString(create_info.precision) << std::endl; in RunModelSample() 49 std::cout << "Storage type: " << ToString(create_info.storage_type) in RunModelSample() 53 context.InitFromGraphWithTransforms(create_info, &graph_cl, &env)); in RunModelSample()
|
/external/vulkan-validation-layers/tests/ |
D | vktestbinding.h | 335 static VkFenceCreateInfo create_info(VkFenceCreateFlags flags); 336 static VkFenceCreateInfo create_info(); 346 static VkSemaphoreCreateInfo create_info(VkFlags flags); 363 static VkEventCreateInfo create_info(VkFlags flags); 376 static VkQueryPoolCreateInfo create_info(VkQueryType type, uint32_t slot_count); 392 init(dev, create_info(size, usage, &queue_families), mem_props); 397 init(dev, create_info(size, VK_BUFFER_USAGE_TRANSFER_SRC_BIT, queue_families), reqs); 401 init(dev, create_info(size, VK_BUFFER_USAGE_TRANSFER_DST_BIT, queue_families), reqs); 406 …init(dev, create_info(size, VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT, q… 409 …create_info(size, VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT, queue_famil… [all …]
|
D | vkrenderframework.cpp | 1192 VkImageCreateInfo imageCreateInfo = vk_testing::Image::create_info(); in InitNoLayout() 1244 void VkImageObj::init(const VkImageCreateInfo *create_info) { in init() argument 1246 vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), create_info->format, &image_fmt); in init() 1248 switch (create_info->tiling) { in init() 1250 if (!IsCompatible(create_info->usage, image_fmt.optimalTilingFeatures)) { in init() 1252 … << create_info->usage << ", supported optimal features: " << image_fmt.optimalTilingFeatures; in init() 1256 if (!IsCompatible(create_info->usage, image_fmt.linearTilingFeatures)) { in init() 1258 … << create_info->usage << ", supported linear features: " << image_fmt.linearTilingFeatures; in init() 1264 Layout(create_info->initialLayout); in init() 1266 vk_testing::Image::init(*m_device, *create_info, 0); in init() [all …]
|
D | vktestbinding.cpp | 683 VkBufferCreateInfo create_info = {}; in create_scratch_buffer() local 684 create_info.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; in create_scratch_buffer() 685 create_info.size = scratch_buffer_memory_requirements.size; in create_scratch_buffer() 686 create_info.usage = VK_BUFFER_USAGE_RAY_TRACING_BIT_NV; in create_scratch_buffer() 687 return buffer->init(dev, create_info, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in create_scratch_buffer()
|
/external/vulkan-validation-layers/layers/ |
D | descriptor_sets.cpp | 317 …const debug_report_data *report_data, const VkDescriptorSetLayoutCreateInfo *create_info, const bo… in ValidateDescriptorSetLayoutCreateInfo() argument 326 …reate_info = lvl_find_in_chain<VkDescriptorSetLayoutBindingFlagsCreateInfoEXT>(create_info->pNext); in ValidateDescriptorSetLayoutCreateInfo() 328 …const bool push_descriptor_set = !!(create_info->flags & VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESC… in ValidateDescriptorSetLayoutCreateInfo() 337 …const bool update_after_bind_set = !!(create_info->flags & VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_… in ValidateDescriptorSetLayoutCreateInfo() 354 for (uint32_t i = 0; i < create_info->bindingCount; ++i) { in ValidateDescriptorSetLayoutCreateInfo() 355 const auto &binding_info = create_info->pBindings[i]; in ValidateDescriptorSetLayoutCreateInfo() 398 …if (flags_create_info->bindingCount != 0 && flags_create_info->bindingCount != create_info->bindin… in ValidateDescriptorSetLayoutCreateInfo() 403 create_info->bindingCount, flags_create_info->bindingCount); in ValidateDescriptorSetLayoutCreateInfo() 406 if (flags_create_info->bindingCount == create_info->bindingCount) { in ValidateDescriptorSetLayoutCreateInfo() 407 for (uint32_t i = 0; i < create_info->bindingCount; ++i) { in ValidateDescriptorSetLayoutCreateInfo() [all …]
|
D | vk_layer_logging.h | 628 … const VkDebugUtilsMessengerCreateInfoEXT *create_info, in layer_create_messenger_callback() argument 640 pNewDbgFuncNode->messenger.pfnUserCallback = create_info->pfnUserCallback; in layer_create_messenger_callback() 641 pNewDbgFuncNode->messenger.messageSeverity = create_info->messageSeverity; in layer_create_messenger_callback() 642 pNewDbgFuncNode->messenger.messageType = create_info->messageType; in layer_create_messenger_callback() 643 pNewDbgFuncNode->pUserData = create_info->pUserData; in layer_create_messenger_callback() 645 debug_data->active_severities |= create_info->messageSeverity; in layer_create_messenger_callback() 646 debug_data->active_types |= create_info->messageType; in layer_create_messenger_callback() 679 … const VkDebugReportCallbackCreateInfoEXT *create_info, in layer_create_report_callback() argument 692 pNewDbgFuncNode->report.pfnMsgCallback = create_info->pfnCallback; in layer_create_report_callback() 693 pNewDbgFuncNode->report.msgFlags = create_info->flags; in layer_create_report_callback() [all …]
|
D | buffer_validation.cpp | 106 …: image_view(iv), create_info(*ci), normalized_subresource_range(ci->subresourceRange), samplerCon… in IMAGE_VIEW_STATE() 107 auto *conversionInfo = lvl_find_in_chain<VkSamplerYcbcrConversionInfo>(create_info.pNext); in IMAGE_VIEW_STATE() 111 auto &sub_res_range = create_info.subresourceRange; in IMAGE_VIEW_STATE() 118 descriptor_format_bits = DescriptorRequirementsBitsFromFormat(create_info.format); in IMAGE_VIEW_STATE() 320 IMAGE_STATE *image_state = GetImageState(view_state.create_info.image); in SetImageViewInitialLayout() 349 IMAGE_STATE *image_state = GetImageState(view_state.create_info.image); in SetImageViewLayout() 355 …if ((image_state->createInfo.imageType == VK_IMAGE_TYPE_3D) && (view_state.create_info.viewType !=… in SetImageViewLayout() 499 const VkImage image = view_state->create_info.image; in VerifyFramebufferAndRenderPassLayouts() 556 auto image = view_state->create_info.image; in VerifyFramebufferAndRenderPassLayouts() 571 auto image = view_state->create_info.image; in VerifyFramebufferAndRenderPassLayouts() [all …]
|
/external/mesa3d/src/freedreno/vulkan/ |
D | tu_wsi_display.c | 145 const VkDisplayModeCreateInfoKHR *create_info, in tu_CreateDisplayModeKHR() argument 154 create_info, in tu_CreateDisplayModeKHR() 190 const VkDisplaySurfaceCreateInfoKHR *create_info, in tu_CreateDisplayPlaneSurfaceKHR() argument 203 create_info, surface); in tu_CreateDisplayPlaneSurfaceKHR()
|
D | tu_pipeline.c | 250 const VkGraphicsPipelineCreateInfo *create_info; member 1456 uint32_t cps_per_patch = builder->create_info->pTessellationState ? in tu6_emit_program() 1457 builder->create_info->pTessellationState->patchControlPoints : 0; in tu6_emit_program() 2036 for (uint32_t i = 0; i < builder->create_info->stageCount; i++) { in tu_pipeline_builder_compile_shaders() 2038 vk_to_mesa_shader_stage(builder->create_info->pStages[i].stage); in tu_pipeline_builder_compile_shaders() 2039 stage_infos[stage] = &builder->create_info->pStages[i]; in tu_pipeline_builder_compile_shaders() 2043 tu_pipeline_shader_key_init(&key, builder->create_info); in tu_pipeline_builder_compile_shaders() 2164 builder->create_info->pDynamicState; in tu_pipeline_builder_parse_dynamic() 2266 for (unsigned i = 0; i < builder->create_info->stageCount; i++) { in tu_pipeline_builder_parse_shader_stages() 2267 stages |= builder->create_info->pStages[i].stage; in tu_pipeline_builder_parse_shader_stages() [all …]
|
D | tu_legacy.c | 329 VkRenderPassCreateInfo2 create_info = { in tu_CreateRenderPass() local 342 create_info.correlatedViewMaskCount = multiview_info->correlationMaskCount; in tu_CreateRenderPass() 343 create_info.pCorrelatedViewMasks = multiview_info->pCorrelationMasks; in tu_CreateRenderPass() 346 return tu_CreateRenderPass2(device, &create_info, pAllocator, pRenderPass); in tu_CreateRenderPass()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_wsi_display.c | 132 const VkDisplayModeCreateInfoKHR *create_info, in anv_CreateDisplayModeKHR() argument 141 create_info, in anv_CreateDisplayModeKHR() 178 const VkDisplaySurfaceCreateInfoKHR *create_info, in anv_CreateDisplayPlaneSurfaceKHR() argument 190 return wsi_create_display_surface(_instance, alloc, create_info, surface); in anv_CreateDisplayPlaneSurfaceKHR()
|
D | anv_android_stubs.c | 62 const VkExternalMemoryImageCreateInfo *create_info, in anv_image_from_external() argument
|
D | anv_android.h | 43 const VkExternalMemoryImageCreateInfo *create_info,
|
D | anv_image.c | 708 const struct anv_image_create_info *create_info, in anv_image_create() argument 713 const VkImageCreateInfo *pCreateInfo = create_info->vk_info; in anv_image_create() 777 if (create_info->external_format) { in anv_image_create() 787 choose_isl_tiling_flags(&device->info, create_info, isl_mod_info, in anv_image_create() 798 r = make_surface(device, image, fmt_list, create_info->stride, in anv_image_create() 799 isl_tiling_flags, create_info->isl_extra_usage_flags, in anv_image_create() 886 const VkExternalMemoryImageCreateInfo *create_info = in anv_CreateImage() local 889 if (create_info && (create_info->handleTypes & in anv_CreateImage() 891 return anv_image_from_external(device, pCreateInfo, create_info, in anv_CreateImage()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/ |
D | api.cc | 656 InferenceContext::CreateInferenceInfo create_info; in Initialize() local 657 create_info.precision = GetPrecision(*environment_, options); in Initialize() 658 create_info.storage_type = in Initialize() 661 create_info.hints.Add(ModelHints::kReduceKernelsCount); in Initialize() 662 create_info.hints.Add(ModelHints::kFastTuning); in Initialize() 664 create_info.hints.Add(ModelHints::kAllowSpecialKernels); in Initialize() 666 RETURN_IF_ERROR(context_->InitFromGraph(create_info, graph, environment_)); in Initialize() 920 InferenceContext::CreateInferenceInfo create_info; in BuildSerializedModel() local 921 create_info.precision = GetPrecision(environment_, options); in BuildSerializedModel() 922 create_info.storage_type = GetStorageTypeFromOptions(environment_, options); in BuildSerializedModel() [all …]
|
D | inference_context.cc | 139 const CreateInferenceInfo& create_info, const GraphFloat32& graph, in InitFromGraph() argument 147 ReserveGraphTensors(create_info, creation_context.GetGpuInfo(), graph); in InitFromGraph() 148 precision_ = create_info.precision; in InitFromGraph() 149 storage_type_ = create_info.storage_type; in InitFromGraph() 162 create_info.hints)); in InitFromGraph() 170 if (create_info.hints.Check(ModelHints::kFastTuning)) { in InitFromGraph() 230 const CreateInferenceInfo& create_info, GraphFloat32* graph, in InitFromGraphWithTransforms() argument 233 RETURN_IF_ERROR(InitFromGraph(create_info, *graph, env, serialized_model)); in InitFromGraphWithTransforms() 264 const CreateInferenceInfo& create_info, const GpuInfo& gpu_info, in ReserveGraphTensors() argument 268 auto data_type = DeduceDataTypeFromPrecision(create_info.precision); in ReserveGraphTensors() [all …]
|
D | inference_context.h | 69 absl::Status InitFromGraph(const CreateInferenceInfo& create_info, 77 const CreateInferenceInfo& create_info, GraphFloat32* graph, 117 void ReserveGraphTensors(const CreateInferenceInfo& create_info,
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_wsi_display.c | 152 const VkDisplayModeCreateInfoKHR *create_info, in radv_CreateDisplayModeKHR() argument 161 create_info, in radv_CreateDisplayModeKHR() 197 const VkDisplaySurfaceCreateInfoKHR *create_info, in radv_CreateDisplayPlaneSurfaceKHR() argument 210 create_info, surface); in radv_CreateDisplayPlaneSurfaceKHR()
|
D | radv_image.c | 353 const struct radv_image_create_info *create_info, in radv_patch_image_dimensions() argument 366 if (create_info->bo_metadata && in radv_patch_image_dimensions() 367 radv_is_valid_opaque_metadata(device, create_info->bo_metadata)) { in radv_patch_image_dimensions() 368 const struct radeon_bo_metadata *md = create_info->bo_metadata; in radv_patch_image_dimensions() 416 const struct radv_image_create_info *create_info, in radv_patch_image_from_extra_info() argument 419 VkResult result = radv_patch_image_dimensions(device, image, create_info, image_info); in radv_patch_image_from_extra_info() 424 if (create_info->bo_metadata) { in radv_patch_image_from_extra_info() 426 create_info->bo_metadata); in radv_patch_image_from_extra_info() 429 if (radv_surface_has_scanout(device, create_info)) { in radv_patch_image_from_extra_info() 1336 struct radv_image_create_info create_info, in radv_image_create_layout() argument [all …]
|
/external/mesa3d/src/vulkan/wsi/ |
D | wsi_common_display.c | 693 const VkDisplayModeCreateInfoKHR *create_info, in wsi_display_create_display_mode() argument 700 if (create_info->flags != 0) in wsi_display_create_display_mode() 710 if (wsi_display_mode_matches_vk(display_mode, &create_info->parameters)) { in wsi_display_create_display_mode() 788 const VkDisplaySurfaceCreateInfoKHR *create_info, in wsi_create_display_surface() argument 799 surface->displayMode = create_info->displayMode; in wsi_create_display_surface() 800 surface->planeIndex = create_info->planeIndex; in wsi_create_display_surface() 801 surface->planeStackIndex = create_info->planeStackIndex; in wsi_create_display_surface() 802 surface->transform = create_info->transform; in wsi_create_display_surface() 803 surface->globalAlpha = create_info->globalAlpha; in wsi_create_display_surface() 804 surface->alphaMode = create_info->alphaMode; in wsi_create_display_surface() [all …]
|
/external/mesa3d/src/amd/compiler/tests/ |
D | helpers.cpp | 513 VkComputePipelineCreateInfo create_info; in create_compute_pipeline() local 514 create_info.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO; in create_compute_pipeline() 515 create_info.pNext = NULL; in create_compute_pipeline() 516 create_info.flags = VK_PIPELINE_CREATE_CAPTURE_INTERNAL_REPRESENTATIONS_BIT_KHR; in create_compute_pipeline() 517 create_info.stage = stages[0]; in create_compute_pipeline() 518 create_info.layout = pipeline_layout; in create_compute_pipeline() 519 create_info.basePipelineHandle = VK_NULL_HANDLE; in create_compute_pipeline() 520 create_info.basePipelineIndex = 0; in create_compute_pipeline() 522 …VkResult result = CreateComputePipelines(device, VK_NULL_HANDLE, 1, &create_info, NULL, &pipeline); in create_compute_pipeline()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/ |
D | inference_context.cc | 127 const CreateInferenceInfo& create_info, GraphFloat32* graph, in InitFromGraphWithTransforms() argument 130 RETURN_IF_ERROR(InitFromGraph(create_info, *graph, device_id)); in InitFromGraphWithTransforms() 135 const CreateInferenceInfo& create_info, const GraphFloat32& graph, in InitFromGraph() argument 149 precision_ = create_info.precision; in InitFromGraph() 152 ReserveGraphTensors(create_info, metal_device.GetInfo(), graph, in InitFromGraph() 154 RETURN_IF_ERROR(Compile(graph, metal_device.GetInfo(), create_info.hints)); in InitFromGraph() 165 const CreateInferenceInfo& create_info, const GpuInfo& gpu_info, in ReserveGraphTensors() argument 169 auto data_type = DeduceDataTypeFromPrecision(create_info.precision); in ReserveGraphTensors() 171 TensorStorageType storage_type = create_info.storage_type; in ReserveGraphTensors()
|
D | inference_context.h | 69 absl::Status InitFromGraph(const CreateInferenceInfo& create_info, 77 const CreateInferenceInfo& create_info, GraphFloat32* graph, 131 void ReserveGraphTensors(const CreateInferenceInfo& create_info,
|
/external/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_image.c | 31 const struct lvp_image_create_info *create_info, in lvp_image_create() argument 36 const VkImageCreateInfo *pCreateInfo = create_info->vk_info; in lvp_image_create() 78 if (create_info->bind_flags) in lvp_image_create() 79 template.bind = create_info->bind_flags; in lvp_image_create()
|
/external/deqp-deps/amber/src/vulkan/ |
D | engine_vulkan.cc | 300 VkShaderModuleCreateInfo create_info = VkShaderModuleCreateInfo(); in SetShader() local 301 create_info.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; in SetShader() 302 create_info.codeSize = data.size() * sizeof(uint32_t); in SetShader() 303 create_info.pCode = data.data(); in SetShader() 306 device_->GetVkDevice(), &create_info, nullptr, &shader_module) != in SetShader()
|