Lines Matching refs:pdevice
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()
1176 struct anv_physical_device *pdevice; in anv_enumerate_physical_devices() local
1178 &pdevice); in anv_enumerate_physical_devices()
1189 list_addtail(&pdevice->link, &instance->physical_devices); in anv_enumerate_physical_devices()
1210 list_for_each_entry(struct anv_physical_device, pdevice, in anv_EnumeratePhysicalDevices()
1213 *i = anv_physical_device_to_handle(pdevice); in anv_EnumeratePhysicalDevices()
1233 list_for_each_entry(struct anv_physical_device, pdevice, in anv_EnumeratePhysicalDeviceGroups()
1238 p->physicalDevices[0] = anv_physical_device_to_handle(pdevice); in anv_EnumeratePhysicalDeviceGroups()
1253 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); in anv_GetPhysicalDeviceFeatures()
1257 isl_format_supports_sampling(&pdevice->info, in anv_GetPhysicalDeviceFeatures()
1275 .depthBounds = pdevice->info.ver >= 12, in anv_GetPhysicalDeviceFeatures()
1281 .textureCompressionETC2 = pdevice->info.ver >= 8 || in anv_GetPhysicalDeviceFeatures()
1282 pdevice->info.is_baytrail, in anv_GetPhysicalDeviceFeatures()
1300 .shaderFloat64 = pdevice->info.ver >= 8 && in anv_GetPhysicalDeviceFeatures()
1301 pdevice->info.has_64bit_float, in anv_GetPhysicalDeviceFeatures()
1302 .shaderInt64 = pdevice->info.ver >= 8, in anv_GetPhysicalDeviceFeatures()
1303 .shaderInt16 = pdevice->info.ver >= 8, in anv_GetPhysicalDeviceFeatures()
1304 .shaderResourceMinLod = pdevice->info.ver >= 9, in anv_GetPhysicalDeviceFeatures()
1311 pdevice->compiler->scalar_stage[MESA_SHADER_VERTEX] && in anv_GetPhysicalDeviceFeatures()
1312 pdevice->compiler->scalar_stage[MESA_SHADER_GEOMETRY]; in anv_GetPhysicalDeviceFeatures()
1314 struct vk_app_info *app_info = &pdevice->instance->vk.app_info; in anv_GetPhysicalDeviceFeatures()
1325 anv_get_physical_device_features_1_1(struct anv_physical_device *pdevice, in anv_get_physical_device_features_1_1() argument
1330 f->storageBuffer16BitAccess = pdevice->info.ver >= 8; in anv_get_physical_device_features_1_1()
1331 f->uniformAndStorageBuffer16BitAccess = pdevice->info.ver >= 8; in anv_get_physical_device_features_1_1()
1332 f->storagePushConstant16 = pdevice->info.ver >= 8; in anv_get_physical_device_features_1_1()
1345 anv_get_physical_device_features_1_2(struct anv_physical_device *pdevice, in anv_get_physical_device_features_1_2() argument
1352 f->storageBuffer8BitAccess = pdevice->info.ver >= 8; in anv_get_physical_device_features_1_2()
1353 f->uniformAndStorageBuffer8BitAccess = pdevice->info.ver >= 8; in anv_get_physical_device_features_1_2()
1354 f->storagePushConstant8 = pdevice->info.ver >= 8; in anv_get_physical_device_features_1_2()
1355 f->shaderBufferInt64Atomics = pdevice->info.ver >= 9 && in anv_get_physical_device_features_1_2()
1356 pdevice->use_softpin; in anv_get_physical_device_features_1_2()
1358 f->shaderFloat16 = pdevice->info.ver >= 8; in anv_get_physical_device_features_1_2()
1359 f->shaderInt8 = pdevice->info.ver >= 8; in anv_get_physical_device_features_1_2()
1361 bool descIndexing = pdevice->has_a64_buffer_access && in anv_get_physical_device_features_1_2()
1362 pdevice->has_bindless_images; in anv_get_physical_device_features_1_2()
1385 f->samplerFilterMinmax = pdevice->info.ver >= 9; in anv_get_physical_device_features_1_2()
1393 f->bufferDeviceAddress = pdevice->has_a64_buffer_access; in anv_get_physical_device_features_1_2()
1394 f->bufferDeviceAddressCaptureReplay = pdevice->has_a64_buffer_access; in anv_get_physical_device_features_1_2()
1408 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); in anv_GetPhysicalDeviceFeatures2()
1414 anv_get_physical_device_features_1_1(pdevice, &core_1_1); in anv_GetPhysicalDeviceFeatures2()
1419 anv_get_physical_device_features_1_2(pdevice, &core_1_2); in anv_GetPhysicalDeviceFeatures2()
1449 features->bufferDeviceAddress = pdevice->has_a64_buffer_access; in anv_GetPhysicalDeviceFeatures2()
1474 features->conditionalRendering = pdevice->info.verx10 >= 75; in anv_GetPhysicalDeviceFeatures2()
1475 features->inheritedConditionalRendering = pdevice->info.verx10 >= 75; in anv_GetPhysicalDeviceFeatures2()
1482 features->customBorderColors = pdevice->info.ver >= 8; in anv_GetPhysicalDeviceFeatures2()
1483 features->customBorderColorWithoutFormat = pdevice->info.ver >= 8; in anv_GetPhysicalDeviceFeatures2()
1497 features->fragmentShaderSampleInterlock = pdevice->info.ver >= 9; in anv_GetPhysicalDeviceFeatures2()
1498 features->fragmentShaderPixelInterlock = pdevice->info.ver >= 9; in anv_GetPhysicalDeviceFeatures2()
1547 features->smoothLines = pdevice->info.ver < 10; in anv_GetPhysicalDeviceFeatures2()
1609 features->shaderBufferFloat32AtomicAdd = pdevice->info.has_lsc; in anv_GetPhysicalDeviceFeatures2()
1610 features->shaderBufferFloat64Atomics = pdevice->info.has_lsc; in anv_GetPhysicalDeviceFeatures2()
1628 features->shaderBufferFloat32AtomicMinMax = pdevice->info.ver >= 9; in anv_GetPhysicalDeviceFeatures2()
1629 features->shaderBufferFloat64AtomicMinMax = pdevice->info.has_lsc; in anv_GetPhysicalDeviceFeatures2()
1633 features->shaderSharedFloat32AtomicMinMax = pdevice->info.ver >= 9; in anv_GetPhysicalDeviceFeatures2()
1793 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); in anv_GetPhysicalDeviceProperties()
1794 const struct intel_device_info *devinfo = &pdevice->info; in anv_GetPhysicalDeviceProperties()
1796 const uint32_t max_ssbos = pdevice->has_a64_buffer_access ? UINT16_MAX : 64; in anv_GetPhysicalDeviceProperties()
1798 pdevice->has_bindless_images ? UINT16_MAX : 128; in anv_GetPhysicalDeviceProperties()
1800 pdevice->has_bindless_samplers ? UINT16_MAX : in anv_GetPhysicalDeviceProperties()
1803 pdevice->has_bindless_images ? UINT16_MAX : MAX_IMAGES; in anv_GetPhysicalDeviceProperties()
1809 pdevice->has_bindless_images && pdevice->has_a64_buffer_access in anv_GetPhysicalDeviceProperties()
1815 isl_device_get_sample_counts(&pdevice->isl_dev); in anv_GetPhysicalDeviceProperties()
1826 .maxStorageBufferRange = pdevice->isl_dev.max_buffer_size, in anv_GetPhysicalDeviceProperties()
1943 .deviceID = pdevice->info.chipset_id, in anv_GetPhysicalDeviceProperties()
1944 .deviceType = pdevice->info.has_local_mem ? in anv_GetPhysicalDeviceProperties()
1952 "%s", pdevice->info.name); in anv_GetPhysicalDeviceProperties()
1954 pdevice->pipeline_cache_uuid, VK_UUID_SIZE); in anv_GetPhysicalDeviceProperties()
1958 anv_get_physical_device_properties_1_1(struct anv_physical_device *pdevice, in anv_get_physical_device_properties_1_1() argument
1963 memcpy(p->deviceUUID, pdevice->device_uuid, VK_UUID_SIZE); in anv_get_physical_device_properties_1_1()
1964 memcpy(p->driverUUID, pdevice->driver_uuid, VK_UUID_SIZE); in anv_get_physical_device_properties_1_1()
1972 if (pdevice->compiler->scalar_stage[stage]) in anv_get_physical_device_properties_1_1()
1975 if (pdevice->vk.supported_extensions.KHR_ray_tracing_pipeline) { in anv_get_physical_device_properties_1_1()
1990 if (pdevice->info.ver >= 8) { in anv_get_physical_device_properties_1_1()
1998 p->subgroupQuadOperationsInAllStages = pdevice->info.ver >= 8; in anv_get_physical_device_properties_1_1()
2012 anv_get_physical_device_properties_1_2(struct anv_physical_device *pdevice, in anv_get_physical_device_properties_1_2() argument
2028 if (pdevice->is_alpha) { in anv_get_physical_device_properties_1_2()
2058 p->shaderDenormPreserveFloat16 = pdevice->info.ver > 8; in anv_get_physical_device_properties_1_2()
2123 if (pdevice->info.ver >= 8) { in anv_get_physical_device_properties_1_2()
2133 p->filterMinmaxSingleComponentFormats = pdevice->info.ver >= 9; in anv_get_physical_device_properties_1_2()
2134 p->filterMinmaxImageComponentMapping = pdevice->info.ver >= 9; in anv_get_physical_device_properties_1_2()
2139 isl_device_get_sample_counts(&pdevice->isl_dev); in anv_get_physical_device_properties_1_2()
2146 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); in anv_GetPhysicalDeviceProperties2()
2153 anv_get_physical_device_properties_1_1(pdevice, &core_1_1); in anv_GetPhysicalDeviceProperties2()
2158 anv_get_physical_device_properties_1_2(pdevice, &core_1_2); in anv_GetPhysicalDeviceProperties2()
2246 props->hasPrimary = pdevice->has_master; in anv_GetPhysicalDeviceProperties2()
2247 props->primaryMajor = pdevice->master_major; in anv_GetPhysicalDeviceProperties2()
2248 props->primaryMinor = pdevice->master_minor; in anv_GetPhysicalDeviceProperties2()
2250 props->hasRender = pdevice->has_local; in anv_GetPhysicalDeviceProperties2()
2251 props->renderMajor = pdevice->local_major; in anv_GetPhysicalDeviceProperties2()
2252 props->renderMinor = pdevice->local_minor; in anv_GetPhysicalDeviceProperties2()
2302 properties->maxBufferSize = pdevice->isl_dev.max_buffer_size; in anv_GetPhysicalDeviceProperties2()
2309 properties->pciDomain = pdevice->pci_info.domain; in anv_GetPhysicalDeviceProperties2()
2310 properties->pciBus = pdevice->pci_info.bus; in anv_GetPhysicalDeviceProperties2()
2311 properties->pciDevice = pdevice->pci_info.device; in anv_GetPhysicalDeviceProperties2()
2312 properties->pciFunction = pdevice->pci_info.function; in anv_GetPhysicalDeviceProperties2()
2367 props->integerDotProduct4x8BitPackedUnsignedAccelerated = pdevice->info.ver >= 12; in anv_GetPhysicalDeviceProperties2()
2368 props->integerDotProduct4x8BitPackedSignedAccelerated = pdevice->info.ver >= 12; in anv_GetPhysicalDeviceProperties2()
2369 props->integerDotProduct4x8BitPackedMixedSignednessAccelerated = pdevice->info.ver >= 12; in anv_GetPhysicalDeviceProperties2()
2382 …props->integerDotProductAccumulatingSaturating4x8BitPackedUnsignedAccelerated = pdevice->info.ver … in anv_GetPhysicalDeviceProperties2()
2383 …props->integerDotProductAccumulatingSaturating4x8BitPackedSignedAccelerated = pdevice->info.ver >=… in anv_GetPhysicalDeviceProperties2()
2384 …erDotProductAccumulatingSaturating4x8BitPackedMixedSignednessAccelerated = pdevice->info.ver >= 12; in anv_GetPhysicalDeviceProperties2()
2404 props->maxComputeWorkgroupSubgroups = pdevice->info.max_cs_workgroup_threads; in anv_GetPhysicalDeviceProperties2()
2414 isl_device_get_sample_counts(&pdevice->isl_dev); in anv_GetPhysicalDeviceProperties2()
2472 props->transformFeedbackDraw = pdevice->info.verx10 >= 75; in anv_GetPhysicalDeviceProperties2()
2508 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); in anv_GetPhysicalDeviceQueueFamilyProperties()
2511 for (uint32_t i = 0; i < pdevice->queue.family_count; i++) { in anv_GetPhysicalDeviceQueueFamilyProperties()
2512 struct anv_queue_family *queue_family = &pdevice->queue.families[i]; in anv_GetPhysicalDeviceQueueFamilyProperties()
2526 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); in anv_GetPhysicalDeviceQueueFamilyProperties2()
2529 for (uint32_t i = 0; i < pdevice->queue.family_count; i++) { in anv_GetPhysicalDeviceQueueFamilyProperties2()
2530 struct anv_queue_family *queue_family = &pdevice->queue.families[i]; in anv_GetPhysicalDeviceQueueFamilyProperties2()
3612 struct anv_physical_device *pdevice = device->physical; in anv_AllocateMemory() local
3627 assert(pAllocateInfo->memoryTypeIndex < pdevice->memory.type_count); in anv_AllocateMemory()
3629 &pdevice->memory.types[pAllocateInfo->memoryTypeIndex]; in anv_AllocateMemory()
3630 assert(mem_type->heapIndex < pdevice->memory.heap_count); in anv_AllocateMemory()
3632 &pdevice->memory.heaps[mem_type->heapIndex]; in anv_AllocateMemory()