ac/gpu_info: Rename has_sparse_vm_mappings to has_sparse
No functional changes. Just simplify the name. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38553>
This commit is contained in:
@@ -724,7 +724,7 @@ ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
|
||||
* except Polaris where it happens to work "well enough".
|
||||
* Enable them when these are investigated and fixed in the driver.
|
||||
*/
|
||||
info->has_sparse_vm_mappings = info->family >= CHIP_POLARIS10;
|
||||
info->has_sparse = info->family >= CHIP_POLARIS10;
|
||||
info->has_gang_submit = info->drm_minor >= 49;
|
||||
info->has_gpuvm_fault_query = info->drm_minor >= 55;
|
||||
info->has_tmz_support = device_info.ids_flags & AMDGPU_IDS_FLAGS_TMZ;
|
||||
@@ -1843,7 +1843,7 @@ void ac_print_gpu_info(FILE *f, const struct radeon_info *info, int fd)
|
||||
fprintf(f, " has_vm_always_valid = %u\n", info->has_vm_always_valid);
|
||||
fprintf(f, " has_bo_metadata = %u\n", info->has_bo_metadata);
|
||||
fprintf(f, " has_eqaa_surface_allocator = %u\n", info->has_eqaa_surface_allocator);
|
||||
fprintf(f, " has_sparse_vm_mappings = %u\n", info->has_sparse_vm_mappings);
|
||||
fprintf(f, " has_sparse = %u\n", info->has_sparse);
|
||||
fprintf(f, " has_stable_pstate = %u\n", info->has_stable_pstate);
|
||||
fprintf(f, " has_gang_submit = %u\n", info->has_gang_submit);
|
||||
fprintf(f, " has_gpuvm_fault_query = %u\n", info->has_gpuvm_fault_query);
|
||||
|
||||
@@ -238,7 +238,7 @@ struct radeon_info {
|
||||
bool has_vm_always_valid;
|
||||
bool has_bo_metadata;
|
||||
bool has_eqaa_surface_allocator;
|
||||
bool has_sparse_vm_mappings;
|
||||
bool has_sparse;
|
||||
bool has_gang_submit;
|
||||
bool has_gpuvm_fault_query;
|
||||
bool has_pcie_bandwidth_info;
|
||||
|
||||
@@ -1059,7 +1059,7 @@ radv_get_image_format_properties(struct radv_physical_device *pdev, const VkPhys
|
||||
}
|
||||
|
||||
if (info->flags & VK_IMAGE_CREATE_SPARSE_BINDING_BIT) {
|
||||
if (!pdev->info.has_sparse_vm_mappings)
|
||||
if (!pdev->info.has_sparse)
|
||||
goto unsupported;
|
||||
|
||||
/* Sparse resources with multi-planar formats are unsupported. */
|
||||
|
||||
@@ -899,7 +899,7 @@ radv_physical_device_get_features(const struct radv_physical_device *pdev, struc
|
||||
.shaderFloat64 = true,
|
||||
.shaderInt64 = true,
|
||||
.shaderInt16 = true,
|
||||
.sparseBinding = pdev->info.has_sparse_vm_mappings,
|
||||
.sparseBinding = pdev->info.has_sparse,
|
||||
.sparseResidencyBuffer = pdev->info.family >= CHIP_POLARIS10,
|
||||
.sparseResidencyImage2D = pdev->info.family >= CHIP_POLARIS10,
|
||||
.sparseResidencyImage3D = pdev->info.family >= CHIP_POLARIS10,
|
||||
@@ -1604,7 +1604,7 @@ radv_get_physical_device_properties(struct radv_physical_device *pdev)
|
||||
.maxMemoryAllocationCount = UINT32_MAX,
|
||||
.maxSamplerAllocationCount = 64 * 1024,
|
||||
.bufferImageGranularity = 1,
|
||||
.sparseAddressSpaceSize = pdev->info.has_sparse_vm_mappings ? pdev->info.virtual_address_max : 0,
|
||||
.sparseAddressSpaceSize = pdev->info.has_sparse ? pdev->info.virtual_address_max : 0,
|
||||
.maxBoundDescriptorSets = MAX_SETS,
|
||||
.maxPerStageDescriptorSamplers = max_descriptor_set_size,
|
||||
.maxPerStageDescriptorUniformBuffers = max_descriptor_set_size,
|
||||
|
||||
@@ -241,7 +241,7 @@ radv_dedicated_sparse_queue_enabled(const struct radv_physical_device *pdev)
|
||||
/* Dedicated sparse queue requires VK_QUEUE_SUBMIT_MODE_THREADED, which is incompatible with
|
||||
* VK_DEVICE_TIMELINE_MODE_EMULATED. */
|
||||
return pdev->info.has_timeline_syncobj &&
|
||||
pdev->info.has_sparse_vm_mappings;
|
||||
pdev->info.has_sparse;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
|
||||
@@ -1023,7 +1023,7 @@ void si_init_screen_caps(struct si_screen *sscreen)
|
||||
|
||||
/* Gfx8 (Polaris11) hangs, so don't enable this on Gfx8 and older chips. */
|
||||
bool enable_sparse =
|
||||
sscreen->info.gfx_level >= GFX9 && sscreen->info.has_sparse_vm_mappings;
|
||||
sscreen->info.gfx_level >= GFX9 && sscreen->info.has_sparse;
|
||||
|
||||
/* Supported features (boolean caps). */
|
||||
caps->max_dual_source_render_targets = true;
|
||||
|
||||
@@ -628,7 +628,7 @@ static bool do_winsys_init(struct radeon_drm_winsys *ws)
|
||||
ws->info.tcc_cache_line_size = 64; /* TC L2 line size on GCN */
|
||||
ws->info.has_bo_metadata = false;
|
||||
ws->info.has_eqaa_surface_allocator = false;
|
||||
ws->info.has_sparse_vm_mappings = false;
|
||||
ws->info.has_sparse = false;
|
||||
ws->info.max_alignment = 1024*1024;
|
||||
ws->info.has_graphics = true;
|
||||
ws->info.cpdma_prefetch_writes_memory = true;
|
||||
|
||||
Reference in New Issue
Block a user