/third_party/mesa3d/src/tool/pps/ |
H A D | pps_driver.cc | 69 Driver *Driver::get_driver(DrmDevice &&drm_device) in get_driver() argument 72 auto it = supported_drivers.find(drm_device.name); in get_driver() 74 PERFETTO_FATAL("Failed to find a driver for DRM device %s", drm_device.name.c_str()); in get_driver() 78 driver->drm_device = std::move(drm_device); in get_driver()
|
H A D | pps_datasource.cc | 41 for (auto &drm_device : drm_devices) { in OnSetup() 42 if (drm_device.name != driver_name) in OnSetup() 45 if (auto driver = Driver::get_driver(std::move(drm_device))) { in OnSetup() 48 PPS_LOG_ERROR("Failed to initialize %s driver", driver->drm_device.name.c_str()); in OnSetup() 186 add_group(desc, group, driver.drm_device.name, driver.drm_device.gpu_num); in add_descriptors() 286 event->set_gpu_id(driver->drm_device.gpu_num); in trace() 334 event->set_gpu_id(driver->drm_device.gpu_num); in trace()
|
H A D | pps_driver.h | 33 static Driver *get_driver(DrmDevice &&drm_device); 84 DrmDevice drm_device; member in pps::Driver
|
H A D | pps_device.cc | 81 if (auto drm_device = create_drm_device(fd, gpu_num)) { in create_all() 82 ret.emplace_back(std::move(drm_device.value())); in create_all()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_simulator_validate.h | 80 struct drm_device { struct 86 struct drm_device *dev; 107 drm_gem_cma_create(struct drm_device *dev, size_t size); 110 vc4_cl_validate(struct drm_device *dev, struct vc4_exec_info *exec);
|
H A D | vc4_simulator.c | 89 struct drm_device dev; 230 drm_gem_cma_create(struct drm_device *dev, size_t size) in drm_gem_cma_create() 372 struct drm_device *dev = &file->dev; in vc4_simulator_submit_cl_ioctl()
|
/third_party/mesa3d/src/intel/ds/ |
H A D | intel_pps_driver.cc | 76 this->clock_id = intel_pps_clock_id(drm_device.gpu_num); in init_perfcnt() 80 perf = std::make_unique<IntelPerf>(drm_device.fd); in init_perfcnt() 164 gpu_timestamp_udw = intel_read_gpu_timestamp(drm_device.fd) & ~perf->cfg->oa_timestamp_mask; in enable_perfcnt() 217 gpu_timestamp_udw = intel_read_gpu_timestamp(drm_device.fd) & ~perf->cfg->oa_timestamp_mask; in parse_perf_records() 333 intel_read_gpu_timestamp(drm_device.fd)); in gpu_timestamp()
|
/third_party/mesa3d/src/gallium/drivers/vc4/kernel/ |
H A D | vc4_drv.h | 159 vc4_validate_bin_cl(struct drm_device *dev, 165 vc4_validate_shader_recs(struct drm_device *dev, struct vc4_exec_info *exec); 173 int vc4_get_rcl(struct drm_device *dev, struct vc4_exec_info *exec);
|
H A D | vc4_gem.c | 33 vc4_get_bcl(struct drm_device *dev, struct vc4_exec_info *exec) in vc4_get_bcl() 140 vc4_cl_validate(struct drm_device *dev, struct vc4_exec_info *exec) in vc4_cl_validate()
|
H A D | vc4_validate.c | 338 struct drm_device *dev = exec->exec_bo->base.dev; in validate_tile_binning_config() 472 vc4_validate_bin_cl(struct drm_device *dev, in vc4_validate_bin_cl() 732 validate_gl_shader_rec(struct drm_device *dev, in validate_gl_shader_rec() 910 vc4_validate_shader_recs(struct drm_device *dev, in vc4_validate_shader_recs()
|
H A D | vc4_render_cl.c | 247 static int vc4_create_rcl_bo(struct drm_device *dev, struct vc4_exec_info *exec, in vc4_create_rcl_bo() 581 int vc4_get_rcl(struct drm_device *dev, struct vc4_exec_info *exec) in vc4_get_rcl()
|
/third_party/mesa3d/src/vulkan/device-select-layer/ |
H A D | device_select_layer.c | 242 struct device_pci_info *drm_device, in fill_drm_device_info() 257 drm_device->cpu_device = properties.properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_CPU; in fill_drm_device_info() 258 drm_device->dev_info.vendor_id = properties.properties.vendorID; in fill_drm_device_info() 259 drm_device->dev_info.device_id = properties.properties.deviceID; in fill_drm_device_info() 261 drm_device->has_bus_info = true; in fill_drm_device_info() 262 drm_device->bus_info.domain = ext_pci_properties.pciDomain; in fill_drm_device_info() 263 drm_device->bus_info.bus = ext_pci_properties.pciBus; in fill_drm_device_info() 264 drm_device->bus_info.dev = ext_pci_properties.pciDevice; in fill_drm_device_info() 265 drm_device->bus_info.func = ext_pci_properties.pciFunction; in fill_drm_device_info() 267 return drm_device in fill_drm_device_info() 241 fill_drm_device_info(const struct instance_info *info, struct device_pci_info *drm_device, VkPhysicalDevice device) fill_drm_device_info() argument [all...] |
/third_party/mesa3d/src/panfrost/ds/ |
H A D | pan_pps_driver.cc | 95 dev = std::make_unique<PanfrostDevice>(drm_device.fd); in init_perfcnt()
|
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_drm.c | 625 drmDevicePtr drm_device) in tu_drm_device_init() 627 const char *primary_path = drm_device->nodes[DRM_NODE_PRIMARY]; in tu_drm_device_init() 628 const char *path = drm_device->nodes[DRM_NODE_RENDER]; in tu_drm_device_init() 623 tu_drm_device_init(struct tu_physical_device *device, struct tu_instance *instance, drmDevicePtr drm_device) tu_drm_device_init() argument
|
/third_party/mesa3d/src/panfrost/vulkan/ |
H A D | panvk_device.c | 251 drmDevicePtr drm_device) in panvk_physical_device_init() 253 const char *path = drm_device->nodes[DRM_NODE_RENDER]; in panvk_physical_device_init() 316 master_fd = open(drm_device->nodes[DRM_NODE_PRIMARY], O_RDWR | O_CLOEXEC); in panvk_physical_device_init() 249 panvk_physical_device_init(struct panvk_physical_device *device, struct panvk_instance *instance, drmDevicePtr drm_device) panvk_physical_device_init() argument
|
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_device.c | 659 radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm_device, in radv_physical_device_try_create() argument 667 assert(drm_device == NULL); in radv_physical_device_try_create() 669 if (drm_device) { in radv_physical_device_try_create() 670 const char *path = drm_device->nodes[DRM_NODE_RENDER]; in radv_physical_device_try_create() 724 if (drm_device) { in radv_physical_device_try_create() 742 if (drm_device && instance->vk.enabled_extensions.KHR_display) { in radv_physical_device_try_create() 743 master_fd = open(drm_device->nodes[DRM_NODE_PRIMARY], O_RDWR | O_CLOEXEC); in radv_physical_device_try_create() 860 if (drm_device) { in radv_physical_device_try_create() 863 device->available_nodes = drm_device->available_nodes; in radv_physical_device_try_create() 864 device->bus_info = *drm_device in radv_physical_device_try_create() [all...] |
/third_party/mesa3d/src/freedreno/ds/ |
H A D | fd_pps_driver.cc | 440 dev = fd_device_new(drm_device.fd); in init_perfcnt()
|
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_device.c | 736 drmDevicePtr drm_device, in anv_physical_device_try_create() 739 const char *primary_path = drm_device->nodes[DRM_NODE_PRIMARY]; in anv_physical_device_try_create() 740 const char *path = drm_device->nodes[DRM_NODE_RENDER]; in anv_physical_device_try_create() 735 anv_physical_device_try_create(struct anv_instance *instance, drmDevicePtr drm_device, struct anv_physical_device **device_out) anv_physical_device_try_create() argument
|