• Home
  • Raw
  • Download

Lines Matching refs:rad_info

117    enum radeon_family family = pdevice->rad_info.family;  in radv_device_get_cache_uuid()
167 return MIN2((uint64_t)device->rad_info.vram_size_kb * 1024, (uint64_t)ov << 20); in radv_get_adjusted_vram_size()
168 return (uint64_t)device->rad_info.vram_size_kb * 1024; in radv_get_adjusted_vram_size()
174 …return MIN2(radv_get_adjusted_vram_size(device), (uint64_t)device->rad_info.vram_vis_size_kb * 102… in radv_get_visible_vram_size()
181 return total_size - MIN2(total_size, (uint64_t)device->rad_info.vram_vis_size_kb * 1024); in radv_get_vram_size()
196 uint64_t gtt_size = (uint64_t)device->rad_info.gart_size_kb * 1024; in radv_physical_device_init_mem_types()
202 if (!device->rad_info.has_dedicated_vram) { in radv_physical_device_init_mem_types()
208 visible_vram_size = align64((total_size * 2) / 3, device->rad_info.gart_page_size); in radv_physical_device_init_mem_types()
291 if (device->rad_info.has_l2_uncached) { in radv_physical_device_init_mem_types()
384 return pdev->rad_info.gfx_level == GFX10_3 && !radv_thread_trace_enabled(); in radv_perf_query_supported()
390 return pdevice->use_ngg && !pdevice->use_llvm && pdevice->rad_info.gfx_level >= GFX10_3 && in radv_taskmesh_enabled()
392 pdevice->rad_info.has_scheduled_fence_dependency; in radv_taskmesh_enabled()
475 .KHR_fragment_shading_rate = device->rad_info.gfx_level >= GFX10_3, in radv_physical_device_get_supported_extensions()
523 .EXT_border_color_swizzle = device->rad_info.gfx_level >= GFX10, in radv_physical_device_get_supported_extensions()
528 .EXT_conservative_rasterization = device->rad_info.gfx_level >= GFX9, in radv_physical_device_get_supported_extensions()
542 .EXT_external_memory_host = device->rad_info.has_userptr, in radv_physical_device_get_supported_extensions()
547 .EXT_image_drm_format_modifier = device->rad_info.gfx_level >= GFX9, in radv_physical_device_get_supported_extensions()
550 .EXT_index_type_uint8 = device->rad_info.gfx_level >= GFX8, in radv_physical_device_get_supported_extensions()
563 .EXT_post_depth_coverage = device->rad_info.gfx_level >= GFX10, in radv_physical_device_get_supported_extensions()
570 .EXT_sample_locations = device->rad_info.gfx_level < GFX10, in radv_physical_device_get_supported_extensions()
572 .EXT_scalar_block_layout = device->rad_info.gfx_level >= GFX7, in radv_physical_device_get_supported_extensions()
589 .EXT_transform_feedback = device->rad_info.gfx_level < GFX11, in radv_physical_device_get_supported_extensions()
597 .AMD_gpu_shader_half_float = device->rad_info.has_packed_math_16bit, in radv_physical_device_get_supported_extensions()
598 .AMD_gpu_shader_int16 = device->rad_info.has_packed_math_16bit, in radv_physical_device_get_supported_extensions()
601 .AMD_rasterization_order = device->rad_info.has_out_of_order_rast, in radv_physical_device_get_supported_extensions()
606 .AMD_shader_fragment_mask = device->rad_info.gfx_level < GFX11, in radv_physical_device_get_supported_extensions()
619 .NV_device_generated_commands = device->rad_info.gfx_level >= GFX7 && in radv_physical_device_get_supported_extensions()
637 return pdevice->rad_info.gfx_level >= GFX8; in radv_is_conformant()
650 if (pdevice->rad_info.ip[AMD_IP_COMPUTE].num_queues > 0 && in radv_physical_device_init_queue_table()
762 device->ws->query_info(device->ws, &device->rad_info); in radv_physical_device_try_create()
764 if (device->rad_info.gfx_level >= GFX11) { in radv_physical_device_try_create()
786 snprintf(device->name, sizeof(device->name), "AMD RADV %s%s", device->rad_info.name, in radv_physical_device_try_create()
791 marketing_name ? marketing_name : "AMD Unknown", device->rad_info.name, in radv_physical_device_try_create()
812 radv_get_device_uuid(&device->rad_info, &device->device_uuid); in radv_physical_device_try_create()
815 device->rad_info.has_out_of_order_rast && in radv_physical_device_try_create()
820 device->use_ngg = (device->rad_info.gfx_level >= GFX10 && in radv_physical_device_try_create()
821 device->rad_info.family != CHIP_NAVI14 && in radv_physical_device_try_create()
823 device->rad_info.gfx_level >= GFX11; in radv_physical_device_try_create()
825 device->use_ngg_culling = device->use_ngg && device->rad_info.max_render_backends > 1 && in radv_physical_device_try_create()
826 (device->rad_info.gfx_level >= GFX10_3 || in radv_physical_device_try_create()
838 if (device->rad_info.gfx_level >= GFX10) { in radv_physical_device_try_create()
887 ac_print_gpu_info(&device->rad_info, stdout); in radv_physical_device_try_create()
892 ac_init_perfcounters(&device->rad_info, false, false, &device->ac_perfcounters); in radv_physical_device_try_create()
905 ac_get_gs_table_depth(device->rad_info.gfx_level, device->rad_info.family); in radv_physical_device_try_create()
907 ac_get_hs_info(&device->rad_info, &device->hs); in radv_physical_device_try_create()
908 ac_get_task_info(&device->rad_info, &device->task_info); in radv_physical_device_try_create()
1327 .sparseResidencyBuffer = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceFeatures()
1328 .sparseResidencyImage2D = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceFeatures()
1329 .sparseResidencyAliased = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceFeatures()
1346 f->storageInputOutput16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_features_1_1()
1370 f->shaderFloat16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_features_1_2()
1396 f->scalarBlockLayout = pdevice->rad_info.gfx_level >= GFX7; in radv_get_physical_device_features_1_2()
1487 features->transformFeedback = pdevice->rad_info.gfx_level < GFX11; in radv_GetPhysicalDeviceFeatures2()
1488 … features->geometryStreams = !pdevice->use_ngg_streamout && pdevice->rad_info.gfx_level < GFX11; in radv_GetPhysicalDeviceFeatures2()
1533 features->indexTypeUint8 = pdevice->rad_info.gfx_level >= GFX8; in radv_GetPhysicalDeviceFeatures2()
1546 features->shaderDeviceClock = pdevice->rad_info.gfx_level >= GFX8; in radv_GetPhysicalDeviceFeatures2()
1558 features->deviceCoherentMemory = pdevice->rad_info.has_l2_uncached; in radv_GetPhysicalDeviceFeatures2()
1571 features->stippledBresenhamLines = pdevice->rad_info.gfx_level != GFX9; in radv_GetPhysicalDeviceFeatures2()
1610 features->shaderSharedFloat32AtomicAdd = pdevice->rad_info.gfx_level >= GFX8; in radv_GetPhysicalDeviceFeatures2()
1646 pdevice->rad_info.gfx_level < GFX11; /* TODO: VRS no longer uses HTILE. */ in radv_GetPhysicalDeviceFeatures2()
1711 pdevice->rad_info.gfx_level != GFX8 && pdevice->rad_info.gfx_level != GFX9; in radv_GetPhysicalDeviceFeatures2()
1970 .maxComputeSharedMemorySize = pdevice->rad_info.gfx_level >= GFX7 ? 65536 : 32768, in radv_GetPhysicalDeviceProperties()
2011 .timestampPeriod = 1000000.0 / pdevice->rad_info.clock_crystal_freq, in radv_GetPhysicalDeviceProperties()
2029 if (pdevice->rad_info.has_dedicated_vram) { in radv_GetPhysicalDeviceProperties()
2039 .deviceID = pdevice->rad_info.pci_id, in radv_GetPhysicalDeviceProperties()
2044 .residencyNonResidentStrict = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceProperties()
2045 .residencyStandard2DBlockShape = pdevice->rad_info.family >= CHIP_POLARIS10, in radv_GetPhysicalDeviceProperties()
2095 if (pdevice->rad_info.gfx_level >= GFX10_3) { in radv_get_physical_device_properties_1_2()
2122 if (pdevice->rad_info.has_packed_math_16bit) { in radv_get_physical_device_properties_1_2()
2144 pdevice->rad_info.has_packed_math_16bit && !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
2145 p->shaderDenormPreserveFloat16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_properties_1_2()
2146 p->shaderRoundingModeRTEFloat16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_properties_1_2()
2147 p->shaderRoundingModeRTZFloat16 = pdevice->rad_info.has_packed_math_16bit && !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
2148 p->shaderSignedZeroInfNanPreserveFloat16 = pdevice->rad_info.has_packed_math_16bit; in radv_get_physical_device_properties_1_2()
2150 p->shaderDenormFlushToZeroFloat64 = pdevice->rad_info.gfx_level >= GFX8 && !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
2151 p->shaderDenormPreserveFloat64 = pdevice->rad_info.gfx_level >= GFX8; in radv_get_physical_device_properties_1_2()
2152 p->shaderRoundingModeRTEFloat64 = pdevice->rad_info.gfx_level >= GFX8; in radv_get_physical_device_properties_1_2()
2153 p->shaderRoundingModeRTZFloat64 = pdevice->rad_info.gfx_level >= GFX8 && !pdevice->use_llvm; in radv_get_physical_device_properties_1_2()
2154 p->shaderSignedZeroInfNanPreserveFloat64 = pdevice->rad_info.gfx_level >= GFX8; in radv_get_physical_device_properties_1_2()
2201 p->filterMinmaxImageComponentMapping = pdevice->rad_info.gfx_level >= GFX9; in radv_get_physical_device_properties_1_2()
2219 if (pdevice->rad_info.gfx_level >= GFX10) { in radv_get_physical_device_properties_1_3()
2232 bool accel = pdevice->rad_info.has_accelerated_dot_product; in radv_get_physical_device_properties_1_3()
2327 properties->shaderEngineCount = pdevice->rad_info.max_se; in radv_GetPhysicalDeviceProperties2()
2328 properties->shaderArraysPerEngineCount = pdevice->rad_info.max_sa_per_se; in radv_GetPhysicalDeviceProperties2()
2329 properties->computeUnitsPerShaderArray = pdevice->rad_info.min_good_cu_per_sa; in radv_GetPhysicalDeviceProperties2()
2330 properties->simdPerComputeUnit = pdevice->rad_info.num_simd_per_compute_unit; in radv_GetPhysicalDeviceProperties2()
2331 properties->wavefrontsPerSimd = pdevice->rad_info.max_wave64_per_simd; in radv_GetPhysicalDeviceProperties2()
2335 properties->sgprsPerSimd = pdevice->rad_info.num_physical_sgprs_per_simd; in radv_GetPhysicalDeviceProperties2()
2336 properties->minSgprAllocation = pdevice->rad_info.min_sgpr_alloc; in radv_GetPhysicalDeviceProperties2()
2337 properties->maxSgprAllocation = pdevice->rad_info.max_sgpr_alloc; in radv_GetPhysicalDeviceProperties2()
2338 properties->sgprAllocationGranularity = pdevice->rad_info.sgpr_alloc_granularity; in radv_GetPhysicalDeviceProperties2()
2341 properties->vgprsPerSimd = pdevice->rad_info.num_physical_wave64_vgprs_per_simd; in radv_GetPhysicalDeviceProperties2()
2342 properties->minVgprAllocation = pdevice->rad_info.min_wave64_vgpr_alloc; in radv_GetPhysicalDeviceProperties2()
2343 properties->maxVgprAllocation = pdevice->rad_info.max_vgpr_alloc; in radv_GetPhysicalDeviceProperties2()
2344 properties->vgprAllocationGranularity = pdevice->rad_info.wave64_vgpr_alloc_granularity; in radv_GetPhysicalDeviceProperties2()
2352 properties->activeComputeUnitCount = pdevice->rad_info.num_cu; in radv_GetPhysicalDeviceProperties2()
2600 if (pdevice->rad_info.ip[AMD_IP_COMPUTE].num_queues > 0 && in radv_get_physical_device_queue_family_properties()
2624 if (pdevice->rad_info.ip[AMD_IP_COMPUTE].num_queues > 0 && in radv_get_physical_device_queue_family_properties()
2630 .queueCount = pdevice->rad_info.ip[AMD_IP_COMPUTE].num_queues, in radv_get_physical_device_queue_family_properties()
2699 if (!device->rad_info.has_dedicated_vram) { in radv_get_memory_budget_properties()
2735 device->rad_info.gart_page_size); in radv_get_memory_budget_properties()
3531 device->pbb_allowed = device->physical_device->rad_info.gfx_level >= GFX9 && in radv_CreateDevice()
3548 MAX2(32 * physical_device->rad_info.num_cu, max_threads_per_block / 64); in radv_CreateDevice()
3552 if (device->physical_device->rad_info.gfx_level >= GFX7) { in radv_CreateDevice()
3591 if (device->physical_device->rad_info.gfx_level < GFX8 || in radv_CreateDevice()
3592 device->physical_device->rad_info.gfx_level > GFX10_3) { in radv_CreateDevice()
3609 if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_CreateDevice()
3621 assert(device->physical_device->rad_info.gfx_level == GFX8); in radv_CreateDevice()
3636 if (device->physical_device->rad_info.gfx_level >= GFX10_3) { in radv_CreateDevice()
3656 device->load_grid_size_from_user_sgpr = device->physical_device->rad_info.gfx_level >= GFX10_3; in radv_CreateDevice()
3678 if (device->physical_device->rad_info.gfx_level >= GFX7) in radv_CreateDevice()
3873 if (device->physical_device->rad_info.gfx_level >= GFX11) in radv_fill_shader_rings()
3878 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_fill_shader_rings()
3881 } else if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_fill_shader_rings()
3884 } else if (device->physical_device->rad_info.gfx_level >= GFX8) { in radv_fill_shader_rings()
3902 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_fill_shader_rings()
3905 } else if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_fill_shader_rings()
3928 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_fill_shader_rings()
3931 } else if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_fill_shader_rings()
3949 if (device->physical_device->rad_info.gfx_level >= GFX11) in radv_fill_shader_rings()
3954 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_fill_shader_rings()
3957 } else if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_fill_shader_rings()
3960 } else if (device->physical_device->rad_info.gfx_level >= GFX8) { in radv_fill_shader_rings()
3982 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_fill_shader_rings()
3985 } else if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_fill_shader_rings()
3999 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_fill_shader_rings()
4002 } else if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_fill_shader_rings()
4024 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_fill_shader_rings()
4028 assert(device->physical_device->rad_info.gfx_level >= GFX10_3); in radv_fill_shader_rings()
4039 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_fill_shader_rings()
4043 assert(device->physical_device->rad_info.gfx_level >= GFX10_3); in radv_fill_shader_rings()
4060 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_fill_shader_rings()
4064 assert(device->physical_device->rad_info.gfx_level >= GFX10_3); in radv_fill_shader_rings()
4098 if (device->physical_device->rad_info.gfx_level >= GFX7) { in radv_emit_gs_ring_sizes()
4123 if (device->physical_device->rad_info.gfx_level >= GFX7) { in radv_emit_tess_factor_ring()
4124 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_emit_tess_factor_ring()
4126 tf_ring_size /= device->physical_device->rad_info.max_se; in radv_emit_tess_factor_ring()
4132 if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_emit_tess_factor_ring()
4135 } else if (device->physical_device->rad_info.gfx_level == GFX9) { in radv_emit_tess_factor_ring()
4203 struct radeon_info *info = &device->physical_device->rad_info; in radv_emit_graphics_scratch()
4232 struct radeon_info *info = &device->physical_device->rad_info; in radv_emit_compute_scratch()
4242 if (device->physical_device->rad_info.gfx_level >= GFX11) in radv_emit_compute_scratch()
4295 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_emit_graphics_shader_pointers()
4303 } else if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_emit_graphics_shader_pointers()
4311 } else if (device->physical_device->rad_info.gfx_level == GFX9) { in radv_emit_graphics_shader_pointers()
4418 assert(device->physical_device->rad_info.gfx_level >= GFX10_3); in radv_update_preamble_cs()
4438 assert(device->physical_device->rad_info.gfx_level >= GFX10_3); in radv_update_preamble_cs()
4448 assert(device->physical_device->rad_info.gfx_level >= GFX10); in radv_update_preamble_cs()
4460 assert(device->physical_device->rad_info.gfx_level >= GFX10); in radv_update_preamble_cs()
4505 if (device->physical_device->rad_info.gfx_level >= GFX11) in radv_update_preamble_cs()
4527 device->physical_device->rad_info.gfx_level >= GFX7) in radv_update_preamble_cs()
4596 const enum amd_gfx_level gfx_level = device->physical_device->rad_info.gfx_level; in radv_update_preamble_cs()
4844 if (device->physical_device->rad_info.gfx_level >= GFX9) { in radv_sparse_image_bind_memory()
5606 device->physical_device->rad_info.max_alignment, domain, in radv_alloc_memory()
6158 if (device->physical_device->rad_info.gfx_level < GFX10 && iview->image->info.samples > 1) { in get_dcc_max_uncompressed_block_size()
6171 if (!device->physical_device->rad_info.has_dedicated_vram) { in get_dcc_min_compressed_block_size()
6197 if (device->physical_device->rad_info.gfx_level >= GFX9) { in radv_init_dcc_control_reg()
6227 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_init_dcc_control_reg()
6254 if (device->physical_device->rad_info.gfx_level >= GFX11) in radv_initialise_color_surface()
6265 if (device->physical_device->rad_info.gfx_level >= GFX9) { in radv_initialise_color_surface()
6266 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_initialise_color_surface()
6269 } else if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_initialise_color_surface()
6311 if (device->physical_device->rad_info.gfx_level >= GFX7) in radv_initialise_color_surface()
6318 if (device->physical_device->rad_info.gfx_level >= GFX7) in radv_initialise_color_surface()
6334 device->physical_device->rad_info.gfx_level <= GFX8) in radv_initialise_color_surface()
6351 if (device->physical_device->rad_info.gfx_level >= GFX11) in radv_initialise_color_surface()
6403 if (device->physical_device->rad_info.gfx_level >= GFX11) in radv_initialise_color_surface()
6410 if (device->physical_device->rad_info.gfx_level == GFX6) { in radv_initialise_color_surface()
6423 if (device->physical_device->rad_info.gfx_level == GFX8) { in radv_initialise_color_surface()
6437 device->physical_device->rad_info.gfx_level < GFX11) in radv_initialise_color_surface()
6443 if (!radv_image_has_fmask(iview->image) && device->physical_device->rad_info.gfx_level == GFX6) { in radv_initialise_color_surface()
6448 if (device->physical_device->rad_info.gfx_level >= GFX9) { in radv_initialise_color_surface()
6457 if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_initialise_color_surface()
6462 S_028EE0_RESOURCE_LEVEL(device->physical_device->rad_info.gfx_level >= GFX11 ? 0 : 1); in radv_initialise_color_surface()
6481 if (device->physical_device->rad_info.gfx_level >= GFX9) { in radv_calc_decompress_on_z_planes()
6489 if (device->physical_device->rad_info.has_two_planes_iterate256_bug && in radv_calc_decompress_on_z_planes()
6584 if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_initialise_ds_surface()
6595 if (device->physical_device->rad_info.gfx_level >= GFX9) { in radv_initialise_ds_surface()
6604 S_028040_ITERATE_256(device->physical_device->rad_info.gfx_level >= GFX11); in radv_initialise_ds_surface()
6607 … S_028044_ITERATE_256(device->physical_device->rad_info.gfx_level >= GFX11); in radv_initialise_ds_surface()
6609 if (device->physical_device->rad_info.gfx_level == GFX9) { in radv_initialise_ds_surface()
6626 if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_initialise_ds_surface()
6648 if (device->physical_device->rad_info.gfx_level == GFX9) { in radv_initialise_ds_surface()
6672 if (device->physical_device->rad_info.gfx_level >= GFX7) { in radv_initialise_ds_surface()
6673 struct radeon_info *info = &device->physical_device->rad_info; in radv_initialise_ds_surface()
6902 bool compat_mode = device->physical_device->rad_info.gfx_level == GFX8 || in radv_init_sampler()
6903 device->physical_device->rad_info.gfx_level == GFX9; in radv_init_sampler()
6965 if (device->physical_device->rad_info.gfx_level >= GFX10) { in radv_init_sampler()
6970 S_008F38_DISABLE_LSB_CEIL(device->physical_device->rad_info.gfx_level <= GFX8) | in radv_init_sampler()
6973 device->physical_device->rad_info.gfx_level >= GFX8); in radv_init_sampler()
6976 if (device->physical_device->rad_info.gfx_level >= GFX11) { in radv_init_sampler()
7232 uint32_t clock_crystal_freq = device->physical_device->rad_info.clock_crystal_freq; in radv_GetCalibratedTimestampsEXT()
7373 if (device->physical_device->rad_info.has_stable_pstate) { in radv_thread_trace_set_pstate()