Lines Matching refs:pdevice
300 radv_get_compiler_string(struct radv_physical_device *pdevice)
302 if (!pdevice->use_llvm) {
307 if (driQueryOptionb(&pdevice->instance->dri_options, "radv_report_llvm9_version_string")) {
1010 list_for_each_entry_safe(struct radv_physical_device, pdevice, &instance->physical_devices, link)
1012 radv_physical_device_destroy(pdevice);
1039 struct radv_physical_device *pdevice;
1041 result = radv_physical_device_try_create(instance, NULL, &pdevice);
1045 list_addtail(&pdevice->link, &instance->physical_devices);
1065 struct radv_physical_device *pdevice;
1066 result = radv_physical_device_try_create(instance, devices[i], &pdevice);
1077 list_addtail(&pdevice->link, &instance->physical_devices);
1098 list_for_each_entry(struct radv_physical_device, pdevice, &instance->physical_devices, link)
1102 *i = radv_physical_device_to_handle(pdevice);
1121 list_for_each_entry(struct radv_physical_device, pdevice, &instance->physical_devices, link)
1127 p->physicalDevices[0] = radv_physical_device_to_handle(pdevice);
1138 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
1162 .textureCompressionETC2 = radv_device_supports_etc(pdevice),
1185 .sparseResidencyBuffer = pdevice->rad_info.family >= CHIP_POLARIS10,
1186 .sparseResidencyImage2D = pdevice->rad_info.family >= CHIP_POLARIS10,
1187 .sparseResidencyAliased = pdevice->rad_info.family >= CHIP_POLARIS10,
1196 radv_get_physical_device_features_1_1(struct radv_physical_device *pdevice,
1204 f->storageInputOutput16 = pdevice->rad_info.has_packed_math_16bit;
1216 radv_get_physical_device_features_1_2(struct radv_physical_device *pdevice,
1228 f->shaderFloat16 = pdevice->rad_info.has_packed_math_16bit;
1254 f->scalarBlockLayout = pdevice->rad_info.chip_class >= GFX7;
1275 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
1281 radv_get_physical_device_features_1_1(pdevice, &core_1_1);
1286 radv_get_physical_device_features_1_2(pdevice, &core_1_2);
1316 features->geometryStreams = !pdevice->use_ngg_streamout;
1375 features->indexTypeUint8 = pdevice->rad_info.chip_class >= GFX8;
1388 features->shaderDeviceClock = pdevice->rad_info.chip_class >= GFX8;
1407 features->deviceCoherentMemory = pdevice->rad_info.has_l2_uncached;
1420 features->stippledBresenhamLines = pdevice->rad_info.chip_class != GFX9;
1477 features->shaderSharedFloat32AtomicAdd = pdevice->rad_info.chip_class >= GFX8;
1586 bool has_shader_buffer_float_minmax = ((pdevice->rad_info.chip_class == GFX6 ||
1587 pdevice->rad_info.chip_class == GFX7) &&
1588 !pdevice->use_llvm) ||
1589 pdevice->rad_info.chip_class >= GFX10;
1590 bool has_shader_image_float_minmax = pdevice->rad_info.chip_class != GFX8 &&
1591 pdevice->rad_info.chip_class != GFX9;
1665 radv_uniform_buffer_offset_alignment(const struct radv_physical_device *pdevice)
1668 driQueryOptioni(&pdevice->instance->dri_options, "radv_override_uniform_offset_alignment");
1685 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
1742 .maxComputeSharedMemorySize = pdevice->rad_info.chip_class >= GFX7 ? 65536 : 32768,
1759 .minUniformBufferOffsetAlignment = radv_uniform_buffer_offset_alignment(pdevice),
1783 .timestampPeriod = 1000000.0 / pdevice->rad_info.clock_crystal_freq,
1801 if (pdevice->rad_info.has_dedicated_vram || pdevice->instance->report_apu_as_dgpu) {
1811 .deviceID = pdevice->rad_info.pci_id,
1816 .residencyNonResidentStrict = pdevice->rad_info.family >= CHIP_POLARIS10,
1817 .residencyStandard2DBlockShape = pdevice->rad_info.family >= CHIP_POLARIS10,
1821 strcpy(pProperties->deviceName, pdevice->name);
1822 memcpy(pProperties->pipelineCacheUUID, pdevice->cache_uuid, VK_UUID_SIZE);
1826 radv_get_physical_device_properties_1_1(struct radv_physical_device *pdevice,
1831 memcpy(p->deviceUUID, pdevice->device_uuid, VK_UUID_SIZE);
1832 memcpy(p->driverUUID, pdevice->driver_uuid, VK_UUID_SIZE);
1856 radv_get_physical_device_properties_1_2(struct radv_physical_device *pdevice,
1864 radv_get_compiler_string(pdevice));
1875 if (pdevice->rad_info.has_packed_math_16bit) {
1891 p->shaderDenormPreserveFloat32 = !pdevice->use_llvm;
1893 p->shaderRoundingModeRTZFloat32 = !pdevice->use_llvm;
1897 pdevice->rad_info.has_packed_math_16bit && !pdevice->use_llvm;
1898 p->shaderDenormPreserveFloat16 = pdevice->rad_info.has_packed_math_16bit;
1899 p->shaderRoundingModeRTEFloat16 = pdevice->rad_info.has_packed_math_16bit;
1900 p->shaderRoundingModeRTZFloat16 = pdevice->rad_info.has_packed_math_16bit && !pdevice->use_llvm;
1901 p->shaderSignedZeroInfNanPreserveFloat16 = pdevice->rad_info.has_packed_math_16bit;
1903 p->shaderDenormFlushToZeroFloat64 = pdevice->rad_info.chip_class >= GFX8 && !pdevice->use_llvm;
1904 p->shaderDenormPreserveFloat64 = pdevice->rad_info.chip_class >= GFX8;
1905 p->shaderRoundingModeRTEFloat64 = pdevice->rad_info.chip_class >= GFX8;
1906 p->shaderRoundingModeRTZFloat64 = pdevice->rad_info.chip_class >= GFX8 && !pdevice->use_llvm;
1907 p->shaderSignedZeroInfNanPreserveFloat64 = pdevice->rad_info.chip_class >= GFX8;
1954 p->filterMinmaxImageComponentMapping = pdevice->rad_info.chip_class >= GFX9;
1966 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
1972 radv_get_physical_device_properties_1_1(pdevice, &core_1_1);
1977 radv_get_physical_device_properties_1_2(pdevice, &core_1_2);
2010 properties->shaderEngineCount = pdevice->rad_info.max_se;
2011 properties->shaderArraysPerEngineCount = pdevice->rad_info.max_sa_per_se;
2012 properties->computeUnitsPerShaderArray = pdevice->rad_info.min_good_cu_per_sa;
2013 properties->simdPerComputeUnit = pdevice->rad_info.num_simd_per_compute_unit;
2014 properties->wavefrontsPerSimd = pdevice->rad_info.max_wave64_per_simd;
2018 properties->sgprsPerSimd = pdevice->rad_info.num_physical_sgprs_per_simd;
2019 properties->minSgprAllocation = pdevice->rad_info.min_sgpr_alloc;
2020 properties->maxSgprAllocation = pdevice->rad_info.max_sgpr_alloc;
2021 properties->sgprAllocationGranularity = pdevice->rad_info.sgpr_alloc_granularity;
2024 properties->vgprsPerSimd = pdevice->rad_info.num_physical_wave64_vgprs_per_simd;
2025 properties->minVgprAllocation = pdevice->rad_info.min_wave64_vgpr_alloc;
2026 properties->maxVgprAllocation = pdevice->rad_info.max_vgpr_alloc;
2027 properties->vgprAllocationGranularity = pdevice->rad_info.wave64_vgpr_alloc_granularity;
2035 properties->activeComputeUnitCount = pdevice->rad_info.num_good_compute_units;
2062 properties->pciDomain = pdevice->bus_info.domain;
2063 properties->pciBus = pdevice->bus_info.bus;
2064 properties->pciDevice = pdevice->bus_info.dev;
2065 properties->pciFunction = pdevice->bus_info.func;
2078 properties->transformFeedbackQueries = !pdevice->use_ngg_streamout;
2079 properties->transformFeedbackStreamsLinesTriangles = !pdevice->use_ngg_streamout;
2125 if (pdevice->rad_info.chip_class >= GFX10) {
2200 if (pdevice->available_nodes & (1 << DRM_NODE_PRIMARY)) {
2202 props->primaryMajor = (int64_t)major(pdevice->primary_devid);
2203 props->primaryMinor = (int64_t)minor(pdevice->primary_devid);
2207 if (pdevice->available_nodes & (1 << DRM_NODE_RENDER)) {
2209 props->renderMajor = (int64_t)major(pdevice->render_devid);
2210 props->renderMinor = (int64_t)minor(pdevice->render_devid);
2226 bool accel = pdevice->rad_info.has_accelerated_dot_product;
2287 radv_get_physical_device_queue_family_properties(struct radv_physical_device *pdevice,
2293 if (pdevice->rad_info.num_rings[RING_COMPUTE] > 0 &&
2294 !(pdevice->instance->debug_flags & RADV_DEBUG_NO_COMPUTE_QUEUE))
2317 if (pdevice->rad_info.num_rings[RING_COMPUTE] > 0 &&
2318 !(pdevice->instance->debug_flags & RADV_DEBUG_NO_COMPUTE_QUEUE)) {
2323 .queueCount = pdevice->rad_info.num_rings[RING_COMPUTE],
2337 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
2339 radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL);
2347 radv_get_physical_device_queue_family_properties(pdevice, pCount, properties);
2362 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
2364 radv_get_physical_device_queue_family_properties(pdevice, pCount, NULL);
2372 radv_get_physical_device_queue_family_properties(pdevice, pCount, properties);
7687 RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
7690 if (type == VK_SEMAPHORE_TYPE_TIMELINE && pdevice->rad_info.has_timeline_syncobj &&