Lines Matching refs:pdevice
672 anv_physical_device_init_queue_families(struct anv_physical_device *pdevice)
676 if (pdevice->engine_info) {
678 intel_gem_count_engines(pdevice->engine_info,
683 c_count = intel_gem_count_engines(pdevice->engine_info,
691 pdevice->queue.families[family_count++] = (struct anv_queue_family) {
700 pdevice->queue.families[family_count++] = (struct anv_queue_family) {
708 pdevice->queue.families[family_count++] = (struct anv_queue_family) {
721 pdevice->queue.families[family_count++] = (struct anv_queue_family) {
731 pdevice->queue.family_count = family_count;
1157 list_for_each_entry_safe(struct anv_physical_device, pdevice,
1159 anv_physical_device_destroy(pdevice);
1192 struct anv_physical_device *pdevice;
1194 &pdevice);
1205 list_addtail(&pdevice->link, &instance->physical_devices);
1227 list_for_each_entry(struct anv_physical_device, pdevice,
1230 *i = anv_physical_device_to_handle(pdevice);
1251 list_for_each_entry(struct anv_physical_device, pdevice,
1256 p->physicalDevices[0] = anv_physical_device_to_handle(pdevice);
1271 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice);
1275 isl_format_supports_sampling(&pdevice->info,
1293 .depthBounds = pdevice->info.ver >= 12,
1299 .textureCompressionETC2 = pdevice->info.ver >= 8 ||
1300 pdevice->info.platform == INTEL_PLATFORM_BYT,
1318 .shaderFloat64 = pdevice->info.ver >= 8 &&
1319 pdevice->info.has_64bit_float,
1320 .shaderInt64 = pdevice->info.ver >= 8,
1321 .shaderInt16 = pdevice->info.ver >= 8,
1322 .shaderResourceMinLod = pdevice->info.ver >= 9,
1329 pdevice->compiler->scalar_stage[MESA_SHADER_VERTEX] &&
1330 pdevice->compiler->scalar_stage[MESA_SHADER_GEOMETRY];
1332 struct vk_app_info *app_info = &pdevice->instance->vk.app_info;
1343 anv_get_physical_device_features_1_1(struct anv_physical_device *pdevice,
1348 f->storageBuffer16BitAccess = pdevice->info.ver >= 8;
1349 f->uniformAndStorageBuffer16BitAccess = pdevice->info.ver >= 8;
1350 f->storagePushConstant16 = pdevice->info.ver >= 8;
1363 anv_get_physical_device_features_1_2(struct anv_physical_device *pdevice,
1370 f->storageBuffer8BitAccess = pdevice->info.ver >= 8;
1371 f->uniformAndStorageBuffer8BitAccess = pdevice->info.ver >= 8;
1372 f->storagePushConstant8 = pdevice->info.ver >= 8;
1373 f->shaderBufferInt64Atomics = pdevice->info.ver >= 9;
1375 f->shaderFloat16 = pdevice->info.ver >= 8;
1376 f->shaderInt8 = pdevice->info.ver >= 8;
1378 bool descIndexing = pdevice->has_a64_buffer_access &&
1379 pdevice->has_bindless_images;
1402 f->samplerFilterMinmax = pdevice->info.ver >= 9;
1410 f->bufferDeviceAddress = pdevice->has_a64_buffer_access;
1411 f->bufferDeviceAddressCaptureReplay = pdevice->has_a64_buffer_access;
1422 anv_get_physical_device_features_1_3(struct anv_physical_device *pdevice,
1448 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice);
1454 anv_get_physical_device_features_1_1(pdevice, &core_1_1);
1459 anv_get_physical_device_features_1_2(pdevice, &core_1_2);
1464 anv_get_physical_device_features_1_3(pdevice, &core_1_3);
1495 features->bufferDeviceAddress = pdevice->has_a64_buffer_access;
1520 features->sampler2DViewOf3D = pdevice->info.ver >= 9;
1535 features->conditionalRendering = pdevice->info.verx10 >= 75;
1536 features->inheritedConditionalRendering = pdevice->info.verx10 >= 75;
1543 features->customBorderColors = pdevice->info.ver >= 8;
1544 features->customBorderColorWithoutFormat = pdevice->info.ver >= 8;
1558 features->fragmentShaderSampleInterlock = pdevice->info.ver >= 9;
1559 features->fragmentShaderPixelInterlock = pdevice->info.ver >= 9;
1577 pdevice->info.has_coarse_pixel_primitive_and_cb;
1579 pdevice->info.has_coarse_pixel_primitive_and_cb;
1604 features->rectangularLines = pdevice->info.ver >= 10;
1614 features->smoothLines = pdevice->info.ver < 10;
1624 features->taskShader = pdevice->vk.supported_extensions.NV_mesh_shader;
1625 features->meshShader = pdevice->vk.supported_extensions.NV_mesh_shader;
1671 features->rayQuery = pdevice->info.has_ray_tracing;
1686 features->shaderBufferFloat32AtomicAdd = pdevice->info.has_lsc;
1688 pdevice->info.has_64bit_float && pdevice->info.has_lsc;
1706 features->shaderBufferFloat32AtomicMinMax = pdevice->info.ver >= 9;
1708 pdevice->info.has_64bit_float && pdevice->info.has_lsc;
1712 features->shaderSharedFloat32AtomicMinMax = pdevice->info.ver >= 9;
1851 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice);
1852 const struct intel_device_info *devinfo = &pdevice->info;
1854 const uint32_t max_ssbos = pdevice->has_a64_buffer_access ? UINT16_MAX : 64;
1856 pdevice->has_bindless_images ? UINT16_MAX : 128;
1858 pdevice->has_bindless_samplers ? UINT16_MAX :
1861 pdevice->has_bindless_images ? UINT16_MAX : MAX_IMAGES;
1867 pdevice->has_bindless_images && pdevice->has_a64_buffer_access
1874 isl_device_get_sample_counts(&pdevice->isl_dev);
1884 .maxUniformBufferRange = pdevice->compiler->indirect_ubos_use_sampler ? (1u << 27) : (1u << 30),
1885 .maxStorageBufferRange = pdevice->isl_dev.max_buffer_size,
2014 .deviceID = pdevice->info.pci_device_id,
2015 .deviceType = pdevice->info.has_local_mem ?
2023 "%s", pdevice->info.name);
2025 pdevice->pipeline_cache_uuid, VK_UUID_SIZE);
2029 anv_get_physical_device_properties_1_1(struct anv_physical_device *pdevice,
2034 memcpy(p->deviceUUID, pdevice->device_uuid, VK_UUID_SIZE);
2035 memcpy(p->driverUUID, pdevice->driver_uuid, VK_UUID_SIZE);
2043 if (pdevice->compiler->scalar_stage[stage])
2046 if (pdevice->vk.supported_extensions.KHR_ray_tracing_pipeline) {
2054 if (pdevice->vk.supported_extensions.NV_mesh_shader) {
2065 if (pdevice->info.ver >= 8) {
2073 p->subgroupQuadOperationsInAllStages = pdevice->info.ver >= 8;
2087 anv_get_physical_device_properties_1_2(struct anv_physical_device *pdevice,
2103 if (pdevice->is_alpha) {
2133 p->shaderDenormPreserveFloat16 = pdevice->info.ver > 8;
2198 if (pdevice->info.ver >= 8) {
2208 p->filterMinmaxSingleComponentFormats = pdevice->info.ver >= 9;
2209 p->filterMinmaxImageComponentMapping = pdevice->info.ver >= 9;
2214 isl_device_get_sample_counts(&pdevice->isl_dev);
2218 anv_get_physical_device_properties_1_3(struct anv_physical_device *pdevice,
2225 p->maxComputeWorkgroupSubgroups = pdevice->info.max_cs_workgroup_threads;
2244 p->integerDotProduct4x8BitPackedUnsignedAccelerated = pdevice->info.ver >= 12;
2245 p->integerDotProduct4x8BitPackedSignedAccelerated = pdevice->info.ver >= 12;
2246 p->integerDotProduct4x8BitPackedMixedSignednessAccelerated = pdevice->info.ver >= 12;
2259 p->integerDotProductAccumulatingSaturating4x8BitPackedUnsignedAccelerated = pdevice->info.ver >= 12;
2260 p->integerDotProductAccumulatingSaturating4x8BitPackedSignedAccelerated = pdevice->info.ver >= 12;
2261 p->integerDotProductAccumulatingSaturating4x8BitPackedMixedSignednessAccelerated = pdevice->info.ver >= 12;
2296 p->maxBufferSize = pdevice->isl_dev.max_buffer_size;
2303 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice);
2310 anv_get_physical_device_properties_1_1(pdevice, &core_1_1);
2315 anv_get_physical_device_properties_1_2(pdevice, &core_1_2);
2320 anv_get_physical_device_properties_1_3(pdevice, &core_1_3);
2382 pdevice->info.has_coarse_pixel_primitive_and_cb;
2383 props->layeredShadingRateAttachments = pdevice->info.has_coarse_pixel_primitive_and_cb;
2385 pdevice->info.has_coarse_pixel_primitive_and_cb;
2388 pdevice->info.has_coarse_pixel_primitive_and_cb ?
2391 (pdevice->info.has_coarse_pixel_primitive_and_cb ? 4 : 16);
2393 pdevice->info.has_coarse_pixel_primitive_and_cb ?
2406 pdevice->info.platform == INTEL_PLATFORM_DG2_G10 ?
2407 pdevice->info.revision >= 8 :
2408 pdevice->info.platform == INTEL_PLATFORM_DG2_G11 ?
2409 pdevice->info.revision >= 4 : true;
2411 if (pdevice->info.has_coarse_pixel_primitive_and_cb) {
2430 props->hasPrimary = pdevice->has_master;
2431 props->primaryMajor = pdevice->master_major;
2432 props->primaryMinor = pdevice->master_minor;
2434 props->hasRender = pdevice->has_local;
2435 props->renderMajor = pdevice->local_major;
2436 props->renderMinor = pdevice->local_minor;
2471 properties->maxBufferSize = pdevice->isl_dev.max_buffer_size;
2538 properties->pciDomain = pdevice->info.pci_domain;
2539 properties->pciBus = pdevice->info.pci_bus;
2540 properties->pciDevice = pdevice->info.pci_dev;
2541 properties->pciFunction = pdevice->info.pci_func;
2594 isl_device_get_sample_counts(&pdevice->isl_dev);
2633 props->transformFeedbackDraw = pdevice->info.verx10 >= 75;
2686 ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice);
2690 for (uint32_t i = 0; i < pdevice->queue.family_count; i++) {
2691 struct anv_queue_family *queue_family = &pdevice->queue.families[i];
2714 pdevice->max_context_priority)
3780 struct anv_physical_device *pdevice = device->physical;
3795 assert(pAllocateInfo->memoryTypeIndex < pdevice->memory.type_count);
3797 &pdevice->memory.types[pAllocateInfo->memoryTypeIndex];
3798 assert(mem_type->heapIndex < pdevice->memory.heap_count);
3800 &pdevice->memory.heaps[mem_type->heapIndex];
3881 if (pdevice->vram_mappable.size > 0 &&
3882 pdevice->vram_non_mappable.size > 0 &&