]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amdgpu/gfx: drop max_gs_waves_per_vgt
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 2 May 2017 19:49:36 +0000 (15:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 May 2017 22:14:04 +0000 (18:14 -0400)
We already have this info: max_gs_threads.  Drop the duplicate.

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index c9f935710d40649a63f74ce869664472548b9981..8033001b913a1803bf348a17c077db565f1c9fce 100644 (file)
@@ -969,7 +969,6 @@ struct amdgpu_gfx_config {
        unsigned num_rbs;
        unsigned gs_vgt_table_depth;
        unsigned gs_prim_buffer_depth;
-       unsigned max_gs_waves_per_vgt;
 
        uint32_t tile_mode_array[32];
        uint32_t macrotile_mode_array[16];
index 4f2b6679f72f28dfe397fc4d17bf57cf3916801e..1a7830a291d6209d3884d8b8d5658e39a35adc9b 100644 (file)
@@ -560,7 +560,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
                dev_info.num_tcc_blocks = adev->gfx.config.max_texture_channel_caches;
                dev_info.gs_vgt_table_depth = adev->gfx.config.gs_vgt_table_depth;
                dev_info.gs_prim_buffer_depth = adev->gfx.config.gs_prim_buffer_depth;
-               dev_info.max_gs_waves_per_vgt = adev->gfx.config.max_gs_waves_per_vgt;
+               dev_info.max_gs_waves_per_vgt = adev->gfx.config.max_gs_threads;
 
                return copy_to_user(out, &dev_info,
                                    min((size_t)size, sizeof(dev_info))) ? -EFAULT : 0;
index 5f2ae4cb510f1e5f32fb32a0355dcc2e7db08944..484ead2a20a44476ae5960f478c82ae19daa6832 100644 (file)
@@ -786,7 +786,6 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
                adev->gfx.config.sc_earlyz_tile_fifo_size = 0x4C0;
                adev->gfx.config.gs_vgt_table_depth = 32;
                adev->gfx.config.gs_prim_buffer_depth = 1792;
-               adev->gfx.config.max_gs_waves_per_vgt = 32;
                gb_addr_config = VEGA10_GB_ADDR_CONFIG_GOLDEN;
                break;
        default: