radeonsi: add support for Mullins asics.
authorSamuel Li <samuel.li@amd.com>
Thu, 1 May 2014 17:27:58 +0000 (13:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 May 2014 21:30:27 +0000 (17:30 -0400)
v2: name defaults to kabini for older llvm
v3: fix llvm version check

Signed-off-by: Samuel Li <samuel.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_state.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
src/gallium/winsys/radeon/drm/radeon_winsys.h

index 957186af0b5a10668609376f981a925c08b37720..70c4d1adefba783b553af0e6ff1dfc60b7fd3e9f 100644 (file)
@@ -293,6 +293,7 @@ static const char* r600_get_name(struct pipe_screen* pscreen)
        case CHIP_KAVERI: return "AMD KAVERI";
        case CHIP_KABINI: return "AMD KABINI";
        case CHIP_HAWAII: return "AMD HAWAII";
+       case CHIP_MULLINS: return "AMD MULLINS";
        default: return "AMD unknown";
        }
 }
@@ -410,6 +411,12 @@ const char *r600_get_llvm_processor_name(enum radeon_family family)
        case CHIP_KABINI: return "kabini";
        case CHIP_KAVERI: return "kaveri";
        case CHIP_HAWAII: return "hawaii";
+       case CHIP_MULLINS:
+#if HAVE_LLVM >= 0x0305
+               return "mullins";
+#else
+               return "kabini";
+#endif
        default: return "";
 #endif
        }
index 80f54e2b285b935f6d2334c9ef6d22eaf37f9a67..6d5408b1877f1889923be65c4268eb6dd8433dd3 100644 (file)
@@ -3101,6 +3101,8 @@ void si_init_config(struct si_context *sctx)
                        /* XXX todo */
                case CHIP_KABINI:
                        /* XXX todo */
+               case CHIP_MULLINS:
+                       /* XXX todo */
                default:
                        si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x00000000);
                        si_pm4_set_reg(pm4, R_028354_PA_SC_RASTER_CONFIG_1, 0x00000000);
index 76183160ddc701993c28a9ca647738d19cce1e16..e54e79e38f8f274ec4eece38dda4de67c4c4260c 100644 (file)
@@ -276,6 +276,7 @@ static boolean do_winsys_init(struct radeon_drm_winsys *ws)
     case CHIP_KAVERI:
     case CHIP_KABINI:
     case CHIP_HAWAII:
+    case CHIP_MULLINS:
         ws->info.chip_class = CIK;
         break;
     }
index 1cb17bb9e017e868786f00920fca0de429690d0b..2d13550c9ccedb310a3525dd32a5210441b9a976 100644 (file)
@@ -130,6 +130,7 @@ enum radeon_family {
     CHIP_KAVERI,
     CHIP_KABINI,
     CHIP_HAWAII,
+    CHIP_MULLINS,
     CHIP_LAST,
 };