Module: Mesa
Branch: master
Commit: 3b7b2df509028afc8da6c66e9a5020d243a9c794
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b7b2df509028afc8da6c66e9a5020d243a9c794

Author: Marek Olšák <[email protected]>
Date:   Tue Mar  2 23:25:26 2021 -0500

ac: remove switch cases for pc_lines for compute-only chips

Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9389>

---

 src/amd/common/ac_gpu_info.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 947c8117c12..f84c5e7839c 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -892,7 +892,7 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct 
radeon_info *info,
 
    info->has_gds_ordered_append = info->chip_class >= GFX7 && info->drm_minor 
>= 29;
 
-   if (info->chip_class >= GFX9) {
+   if (info->chip_class >= GFX9 && info->has_graphics) {
       unsigned pc_lines = 0;
 
       switch (info->family) {
@@ -917,9 +917,6 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct 
radeon_info *info,
       case CHIP_VANGOGH:
          pc_lines = 256;
          break;
-      case CHIP_ARCTURUS:
-      case CHIP_ALDEBARAN:
-         break;
       default:
          assert(0);
       }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to