From ec77157deacceb4140eef2a29f8c03a3f6fbaeee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 27 Apr 2021 23:51:24 -0400 Subject: [PATCH] ac/gpu_info: set has_zero_index_buffer_bug for Navi12 too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Acked-by: Timur Kristóf Reviewed-by: Pierre-Eric Pelloux-Prayer Cc: mesa-stable@lists.freedesktop.org Part-of: (cherry picked from commit 38d3c4251d3fe69667727fcbd11d5fc200ce0fec) --- .pick_status.json | 2 +- src/amd/common/ac_gpu_info.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index d816f6fee84..1fbbb1d42fa 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1282,7 +1282,7 @@ "description": "ac/gpu_info: set has_zero_index_buffer_bug for Navi12 too", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 120dc10bec0..d8f45fab7ee 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -878,8 +878,8 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info, info->has_ls_vgpr_init_bug = info->family == CHIP_VEGA10 || info->family == CHIP_RAVEN; - /* Drawing from 0-sized index buffers causes hangs on Navi10/14. */ - info->has_zero_index_buffer_bug = info->family == CHIP_NAVI10 || info->family == CHIP_NAVI14; + /* Drawing from 0-sized index buffers causes hangs on gfx10. */ + info->has_zero_index_buffer_bug = info->chip_class == GFX10; /* Whether chips are affected by the image load/sample/gather hw bug when * DCC is enabled (ie. WRITE_COMPRESS_ENABLE should be 0).