Home
last modified time | relevance | path

Searched refs:physical_device (Results 1 – 25 of 31) sorted by relevance

12

/external/mesa3d/src/amd/vulkan/
Dradv_wsi.c34 radv_init_wsi(struct radv_physical_device *physical_device) in radv_init_wsi() argument
38 memset(physical_device->wsi_device.wsi, 0, sizeof(physical_device->wsi_device.wsi)); in radv_init_wsi()
41 result = wsi_x11_init_wsi(&physical_device->wsi_device, &physical_device->instance->alloc); in radv_init_wsi()
47 result = wsi_wl_init_wsi(&physical_device->wsi_device, &physical_device->instance->alloc, in radv_init_wsi()
48 radv_physical_device_to_handle(physical_device), in radv_init_wsi()
52 wsi_x11_finish_wsi(&physical_device->wsi_device, &physical_device->instance->alloc); in radv_init_wsi()
62 radv_finish_wsi(struct radv_physical_device *physical_device) in radv_finish_wsi() argument
65 wsi_wl_finish_wsi(&physical_device->wsi_device, &physical_device->instance->alloc); in radv_finish_wsi()
68 wsi_x11_finish_wsi(&physical_device->wsi_device, &physical_device->instance->alloc); in radv_finish_wsi()
254 device->physical_device->wsi_device.wsi[surface->platform]; in radv_CreateSwapchainKHR()
[all …]
Dsi_cmd_buffer.c39 si_write_harvested_raster_configs(struct radv_physical_device *physical_device, in si_write_harvested_raster_configs() argument
44 unsigned sh_per_se = MAX2(physical_device->rad_info.max_sh_per_se, 1); in si_write_harvested_raster_configs()
45 unsigned num_se = MAX2(physical_device->rad_info.max_se, 1); in si_write_harvested_raster_configs()
46 unsigned rb_mask = physical_device->rad_info.enabled_rb_mask; in si_write_harvested_raster_configs()
47 unsigned num_rb = MIN2(physical_device->rad_info.num_render_backends, 16); in si_write_harvested_raster_configs()
149 if (physical_device->rad_info.chip_class < CIK) in si_write_harvested_raster_configs()
158 if (physical_device->rad_info.chip_class >= CIK) in si_write_harvested_raster_configs()
163 if (physical_device->rad_info.chip_class < CIK) in si_write_harvested_raster_configs()
174 si_init_compute(struct radv_physical_device *physical_device, in si_init_compute() argument
189 if (physical_device->rad_info.chip_class >= CIK) { in si_init_compute()
[all …]
Dradv_wsi_wayland.c37 RADV_FROM_HANDLE(radv_physical_device, physical_device, physicalDevice); in radv_GetPhysicalDeviceWaylandPresentationSupportKHR()
39 return wsi_wl_get_presentation_support(&physical_device->wsi_device, display); in radv_GetPhysicalDeviceWaylandPresentationSupportKHR()
Dradv_device.c657 RADV_FROM_HANDLE(radv_physical_device, physical_device, physicalDevice); in radv_GetPhysicalDeviceMemoryProperties()
688 .size = physical_device->rad_info.vram_size - in radv_GetPhysicalDeviceMemoryProperties()
689 physical_device->rad_info.visible_vram_size, in radv_GetPhysicalDeviceMemoryProperties()
693 .size = physical_device->rad_info.visible_vram_size, in radv_GetPhysicalDeviceMemoryProperties()
697 .size = physical_device->rad_info.gart_size, in radv_GetPhysicalDeviceMemoryProperties()
731 RADV_FROM_HANDLE(radv_physical_device, physical_device, physicalDevice); in radv_CreateDevice()
736 if (!is_extension_enabled(physical_device->extensions.ext_array, in radv_CreateDevice()
737 physical_device->extensions.num_ext, in radv_CreateDevice()
742 device = vk_alloc2(&physical_device->instance->alloc, pAllocator, in radv_CreateDevice()
751 device->instance = physical_device->instance; in radv_CreateDevice()
[all …]
Dradv_formats.c447 static bool radv_is_storage_image_format_supported(struct radv_physical_device *physical_device, in radv_is_storage_image_format_supported() argument
542 radv_physical_device_get_format_properties(struct radv_physical_device *physical_device, in radv_physical_device_get_format_properties() argument
556 if (radv_is_storage_image_format_supported(physical_device, format)) { in radv_physical_device_get_format_properties()
950 RADV_FROM_HANDLE(radv_physical_device, physical_device, physicalDevice); in radv_GetPhysicalDeviceFormatProperties()
952 radv_physical_device_get_format_properties(physical_device, in radv_GetPhysicalDeviceFormatProperties()
966 RADV_FROM_HANDLE(radv_physical_device, physical_device, physicalDevice); in radv_GetPhysicalDeviceImageFormatProperties()
974 radv_physical_device_get_format_properties(physical_device, format, in radv_GetPhysicalDeviceImageFormatProperties()
Dradv_image.c115 device->physical_device->rad_info.chip_class < VI || in radv_init_surface()
126 return (ATI_VENDOR_ID << 16) | device->physical_device->rad_info.pci_id; in si_get_bo_metadata_word1()
329 if (device->physical_device->rad_info.chip_class <= CIK && image->samples <= 1) { in si_make_texture_descriptor()
521 unsigned pipe_interleave_bytes = device->physical_device->rad_info.pipe_interleave_bytes; in radv_image_get_cmask_info()
522 unsigned num_pipes = device->physical_device->rad_info.num_tile_pipes; in radv_image_get_cmask_info()
595 unsigned num_pipes = device->physical_device->rad_info.num_tile_pipes; in radv_image_get_htile_size()
596 unsigned pipe_interleave_bytes = device->physical_device->rad_info.pipe_interleave_bytes; in radv_image_get_htile_size()
605 if (device->physical_device->rad_info.chip_class >= CIK && num_pipes < 4) in radv_image_get_htile_size()
830 if (device->physical_device->rad_info.chip_class >= CIK) { in radv_image_set_optimal_micro_tile_mode()
Dradv_pipeline_cache.c322 if (header.device_id != device->physical_device->rad_info.pci_id) in radv_pipeline_cache_load()
324 if (memcmp(header.uuid, device->physical_device->uuid, VK_UUID_SIZE) != 0) in radv_pipeline_cache_load()
422 header->device_id = device->physical_device->rad_info.pci_id; in radv_GetPipelineCacheData()
423 memcpy(header->uuid, device->physical_device->uuid, VK_UUID_SIZE); in radv_GetPipelineCacheData()
Dradv_query.c38 unsigned num_db = device->physical_device->rad_info.num_render_backends; in get_max_db()
39 MAYBE_UNUSED unsigned rb_mask = device->physical_device->rad_info.enabled_rb_mask; in get_max_db()
41 if (device->physical_device->rad_info.chip_class == SI) in get_max_db()
Dradv_private.h299 VkResult radv_init_wsi(struct radv_physical_device *physical_device);
300 void radv_finish_wsi(struct radv_physical_device *physical_device);
500 struct radv_physical_device *physical_device; member
736 void si_init_compute(struct radv_physical_device *physical_device,
738 void si_init_config(struct radv_physical_device *physical_device,
Dradv_pipeline.c281 unsigned lds_increment = device->physical_device->rad_info.chip_class >= CIK ? 512 : 256; in radv_dump_pipeline_stats()
302 if (device->physical_device->rad_info.chip_class >= VI) in radv_dump_pipeline_stats()
412 enum radeon_family chip_family = device->physical_device->rad_info.family; in radv_shader_variant_create()
426 options.chip_class = device->physical_device->rad_info.chip_class; in radv_shader_variant_create()
1037 unsigned num_tile_pipes = pipeline->device->physical_device->rad_info.num_tile_pipes; in radv_pipeline_init_multisample_state()
Dradv_cmd_buffer.c120 cmd_buffer->device->physical_device->rad_info.chip_class >= CIK; in radv_cmd_buffer_uses_mec()
655 bool is_vi = cmd_buffer->device->physical_device->rad_info.chip_class >= VI; in radv_emit_fb_color_state()
921 if (cmd_buffer->device->physical_device->rad_info.chip_class >= CIK) { in radv_set_db_count_control()
927 if (cmd_buffer->device->physical_device->rad_info.chip_class >= CIK) { in radv_set_db_count_control()
1139 if (cmd_buffer->device->physical_device->rad_info.chip_class <= CIK && stride) in radv_cmd_buffer_flush_state()
1171 if (cmd_buffer->device->physical_device->rad_info.chip_class >= CIK) { in radv_cmd_buffer_flush_state()
1443 si_init_config(cmd_buffer->device->physical_device, cmd_buffer); in radv_BeginCommandBuffer()
1453 si_init_compute(cmd_buffer->device->physical_device, cmd_buffer); in radv_BeginCommandBuffer()
2650 if (cmd_buffer->device->physical_device->rad_info.chip_class == CIK) { in write_event()
/external/vulkan-validation-layers/libs/vkjson/
Dvkjson_instance.cc69 VkPhysicalDevice physical_device, in VkJsonGetDevice() argument
85 vkEnumerateDeviceExtensionProperties(physical_device, nullptr, in VkJsonGetDevice()
90 physical_device, nullptr, &extension_count, device.extensions.data()); in VkJsonGetDevice()
94 vkEnumerateDeviceLayerProperties(physical_device, &layer_count, nullptr); in VkJsonGetDevice()
97 vkEnumerateDeviceLayerProperties(physical_device, &layer_count, in VkJsonGetDevice()
101 vkGetPhysicalDeviceProperties(physical_device, &device.properties); in VkJsonGetDevice()
117 vkpGetPhysicalDeviceFeatures2KHR(physical_device, &features); in VkJsonGetDevice()
120 vkGetPhysicalDeviceFeatures(physical_device, &device.features); in VkJsonGetDevice()
122 vkGetPhysicalDeviceMemoryProperties(physical_device, &device.memory); in VkJsonGetDevice()
125 vkGetPhysicalDeviceQueueFamilyProperties(physical_device, &queue_family_count, in VkJsonGetDevice()
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_wsi.c33 anv_init_wsi(struct anv_physical_device *physical_device) in anv_init_wsi() argument
37 memset(physical_device->wsi_device.wsi, 0, sizeof(physical_device->wsi_device.wsi)); in anv_init_wsi()
40 result = wsi_x11_init_wsi(&physical_device->wsi_device, &physical_device->instance->alloc); in anv_init_wsi()
46 result = wsi_wl_init_wsi(&physical_device->wsi_device, &physical_device->instance->alloc, in anv_init_wsi()
47 anv_physical_device_to_handle(physical_device), in anv_init_wsi()
51 wsi_x11_finish_wsi(&physical_device->wsi_device, &physical_device->instance->alloc); in anv_init_wsi()
61 anv_finish_wsi(struct anv_physical_device *physical_device) in anv_finish_wsi() argument
64 wsi_wl_finish_wsi(&physical_device->wsi_device, &physical_device->instance->alloc); in anv_finish_wsi()
67 wsi_x11_finish_wsi(&physical_device->wsi_device, &physical_device->instance->alloc); in anv_finish_wsi()
Danv_formats.c379 anv_physical_device_get_format_properties(struct anv_physical_device *physical_device, in anv_physical_device_get_format_properties() argument
383 int gen = physical_device->info.gen * 10; in anv_physical_device_get_format_properties()
384 if (physical_device->info.is_haswell) in anv_physical_device_get_format_properties()
392 if (physical_device->info.gen >= 8) in anv_physical_device_get_format_properties()
399 linear_fmt = anv_get_format(&physical_device->info, format, in anv_physical_device_get_format_properties()
402 tiled_fmt = anv_get_format(&physical_device->info, format, in anv_physical_device_get_format_properties()
406 linear = get_image_format_properties(&physical_device->info, in anv_physical_device_get_format_properties()
408 tiled = get_image_format_properties(&physical_device->info, in anv_physical_device_get_format_properties()
410 buffer = get_buffer_format_properties(&physical_device->info, in anv_physical_device_get_format_properties()
445 ANV_FROM_HANDLE(anv_physical_device, physical_device, physicalDevice); in anv_GetPhysicalDeviceFormatProperties()
[all …]
Danv_wsi_wayland.c38 ANV_FROM_HANDLE(anv_physical_device, physical_device, physicalDevice); in anv_GetPhysicalDeviceWaylandPresentationSupportKHR()
40 return wsi_wl_get_presentation_support(&physical_device->wsi_device, display); in anv_GetPhysicalDeviceWaylandPresentationSupportKHR()
Danv_device.c677 ANV_FROM_HANDLE(anv_physical_device, physical_device, physicalDevice); in anv_GetPhysicalDeviceMemoryProperties()
683 heap_size = 3 * physical_device->aperture_size / 4; in anv_GetPhysicalDeviceMemoryProperties()
685 if (physical_device->info.has_llc) { in anv_GetPhysicalDeviceMemoryProperties()
879 ANV_FROM_HANDLE(anv_physical_device, physical_device, physicalDevice); in anv_CreateDevice()
898 device = vk_alloc2(&physical_device->instance->alloc, pAllocator, in anv_CreateDevice()
905 device->instance = physical_device->instance; in anv_CreateDevice()
906 device->chipset_id = physical_device->chipset_id; in anv_CreateDevice()
911 device->alloc = physical_device->instance->alloc; in anv_CreateDevice()
914 device->fd = open(physical_device->path, O_RDWR | O_CLOEXEC); in anv_CreateDevice()
926 device->info = physical_device->info; in anv_CreateDevice()
[all …]
Danv_allocator.c935 const struct anv_physical_device *physical_device = in anv_scratch_pool_alloc() local
937 const struct gen_device_info *devinfo = &physical_device->info; in anv_scratch_pool_alloc()
954 const unsigned subslices = MAX2(physical_device->subslice_total, 1); in anv_scratch_pool_alloc()
DgenX_pipeline.c1539 const struct anv_physical_device *physical_device = local
1541 const struct gen_device_info *devinfo = &physical_device->info;
1603 const uint32_t subslices = MAX2(physical_device->subslice_total, 1);
/external/vulkan-validation-layers/tests/layers/
Dwrap_objects.h52 static inline VkPhysicalDevice unwrap_phys_dev(const VkPhysicalDevice physical_device, wrapped_phy… in unwrap_phys_dev() argument
53 *phys_dev = reinterpret_cast<wrapped_phys_dev_obj *> (physical_device); in unwrap_phys_dev()
/external/vulkan-validation-layers/loader/
Dunknown_ext_chain.c37 VKAPI_ATTR void VKAPI_CALL vkPhysDevExtTramp##num(VkPhysicalDevice physical_device) { \
39 disp = loader_get_instance_dispatch(physical_device); \
40 disp->phys_dev_ext[num](loader_unwrap_physical_device(physical_device)); \
45 …VKAPI_ATTR void VKAPI_CALL vkPhysDevExtTermin##num(VkPhysicalDevice physical_device) { …
46 …r_physical_device_term *phys_dev_term = (struct loader_physical_device_term *)physical_device; \
Dloader.h429 VkPhysicalDevice physical_device, const char *lib_name,
/external/mesa3d/src/vulkan/wsi/
Dwsi_common_wayland.c62 VkPhysicalDevice physical_device; member
83 display->wsi_wl->cbs->get_phys_device_format_properties(display->wsi_wl->physical_device, in wsi_wl_display_add_vk_format()
776 VkPhysicalDevice physical_device, in wsi_wl_init_wsi() argument
789 wsi->physical_device = physical_device; in wsi_wl_init_wsi()
Dwsi_common.h146 VkPhysicalDevice physical_device,
/external/vulkan-validation-layers/layers/
Dobject_tracker.h92 VkPhysicalDevice physical_device; member
118 physical_device(nullptr), in layer_data()
Dobject_tracker_utils.cpp90 …_data *instance_data = GetLayerDataPtr(get_dispatch_key(device_data->physical_device), layer_data_… in ValidateQueueFlags()
346 VkPhysicalDevice physical_device = reinterpret_cast<VkPhysicalDevice>(pNode->handle); in DestroyInstance() local
348 …DestroyObject(instance, physical_device, kVulkanObjectTypePhysicalDevice, nullptr, VALIDATION_ERRO… in DestroyInstance()
663 device_data->physical_device = physicalDevice; in CreateDevice()

12