diff options
author | Samuel Pitoiset <[email protected]> | 2019-06-26 09:09:33 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-07-07 17:51:32 +0200 |
commit | 74d69299d167cdd88bf8582266ab4fa8b845f53e (patch) | |
tree | f1f72a6588af1cdc70e9237ab13905b5720dd201 /src | |
parent | bf1e1a29c301a7ab269b896a81888a79c33190aa (diff) |
radv/gfx10: double the number of tessellation offchip buffers per SE
Each gfx10 shader engine corresponds to two gfx9 shader engines, so scale
the number of offchip buffers accordingly.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index d111ab6b130..4a1078a1b52 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -2340,9 +2340,11 @@ radv_get_hs_offchip_param(struct radv_device *device, uint32_t *max_offchip_buff * * Follow AMDVLK here. */ - if (device->physical_device->rad_info.family == CHIP_VEGA10 || - device->physical_device->rad_info.chip_class == GFX7 || - device->physical_device->rad_info.chip_class == GFX6) + if (device->physical_device->rad_info.chip_class >= GFX10) { + max_offchip_buffers_per_se = 256; + } else if (device->physical_device->rad_info.family == CHIP_VEGA10 || + device->physical_device->rad_info.chip_class == GFX7 || + device->physical_device->rad_info.chip_class == GFX6) --max_offchip_buffers_per_se; max_offchip_buffers = max_offchip_buffers_per_se * |