ac: rename vgpr_alloc_granularity to wave64_vgpr_alloc_granularity
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 27 Feb 2020 07:47:54 +0000 (08:47 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 3 Mar 2020 07:17:00 +0000 (08:17 +0100)
And update the value.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3975>

src/amd/common/ac_gpu_info.c
src/amd/common/ac_gpu_info.h
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_rgp.c

index 45be8492d0fd571eb165cf84620725808c774a33..353dfe91b81efa66b598821dee891d7e4634f721 100644 (file)
@@ -729,7 +729,7 @@ bool ac_query_gpu_info(int fd, void *dev_p,
 
        info->min_vgpr_alloc = 4;
        info->max_vgpr_alloc = 256;
-       info->vgpr_alloc_granularity = info->chip_class >= GFX10 ? 8 : 4;
+       info->wave64_vgpr_alloc_granularity = 4;
 
        info->num_physical_wave64_vgprs_per_simd = info->chip_class >= GFX10 ? 512 : 256;
        info->num_simd_per_compute_unit = info->chip_class >= GFX10 ? 2 : 4;
@@ -895,7 +895,7 @@ void ac_print_gpu_info(struct radeon_info *info)
        printf("    sgpr_alloc_granularity = %i\n", info->sgpr_alloc_granularity);
        printf("    min_vgpr_alloc = %i\n", info->min_vgpr_alloc);
        printf("    max_vgpr_alloc = %i\n", info->max_vgpr_alloc);
-       printf("    vgpr_alloc_granularity = %i\n", info->vgpr_alloc_granularity);
+       printf("    wave64_vgpr_alloc_granularity = %i\n", info->wave64_vgpr_alloc_granularity);
 
        printf("Render backend info:\n");
        printf("    pa_sc_tile_steering_override = 0x%x\n", info->pa_sc_tile_steering_override);
index ce8c6e43c71d9e7328002ede2842e0ff3c794c8d..930a09bab29818db5d786e9ec6cd313bd1b0d09e 100644 (file)
@@ -167,7 +167,7 @@ struct radeon_info {
        uint32_t                    sgpr_alloc_granularity;
        uint32_t                    min_vgpr_alloc;
        uint32_t                    max_vgpr_alloc;
-       uint32_t                    vgpr_alloc_granularity;
+       uint32_t                    wave64_vgpr_alloc_granularity;
 
        /* Render backends (color + depth blocks). */
        uint32_t                    r300_num_gb_pipes;
index aa7b1b06835d787a7253d3b9cefaa52bb2446c29..8e4ae16d51a55d53ff0e63e6131b9c0db0538d7c 100644 (file)
@@ -1724,7 +1724,7 @@ void radv_GetPhysicalDeviceProperties2(
                        properties->maxVgprAllocation =
                                pdevice->rad_info.max_vgpr_alloc;
                        properties->vgprAllocationGranularity =
-                               pdevice->rad_info.vgpr_alloc_granularity;
+                               pdevice->rad_info.wave64_vgpr_alloc_granularity;
                        break;
                }
                case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD: {
index 03d7ed8111963af40dc1e7f5d99aafc17b9ce64d..8b068ae2200fdc00b97571e3e35e3a58c972906d 100644 (file)
@@ -358,7 +358,7 @@ radv_fill_sqtt_asic_info(struct radv_device *device,
        chunk->wavefronts_per_simd = rad_info->max_wave64_per_simd;
 
        chunk->minimum_vgpr_alloc = rad_info->min_vgpr_alloc;
-       chunk->vgpr_alloc_granularity = rad_info->vgpr_alloc_granularity;
+       chunk->vgpr_alloc_granularity = rad_info->wave64_vgpr_alloc_granularity;
        chunk->minimum_sgpr_alloc = rad_info->min_sgpr_alloc;
        chunk->sgpr_alloc_granularity = rad_info->sgpr_alloc_granularity;