From: Samuel Pitoiset Date: Tue, 11 Aug 2020 09:26:16 +0000 (+0200) Subject: radv: limit LATE_ALLOC_GS to prevent a GPU hang on GFX10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4c6204d6595d7dc47c23ae637b8aba3307ec2cc;p=mesa.git radv: limit LATE_ALLOC_GS to prevent a GPU hang on GFX10 Found by inspection, doesn't fix anything known. Cc: mesa-stable Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index 1286a7609e7..d3b0fd24f47 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -336,6 +336,10 @@ si_emit_graphics(struct radv_device *device, late_alloc_wave64_gs = 0; cu_mask_gs = 0xffff; } + + /* Limit LATE_ALLOC_GS for prevent a hang (hw bug). */ + if (physical_device->rad_info.chip_class == GFX10) + late_alloc_wave64_gs = MIN2(late_alloc_wave64_gs, 64); } else { if (!physical_device->rad_info.use_late_alloc) { late_alloc_wave64 = 0;