Lines Matching refs:pdevice
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()
1073 list_addtail(&pdevice->link, &instance->physical_devices); in radv_enumerate_physical_devices()
1094 list_for_each_entry(struct radv_physical_device, pdevice, &instance->physical_devices, link) in radv_EnumeratePhysicalDevices()
1098 *i = radv_physical_device_to_handle(pdevice); in radv_EnumeratePhysicalDevices()
1117 list_for_each_entry(struct radv_physical_device, pdevice, &instance->physical_devices, link) in radv_EnumeratePhysicalDeviceGroups()
1123 p->physicalDevices[0] = radv_physical_device_to_handle(pdevice); in radv_EnumeratePhysicalDeviceGroups()
1134 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); in radv_GetPhysicalDeviceFeatures()
1158 .textureCompressionETC2 = radv_device_supports_etc(pdevice), in radv_GetPhysicalDeviceFeatures()
1181 .sparseResidencyBuffer = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceFeatures()
1182 .sparseResidencyImage2D = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceFeatures()
1183 .sparseResidencyAliased = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceFeatures()
1192 radv_get_physical_device_features_1_1(struct radv_physical_device *pdevice, in radv_get_physical_device_features_1_1() argument
1200 f->storageInputOutput16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_features_1_1()
1212 radv_get_physical_device_features_1_2(struct radv_physical_device *pdevice, in radv_get_physical_device_features_1_2() argument
1224 f->shaderFloat16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_features_1_2()
1250 f->scalarBlockLayout = pdevice->rad_info.chip_class >= GFX7; in radv_get_physical_device_features_1_2()
1271 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); in radv_GetPhysicalDeviceFeatures2()
1277 radv_get_physical_device_features_1_1(pdevice, &core_1_1); in radv_GetPhysicalDeviceFeatures2()
1282 radv_get_physical_device_features_1_2(pdevice, &core_1_2); in radv_GetPhysicalDeviceFeatures2()
1312 features->geometryStreams = !pdevice->use_ngg_streamout; in radv_GetPhysicalDeviceFeatures2()
1371 features->indexTypeUint8 = pdevice->rad_info.chip_class >= GFX8; in radv_GetPhysicalDeviceFeatures2()
1384 features->shaderDeviceClock = pdevice->rad_info.chip_class >= GFX8; in radv_GetPhysicalDeviceFeatures2()
1403 features->deviceCoherentMemory = pdevice->rad_info.has_l2_uncached; in radv_GetPhysicalDeviceFeatures2()
1416 features->stippledBresenhamLines = pdevice->rad_info.chip_class != GFX9; in radv_GetPhysicalDeviceFeatures2()
1473 features->shaderSharedFloat32AtomicAdd = pdevice->rad_info.chip_class >= GFX8; in radv_GetPhysicalDeviceFeatures2()
1582 bool has_shader_buffer_float_minmax = ((pdevice->rad_info.chip_class == GFX6 || in radv_GetPhysicalDeviceFeatures2()
1583 pdevice->rad_info.chip_class == GFX7) && in radv_GetPhysicalDeviceFeatures2()
1584 !pdevice->use_llvm) || in radv_GetPhysicalDeviceFeatures2()
1585 pdevice->rad_info.chip_class >= GFX10; in radv_GetPhysicalDeviceFeatures2()
1586 bool has_shader_image_float_minmax = pdevice->rad_info.chip_class != GFX8 && in radv_GetPhysicalDeviceFeatures2()
1587 pdevice->rad_info.chip_class != GFX9; in radv_GetPhysicalDeviceFeatures2()
1661 radv_uniform_buffer_offset_alignment(const struct radv_physical_device *pdevice) in radv_uniform_buffer_offset_alignment() argument
1664 driQueryOptioni(&pdevice->instance->dri_options, "radv_override_uniform_offset_alignment"); in radv_uniform_buffer_offset_alignment()
1681 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); in radv_GetPhysicalDeviceProperties()
1738 .maxComputeSharedMemorySize = pdevice->rad_info.chip_class >= GFX7 ? 65536 : 32768, in radv_GetPhysicalDeviceProperties()
1755 .minUniformBufferOffsetAlignment = radv_uniform_buffer_offset_alignment(pdevice), in radv_GetPhysicalDeviceProperties()
1779 .timestampPeriod = 1000000.0 / pdevice->rad_info.clock_crystal_freq, in radv_GetPhysicalDeviceProperties()
1797 if (pdevice->rad_info.has_dedicated_vram || pdevice->instance->report_apu_as_dgpu) { in radv_GetPhysicalDeviceProperties()
1807 .deviceID = pdevice->rad_info.pci_id, in radv_GetPhysicalDeviceProperties()
1812 .residencyNonResidentStrict = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceProperties()
1813 .residencyStandard2DBlockShape = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceProperties()
1817 strcpy(pProperties->deviceName, pdevice->name); in radv_GetPhysicalDeviceProperties()
1818 memcpy(pProperties->pipelineCacheUUID, pdevice->cache_uuid, VK_UUID_SIZE); in radv_GetPhysicalDeviceProperties()
1822 radv_get_physical_device_properties_1_1(struct radv_physical_device *pdevice, in radv_get_physical_device_properties_1_1() argument
1827 memcpy(p->deviceUUID, pdevice->device_uuid, VK_UUID_SIZE); in radv_get_physical_device_properties_1_1()
1828 memcpy(p->driverUUID, pdevice->driver_uuid, VK_UUID_SIZE); in radv_get_physical_device_properties_1_1()
1852 radv_get_physical_device_properties_1_2(struct radv_physical_device *pdevice, in radv_get_physical_device_properties_1_2() argument
1860 radv_get_compiler_string(pdevice)); in radv_get_physical_device_properties_1_2()
1871 if (pdevice->rad_info.has_packed_math_16bit) { in radv_get_physical_device_properties_1_2()
1887 p->shaderDenormPreserveFloat32 = !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
1889 p->shaderRoundingModeRTZFloat32 = !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
1893 pdevice->rad_info.has_packed_math_16bit && !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
1894 p->shaderDenormPreserveFloat16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_properties_1_2()
1895 p->shaderRoundingModeRTEFloat16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_properties_1_2()
1896 p->shaderRoundingModeRTZFloat16 = pdevice->rad_info.has_packed_math_16bit && !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
1897 p->shaderSignedZeroInfNanPreserveFloat16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_properties_1_2()
1899 p->shaderDenormFlushToZeroFloat64 = pdevice->rad_info.chip_class >= GFX8 && !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
1900 p->shaderDenormPreserveFloat64 = pdevice->rad_info.chip_class >= GFX8; in radv_get_physical_device_properties_1_2()
1901 p->shaderRoundingModeRTEFloat64 = pdevice->rad_info.chip_class >= GFX8; in radv_get_physical_device_properties_1_2()
1902 p->shaderRoundingModeRTZFloat64 = pdevice->rad_info.chip_class >= GFX8 && !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
1903 p->shaderSignedZeroInfNanPreserveFloat64 = pdevice->rad_info.chip_class >= GFX8; in radv_get_physical_device_properties_1_2()
1950 p->filterMinmaxImageComponentMapping = pdevice->rad_info.chip_class >= GFX9; in radv_get_physical_device_properties_1_2()
1962 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); in radv_GetPhysicalDeviceProperties2()
1968 radv_get_physical_device_properties_1_1(pdevice, &core_1_1); in radv_GetPhysicalDeviceProperties2()
1973 radv_get_physical_device_properties_1_2(pdevice, &core_1_2); in radv_GetPhysicalDeviceProperties2()
2006 properties->shaderEngineCount = pdevice->rad_info.max_se; in radv_GetPhysicalDeviceProperties2()
2007 properties->shaderArraysPerEngineCount = pdevice->rad_info.max_sa_per_se; in radv_GetPhysicalDeviceProperties2()
2008 properties->computeUnitsPerShaderArray = pdevice->rad_info.min_good_cu_per_sa; in radv_GetPhysicalDeviceProperties2()
2009 properties->simdPerComputeUnit = pdevice->rad_info.num_simd_per_compute_unit; in radv_GetPhysicalDeviceProperties2()
2010 properties->wavefrontsPerSimd = pdevice->rad_info.max_wave64_per_simd; in radv_GetPhysicalDeviceProperties2()
2014 properties->sgprsPerSimd = pdevice->rad_info.num_physical_sgprs_per_simd; in radv_GetPhysicalDeviceProperties2()
2015 properties->minSgprAllocation = pdevice->rad_info.min_sgpr_alloc; in radv_GetPhysicalDeviceProperties2()
2016 properties->maxSgprAllocation = pdevice->rad_info.max_sgpr_alloc; in radv_GetPhysicalDeviceProperties2()
2017 properties->sgprAllocationGranularity = pdevice->rad_info.sgpr_alloc_granularity; in radv_GetPhysicalDeviceProperties2()
2020 properties->vgprsPerSimd = pdevice->rad_info.num_physical_wave64_vgprs_per_simd; in radv_GetPhysicalDeviceProperties2()
2021 properties->minVgprAllocation = pdevice->rad_info.min_wave64_vgpr_alloc; in radv_GetPhysicalDeviceProperties2()
2022 properties->maxVgprAllocation = pdevice->rad_info.max_vgpr_alloc; in radv_GetPhysicalDeviceProperties2()
2023 properties->vgprAllocationGranularity = pdevice->rad_info.wave64_vgpr_alloc_granularity; in radv_GetPhysicalDeviceProperties2()
2031 properties->activeComputeUnitCount = pdevice->rad_info.num_good_compute_units; in radv_GetPhysicalDeviceProperties2()
2058 properties->pciDomain = pdevice->bus_info.domain; in radv_GetPhysicalDeviceProperties2()
2059 properties->pciBus = pdevice->bus_info.bus; in radv_GetPhysicalDeviceProperties2()
2060 properties->pciDevice = pdevice->bus_info.dev; in radv_GetPhysicalDeviceProperties2()
2061 properties->pciFunction = pdevice->bus_info.func; in radv_GetPhysicalDeviceProperties2()
2074 properties->transformFeedbackQueries = !pdevice->use_ngg_streamout; in radv_GetPhysicalDeviceProperties2()
2075 properties->transformFeedbackStreamsLinesTriangles = !pdevice->use_ngg_streamout; in radv_GetPhysicalDeviceProperties2()
2121 if (pdevice->rad_info.chip_class >= GFX10) { in radv_GetPhysicalDeviceProperties2()
2196 if (pdevice->available_nodes & (1 << DRM_NODE_PRIMARY)) { in radv_GetPhysicalDeviceProperties2()
2198 props->primaryMajor = (int64_t)major(pdevice->primary_devid); in radv_GetPhysicalDeviceProperties2()
2199 props->primaryMinor = (int64_t)minor(pdevice->primary_devid); in radv_GetPhysicalDeviceProperties2()
2203 if (pdevice->available_nodes & (1 << DRM_NODE_RENDER)) { in radv_GetPhysicalDeviceProperties2()
2205 props->renderMajor = (int64_t)major(pdevice->render_devid); in radv_GetPhysicalDeviceProperties2()
2206 props->renderMinor = (int64_t)minor(pdevice->render_devid); in radv_GetPhysicalDeviceProperties2()
2222 bool accel = pdevice->rad_info.has_accelerated_dot_product; in radv_GetPhysicalDeviceProperties2()
2283 radv_get_physical_device_queue_family_properties(struct radv_physical_device *pdevice, in radv_get_physical_device_queue_family_properties() argument
2289 if (pdevice->rad_info.num_rings[RING_COMPUTE] > 0 && in radv_get_physical_device_queue_family_properties()
2290 !(pdevice->instance->debug_flags & RADV_DEBUG_NO_COMPUTE_QUEUE)) in radv_get_physical_device_queue_family_properties()
2313 if (pdevice->rad_info.num_rings[RING_COMPUTE] > 0 && in radv_get_physical_device_queue_family_properties()
2314 !(pdevice->instance->debug_flags & RADV_DEBUG_NO_COMPUTE_QUEUE)) { in radv_get_physical_device_queue_family_properties()
2319 .queueCount = pdevice->rad_info.num_rings[RING_COMPUTE], in radv_get_physical_device_queue_family_properties()
2333 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); in radv_GetPhysicalDeviceQueueFamilyProperties()
2335 radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL); in radv_GetPhysicalDeviceQueueFamilyProperties()
2343 radv_get_physical_device_queue_family_properties(pdevice, pCount, properties); in radv_GetPhysicalDeviceQueueFamilyProperties()
2358 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); in radv_GetPhysicalDeviceQueueFamilyProperties2()
2360 radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL); in radv_GetPhysicalDeviceQueueFamilyProperties2()
2368 radv_get_physical_device_queue_family_properties(pdevice, pCount, properties); in radv_GetPhysicalDeviceQueueFamilyProperties2()
7683 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice); in radv_GetPhysicalDeviceExternalSemaphoreProperties()
7686 if (type == VK_SEMAPHORE_TYPE_TIMELINE && pdevice->rad_info.has_timeline_syncobj && in radv_GetPhysicalDeviceExternalSemaphoreProperties()