Lines Matching refs:pdevice

540                                   struct v3dv_physical_device *pdevice)
543 pdevice->display_fd = create_display_fd_wayland(NULL);
547 if (pdevice->display_fd == -1)
548 pdevice->display_fd = create_display_fd_xcb(NULL);
552 if (pdevice->display_fd == - 1 && pdevice->master_fd >= 0)
553 pdevice->display_fd = dup(pdevice->master_fd);
564 struct v3dv_physical_device *pdevice,
574 pdevice->display_fd = create_display_fd_xcb(surface);
580 pdevice->display_fd = create_display_fd_wayland(surface);
585 pdevice->master_fd >= 0) {
586 pdevice->display_fd = dup(pdevice->master_fd);
597 struct v3dv_physical_device *pdevice,
601 mtx_lock(&pdevice->mutex);
603 if (pdevice->display_fd != -1)
611 acquire_display_device_surface(instance, pdevice, surface);
613 acquire_display_device_no_surface(instance, pdevice);
615 if (pdevice->display_fd == -1)
620 mtx_unlock(&pdevice->mutex);
1377 V3DV_FROM_HANDLE(v3dv_physical_device, pdevice, physicalDevice);
1533 .vendorID = v3dv_physical_device_vendor_id(pdevice),
1534 .deviceID = v3dv_physical_device_device_id(pdevice),
1541 "%s", pdevice->name);
1543 pdevice->pipeline_cache_uuid, VK_UUID_SIZE);
1550 V3DV_FROM_HANDLE(v3dv_physical_device, pdevice, physicalDevice);
1566 (UINT32_MAX / v3dv_X(pdevice, max_descriptor_bo_size)());
1652 memcpy(vk11.deviceUUID, pdevice->device_uuid, VK_UUID_SIZE);
1653 memcpy(vk11.driverUUID, pdevice->driver_uuid, VK_UUID_SIZE);
1695 props->hasPrimary = pdevice->has_primary;
1697 props->primaryMajor = (int64_t) major(pdevice->primary_devid);
1698 props->primaryMinor = (int64_t) minor(pdevice->primary_devid);
1700 props->hasRender = pdevice->has_render;
1702 props->renderMajor = (int64_t) major(pdevice->render_devid);
1703 props->renderMinor = (int64_t) minor(pdevice->render_devid);
1852 drmSyncobjDestroy(queue->device->pdevice->render_fd,
1877 int ret = drmSyncobjCreate(device->pdevice->render_fd,
1965 device->pdevice = physical_device;
2151 int render_fd = device->pdevice->render_fd;
2168 *bo = v3dv_device_lookup_bo(device->pdevice, handle);
2200 struct v3dv_physical_device *pdevice = &device->instance->physicalDevice;
2201 if (unlikely(pdevice->display_fd < 0)) {
2202 result = v3dv_physical_device_acquire_display(instance, pdevice, NULL);
2206 assert(pdevice->display_fd != -1);
2210 int display_fd = pdevice->display_fd;
2271 struct v3dv_physical_device *pdevice = &device->instance->physicalDevice;
2283 assert(pAllocateInfo->memoryTypeIndex < pdevice->memory.memoryTypeCount);
2284 mem->type = &pdevice->memory.memoryTypes[pAllocateInfo->memoryTypeIndex];
2703 struct v3dv_physical_device *pdevice = &device->instance->physicalDevice;
2708 (1 << pdevice->memory.memoryTypeCount) - 1;
2728 ret = drmPrimeHandleToFD(device->pdevice->render_fd,