/third_party/mesa3d/src/vulkan/util/ |
D | vk_physical_device.c | 30 vk_physical_device_init(struct vk_physical_device *pdevice, in vk_physical_device_init() argument 35 memset(pdevice, 0, sizeof(*pdevice)); in vk_physical_device_init() 36 vk_object_base_init(NULL, &pdevice->base, VK_OBJECT_TYPE_PHYSICAL_DEVICE); in vk_physical_device_init() 37 pdevice->instance = instance; in vk_physical_device_init() 40 pdevice->supported_extensions = *supported_extensions; in vk_physical_device_init() 42 pdevice->dispatch_table = *dispatch_table; in vk_physical_device_init() 46 &pdevice->dispatch_table, &vk_common_physical_device_entrypoints, false); in vk_physical_device_init() 77 VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice); in vk_common_EnumerateDeviceExtensionProperties() 81 if (!pdevice->supported_extensions.extensions[i]) in vk_common_EnumerateDeviceExtensionProperties() 101 VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice); in vk_common_GetPhysicalDeviceFeatures() [all …]
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_device.c | 399 LVP_FROM_HANDLE(lvp_physical_device, pdevice, physicalDevice); in lvp_GetPhysicalDeviceFeatures() 405 ….imageCubeArray = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CA… in lvp_GetPhysicalDeviceFeatures() 407 ….geometryShader = (pdevice->pscreen->get_shader_param(pdevice->pscreen, … in lvp_GetPhysicalDeviceFeatures() 408 ….tessellationShader = (pdevice->pscreen->get_shader_param(pdevice->pscreen, … in lvp_GetPhysicalDeviceFeatures() 409 ….sampleRateShading = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CA… in lvp_GetPhysicalDeviceFeatures() 410 ….dualSrcBlend = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CA… in lvp_GetPhysicalDeviceFeatures() 412 ….multiDrawIndirect = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CA… in lvp_GetPhysicalDeviceFeatures() 414 ….depthClamp = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CA… in lvp_GetPhysicalDeviceFeatures() 417 ….depthBounds = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CA… in lvp_GetPhysicalDeviceFeatures() 428 ….vertexPipelineStoresAndAtomics = (min_vertex_pipeline_param(pdevice->pscreen, PIPE_SHAD… in lvp_GetPhysicalDeviceFeatures() [all …]
|
D | lvp_wsi.c | 29 LVP_FROM_HANDLE(lvp_physical_device, pdevice, physicalDevice); in lvp_wsi_proc_addr() 32 func = vk_instance_dispatch_table_get(&pdevice->vk.instance->dispatch_table, pName); in lvp_wsi_proc_addr() 36 func = vk_physical_device_dispatch_table_get(&pdevice->vk.dispatch_table, pName); in lvp_wsi_proc_addr() 75 struct lvp_physical_device *pdevice = device->physical_device; in lvp_AcquireNextImage2KHR() local 77 VkResult result = wsi_common_acquire_next_image2(&pdevice->wsi_device, in lvp_AcquireNextImage2KHR()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_wsi.c | 36 V3DV_FROM_HANDLE(v3dv_physical_device, pdevice, physicalDevice); in v3dv_wsi_proc_addr() 39 func = vk_instance_dispatch_table_get(&pdevice->vk.instance->dispatch_table, pName); in v3dv_wsi_proc_addr() 43 func = vk_physical_device_dispatch_table_get(&pdevice->vk.dispatch_table, pName); in v3dv_wsi_proc_addr() 53 V3DV_FROM_HANDLE(v3dv_physical_device, pdevice, _pdevice); in v3dv_wsi_can_present_on_device() 62 ret = drmGetDevice2(pdevice->display_fd, 0, &display_devinfo); in v3dv_wsi_can_present_on_device() 157 struct v3dv_physical_device *pdevice = &instance->physicalDevice; in v3dv_CreateSwapchainKHR() local 161 v3dv_physical_device_acquire_display(instance, pdevice, surface); in v3dv_CreateSwapchainKHR() 196 struct v3dv_physical_device *pdevice = &device->instance->physicalDevice; in v3dv_AcquireNextImage2KHR() local 199 result = wsi_common_acquire_next_image2(&pdevice->wsi_device, _device, in v3dv_AcquireNextImage2KHR() 204 drmSyncobjSignal(pdevice->render_fd, &fence->sync, 1); in v3dv_AcquireNextImage2KHR() [all …]
|
D | v3dv_device.c | 512 struct v3dv_physical_device *pdevice) in acquire_display_device_no_surface() argument 515 pdevice->display_fd = create_display_fd_wayland(NULL); in acquire_display_device_no_surface() 519 if (pdevice->display_fd == -1) in acquire_display_device_no_surface() 520 pdevice->display_fd = create_display_fd_xcb(NULL); in acquire_display_device_no_surface() 524 if (pdevice->display_fd == - 1 && pdevice->master_fd >= 0) in acquire_display_device_no_surface() 525 pdevice->display_fd = dup(pdevice->master_fd); in acquire_display_device_no_surface() 536 struct v3dv_physical_device *pdevice, in acquire_display_device_surface() argument 546 pdevice->display_fd = create_display_fd_xcb(surface); in acquire_display_device_surface() 552 pdevice->display_fd = create_display_fd_wayland(surface); in acquire_display_device_surface() 557 pdevice->master_fd >= 0) { in acquire_display_device_surface() [all …]
|
D | v3dv_queue.c | 141 int ret = drmSyncobjWait(device->pdevice->render_fd, in gpu_queue_wait_idle() 520 int render_fd = device->pdevice->render_fd; in process_semaphores_to_signal() 559 int render_fd = device->pdevice->render_fd; in process_fence_to_signal() 650 int ret = v3dv_ioctl(device->pdevice->render_fd, in handle_cl_job() 681 int ret = v3dv_ioctl(device->pdevice->render_fd, in handle_tfu_job() 718 int ret = v3dv_ioctl(device->pdevice->render_fd, in handle_csd_job() 1072 int ret = drmSyncobjCreate(device->pdevice->render_fd, 0, &sem->sync); in v3dv_CreateSemaphore() 1144 int render_fd = device->pdevice->render_fd; in v3dv_ImportSemaphoreFdKHR() 1214 int render_fd = device->pdevice->render_fd; in v3dv_GetSemaphoreFdKHR() 1245 destroy_syncobj(device->pdevice->render_fd, &sem->sync); in v3dv_DestroySemaphore() [all …]
|
D | v3dv_formats.c | 91 image_format_features(struct v3dv_physical_device *pdevice, in image_format_features() argument 137 if (v3dv_X(pdevice, format_supports_blending)(v3dv_format)) in image_format_features() local 232 V3DV_FROM_HANDLE(v3dv_physical_device, pdevice, physicalDevice); in v3dv_GetPhysicalDeviceFormatProperties() 233 const struct v3dv_format *v3dv_format = v3dv_X(pdevice, get_format)(format); in v3dv_GetPhysicalDeviceFormatProperties() 237 image_format_features(pdevice, format, v3dv_format, VK_IMAGE_TILING_LINEAR), in v3dv_GetPhysicalDeviceFormatProperties() 239 image_format_features(pdevice, format, v3dv_format, VK_IMAGE_TILING_OPTIMAL), in v3dv_GetPhysicalDeviceFormatProperties()
|
D | v3dv_pipeline_cache.c | 300 struct disk_cache *disk_cache = device->pdevice->disk_cache; in v3dv_pipeline_cache_search_for_pipeline() 459 struct disk_cache *disk_cache = device->pdevice->disk_cache; in pipeline_cache_upload_shared_data() 621 struct v3dv_physical_device *pdevice = &device->instance->physicalDevice; in pipeline_cache_load() local 638 if (header.vendor_id != v3dv_physical_device_vendor_id(pdevice)) in pipeline_cache_load() 640 if (header.device_id != v3dv_physical_device_device_id(pdevice)) in pipeline_cache_load() 642 if (memcmp(header.uuid, pdevice->pipeline_cache_uuid, VK_UUID_SIZE) != 0) in pipeline_cache_load() 937 struct v3dv_physical_device *pdevice = &device->instance->physicalDevice; in v3dv_GetPipelineCacheData() local 945 .vendor_id = v3dv_physical_device_vendor_id(pdevice), in v3dv_GetPipelineCacheData() 946 .device_id = v3dv_physical_device_device_id(pdevice), in v3dv_GetPipelineCacheData() 948 memcpy(header.uuid, pdevice->pipeline_cache_uuid, VK_UUID_SIZE); in v3dv_GetPipelineCacheData()
|
D | v3dv_bo.c | 140 int ret = v3dv_ioctl(device->pdevice->render_fd, DRM_IOCTL_GEM_CLOSE, &c); in bo_free() 237 int ret = v3dv_ioctl(device->pdevice->render_fd, in v3dv_bo_alloc() 280 int ret = v3dv_ioctl(device->pdevice->render_fd, in v3dv_bo_map_unsynchronized() 288 device->pdevice->render_fd, map.offset); in v3dv_bo_map_unsynchronized() 310 return v3dv_ioctl(device->pdevice->render_fd, in v3dv_bo_wait()
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_nir.h | 44 anv_nir_ssbo_addr_format(const struct anv_physical_device *pdevice, in anv_nir_ssbo_addr_format() argument 47 if (pdevice->has_a64_buffer_access) { in anv_nir_ssbo_addr_format() 58 anv_nir_ubo_addr_format(const struct anv_physical_device *pdevice, in anv_nir_ubo_addr_format() argument 61 if (pdevice->has_a64_buffer_access) { in anv_nir_ubo_addr_format() 73 void anv_nir_apply_pipeline_layout(const struct anv_physical_device *pdevice, 79 void anv_nir_compute_push_layout(const struct anv_physical_device *pdevice,
|
D | anv_device.c | 686 anv_physical_device_init_queue_families(struct anv_physical_device *pdevice) in anv_physical_device_init_queue_families() argument 690 if (pdevice->engine_info) { in anv_physical_device_init_queue_families() 692 anv_gem_count_engines(pdevice->engine_info, I915_ENGINE_CLASS_RENDER); in anv_physical_device_init_queue_families() 699 pdevice->queue.families[family_count++] = (struct anv_queue_family) { in anv_physical_device_init_queue_families() 708 pdevice->queue.families[family_count++] = (struct anv_queue_family) { in anv_physical_device_init_queue_families() 716 pdevice->queue.families[family_count++] = (struct anv_queue_family) { in anv_physical_device_init_queue_families() 729 pdevice->queue.families[family_count++] = (struct anv_queue_family) { in anv_physical_device_init_queue_families() 739 pdevice->queue.family_count = family_count; in anv_physical_device_init_queue_families() 1141 list_for_each_entry_safe(struct anv_physical_device, pdevice, in anv_DestroyInstance() 1143 anv_physical_device_destroy(pdevice); in anv_DestroyInstance() [all …]
|
D | genX_query.c | 67 const struct anv_physical_device *pdevice = device->physical; in genX() local 122 &pdevice->perf->query_layout; in genX() 136 &pdevice->perf->query_layout; in genX() 140 n_passes = intel_perf_get_n_passes(pdevice->perf, in genX() 184 intel_perf_get_counters_passes(pdevice->perf, in genX() 190 intel_perf_get_n_passes(pdevice->perf, in genX() 333 const struct anv_physical_device *pdevice = device->physical; in khr_perf_query_ensure_relocs() local 337 pdevice->n_perf_query_commands * sizeof(*cmd_buffer->self_mod_locations), 8, in khr_perf_query_ensure_relocs() 550 const struct anv_physical_device *pdevice = device->physical; in genX() local 561 anv_perf_write_pass_results(pdevice->perf, pool, p, &result, pData); in genX() [all …]
|
D | anv_nir_apply_pipeline_layout.c | 38 const struct anv_physical_device *pdevice; member 457 anv_descriptor_type_size(state->pdevice, desc_type); in build_desc_addr() 727 !state->pdevice->info.has_lsc) in try_lower_direct_buffer_intrinsic() 1026 ASSERTED const bool use_bindless = state->pdevice->has_bindless_images; in lower_image_intrinsic() 1082 if (state->pdevice->use_softpin) { in lower_load_constant() 1248 assert(state->pdevice->info.verx10 == 70); in lower_gfx7_tex_swizzle() 1320 if (state->pdevice->info.verx10 == 70) in lower_tex() 1404 anv_nir_apply_pipeline_layout(const struct anv_physical_device *pdevice, in anv_nir_apply_pipeline_layout() argument 1413 .pdevice = pdevice, in anv_nir_apply_pipeline_layout() 1419 .ssbo_addr_format = anv_nir_ssbo_addr_format(pdevice, robust_buffer_access), in anv_nir_apply_pipeline_layout() [all …]
|
D | anv_pipeline.c | 93 const struct anv_physical_device *pdevice = device->physical; in anv_shader_compile_to_nir() local 94 const struct brw_compiler *compiler = pdevice->compiler; in anv_shader_compile_to_nir() 119 .float16 = pdevice->info.ver >= 8, in anv_shader_compile_to_nir() 120 .float32_atomic_add = pdevice->info.has_lsc, in anv_shader_compile_to_nir() 121 .float32_atomic_min_max = pdevice->info.ver >= 9, in anv_shader_compile_to_nir() 122 .float64 = pdevice->info.ver >= 8, in anv_shader_compile_to_nir() 123 .float64_atomic_min_max = pdevice->info.has_lsc, in anv_shader_compile_to_nir() 124 .fragment_shader_sample_interlock = pdevice->info.ver >= 9, in anv_shader_compile_to_nir() 125 .fragment_shader_pixel_interlock = pdevice->info.ver >= 9, in anv_shader_compile_to_nir() 133 .int8 = pdevice->info.ver >= 8, in anv_shader_compile_to_nir() [all …]
|
D | anv_descriptor_set.c | 188 anv_descriptor_type_size(const struct anv_physical_device *pdevice, in anv_descriptor_type_size() argument 196 return anv_descriptor_data_size(anv_descriptor_data_for_type(pdevice, type)); in anv_descriptor_type_size() 200 anv_descriptor_data_supports_bindless(const struct anv_physical_device *pdevice, in anv_descriptor_data_supports_bindless() argument 205 assert(pdevice->has_a64_buffer_access); in anv_descriptor_data_supports_bindless() 210 assert(pdevice->has_bindless_images || pdevice->has_bindless_samplers); in anv_descriptor_data_supports_bindless() 211 return sampler ? pdevice->has_bindless_samplers : in anv_descriptor_data_supports_bindless() 212 pdevice->has_bindless_images; in anv_descriptor_data_supports_bindless() 216 assert(pdevice->has_bindless_images); in anv_descriptor_data_supports_bindless() 224 anv_descriptor_supports_bindless(const struct anv_physical_device *pdevice, in anv_descriptor_supports_bindless() argument 228 return anv_descriptor_data_supports_bindless(pdevice, binding->data, in anv_descriptor_supports_bindless() [all …]
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_wsi.c | 36 VK_FROM_HANDLE(panvk_physical_device, pdevice, physicalDevice); in panvk_wsi_proc_addr() 37 return vk_instance_get_proc_addr_unchecked(&pdevice->instance->vk, pName); in panvk_wsi_proc_addr() 77 struct panvk_physical_device *pdevice = device->physical_device; in panvk_AcquireNextImage2KHR() local 80 wsi_common_acquire_next_image2(&pdevice->wsi_device, _device, in panvk_AcquireNextImage2KHR()
|
/third_party/mesa3d/src/freedreno/vulkan/ |
D | tu_wsi.c | 35 TU_FROM_HANDLE(tu_physical_device, pdevice, physicalDevice); in tu_wsi_proc_addr() 36 return vk_instance_get_proc_addr_unchecked(&pdevice->instance->vk, pName); in tu_wsi_proc_addr() 76 struct tu_physical_device *pdevice = device->physical_device; in tu_AcquireNextImage2KHR() local 79 &pdevice->wsi_device, _device, pAcquireInfo, pImageIndex); in tu_AcquireNextImage2KHR()
|
D | tu_device.c | 468 tu_get_physical_device_features_1_1(struct tu_physical_device *pdevice, in tu_get_physical_device_features_1_1() argument 471 features->storageBuffer16BitAccess = pdevice->info->a6xx.storage_16bit; in tu_get_physical_device_features_1_1() 486 tu_get_physical_device_features_1_2(struct tu_physical_device *pdevice, in tu_get_physical_device_features_1_2() argument 544 TU_FROM_HANDLE(tu_physical_device, pdevice, physicalDevice); in tu_GetPhysicalDeviceFeatures2() 597 tu_get_physical_device_features_1_1(pdevice, &core_1_1); in tu_GetPhysicalDeviceFeatures2() 602 tu_get_physical_device_features_1_2(pdevice, &core_1_2); in tu_GetPhysicalDeviceFeatures2() 759 tu_get_physical_device_properties_1_1(struct tu_physical_device *pdevice, in tu_get_physical_device_properties_1_1() argument 764 memcpy(p->deviceUUID, pdevice->device_uuid, VK_UUID_SIZE); in tu_get_physical_device_properties_1_1() 765 memcpy(p->driverUUID, pdevice->driver_uuid, VK_UUID_SIZE); in tu_get_physical_device_properties_1_1() 802 tu_get_physical_device_properties_1_2(struct tu_physical_device *pdevice, in tu_get_physical_device_properties_1_2() argument [all …]
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_cs.h | 115 radeon_set_sh_reg_idx(const struct radv_physical_device *pdevice, struct radeon_cmdbuf *cs, in radeon_set_sh_reg_idx() argument 123 if (pdevice->rad_info.chip_class < GFX10) in radeon_set_sh_reg_idx() 159 radeon_set_uconfig_reg_idx(const struct radv_physical_device *pdevice, struct radeon_cmdbuf *cs, in radeon_set_uconfig_reg_idx() argument 167 if (pdevice->rad_info.chip_class < GFX9 || in radeon_set_uconfig_reg_idx() 168 (pdevice->rad_info.chip_class == GFX9 && pdevice->rad_info.me_fw_version < 26)) in radeon_set_uconfig_reg_idx()
|
D | radv_wsi.c | 35 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); in radv_wsi_proc_addr() 36 return vk_instance_get_proc_addr_unchecked(&pdevice->instance->vk, pName); in radv_wsi_proc_addr() 80 struct radv_physical_device *pdevice = device->physical_device; in radv_AcquireNextImage2KHR() local 85 wsi_common_acquire_next_image2(&pdevice->wsi_device, _device, pAcquireInfo, pImageIndex); in radv_AcquireNextImage2KHR()
|
D | radv_device.c | 300 radv_get_compiler_string(struct radv_physical_device *pdevice) in radv_get_compiler_string() argument 302 if (!pdevice->use_llvm) { in radv_get_compiler_string() 307 if (driQueryOptionb(&pdevice->instance->dri_options, "radv_report_llvm9_version_string")) { in radv_get_compiler_string() 1006 list_for_each_entry_safe(struct radv_physical_device, pdevice, &instance->physical_devices, link) in radv_DestroyInstance() 1008 radv_physical_device_destroy(pdevice); in radv_DestroyInstance() 1035 struct radv_physical_device *pdevice; in radv_enumerate_physical_devices() local 1037 result = radv_physical_device_try_create(instance, NULL, &pdevice); in radv_enumerate_physical_devices() 1041 list_addtail(&pdevice->link, &instance->physical_devices); in radv_enumerate_physical_devices() 1061 struct radv_physical_device *pdevice; in radv_enumerate_physical_devices() local 1062 result = radv_physical_device_try_create(instance, devices[i], &pdevice); in radv_enumerate_physical_devices() [all …]
|
D | radv_shader.c | 1325 const struct radv_physical_device *pdevice = device->physical_device; in radv_postprocess_config() local 1340 assert((pdevice->rad_info.chip_class >= GFX10 && num_shared_vgprs % 8 == 0) || in radv_postprocess_config() 1341 (pdevice->rad_info.chip_class < GFX10 && num_shared_vgprs == 0)); in radv_postprocess_config() 1360 if (!pdevice->use_ngg_streamout) { in radv_postprocess_config() 1370 if (pdevice->rad_info.chip_class >= GFX10) { in radv_postprocess_config() 1382 config_out->rsrc1 |= S_00B228_MEM_ORDERED(pdevice->rad_info.chip_class >= GFX10); in radv_postprocess_config() 1385 assert(pdevice->rad_info.chip_class <= GFX8); in radv_postprocess_config() 1393 config_out->rsrc1 |= S_00B128_MEM_ORDERED(pdevice->rad_info.chip_class >= GFX10); in radv_postprocess_config() 1399 if (pdevice->rad_info.chip_class >= GFX9) { in radv_postprocess_config() 1404 if (pdevice->rad_info.chip_class >= GFX10) { in radv_postprocess_config() [all …]
|
/third_party/mesa3d/src/vulkan/wsi/ |
D | wsi_common.c | 42 VkPhysicalDevice pdevice, in wsi_device_init() argument 55 wsi->pdevice = pdevice; in wsi_device_init() 58 PFN_vk##func func = (PFN_vk##func)proc_addr(pdevice, "vk" #func) in wsi_device_init() 70 GetPhysicalDeviceProperties2(pdevice, &pdp2); in wsi_device_init() 75 GetPhysicalDeviceMemoryProperties(pdevice, &wsi->memory_props); in wsi_device_init() 76 GetPhysicalDeviceQueueFamilyProperties(pdevice, &wsi->queue_family_count, NULL); in wsi_device_init() 79 wsi->func = (PFN_vk##func)proc_addr(pdevice, "vk" #func) in wsi_device_init() 120 result = wsi_wl_init_wsi(wsi, alloc, pdevice); in wsi_device_init() 126 result = wsi_win32_init_wsi(wsi, alloc, pdevice); in wsi_device_init()
|
D | wsi_common.h | 102 VkPhysicalDevice pdevice; member 176 bool (*can_present_on_device)(VkPhysicalDevice pdevice, int fd); 218 VkPhysicalDevice pdevice,
|
D | wsi_common_display.c | 422 VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice); in wsi_GetPhysicalDeviceDisplayPropertiesKHR() 423 struct wsi_device *wsi_device = pdevice->wsi_device; in wsi_GetPhysicalDeviceDisplayPropertiesKHR() 468 VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice); in wsi_GetPhysicalDeviceDisplayProperties2KHR() 469 struct wsi_device *wsi_device = pdevice->wsi_device; in wsi_GetPhysicalDeviceDisplayProperties2KHR() 539 VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice); in wsi_GetPhysicalDeviceDisplayPlanePropertiesKHR() 540 struct wsi_device *wsi_device = pdevice->wsi_device; in wsi_GetPhysicalDeviceDisplayPlanePropertiesKHR() 564 VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice); in wsi_GetPhysicalDeviceDisplayPlaneProperties2KHR() 565 struct wsi_device *wsi_device = pdevice->wsi_device; in wsi_GetPhysicalDeviceDisplayPlaneProperties2KHR() 590 VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice); in wsi_GetDisplayPlaneSupportedDisplaysKHR() 591 struct wsi_device *wsi_device = pdevice->wsi_device; in wsi_GetDisplayPlaneSupportedDisplaysKHR() [all …]
|