radeonsi: add support for Hawaii asics (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Sep 2013 16:12:29 +0000 (12:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Nov 2013 13:51:09 +0000 (08:51 -0500)
Update additional register fields.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/radeonsi_pipe.c
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/sid.h
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
src/gallium/winsys/radeon/drm/radeon_winsys.h

index b79a58ebb3ec982f5b170860ce4655f019d36857..1f9279159dcf19ae921b625570aac8a71d0b327b 100644 (file)
@@ -258,6 +258,7 @@ const char *r600_get_llvm_processor_name(enum radeon_family family)
                case CHIP_BONAIRE: return "bonaire";
                case CHIP_KABINI: return "kabini";
                case CHIP_KAVERI: return "kaveri";
+               case CHIP_HAWAII: return "hawaii";
                default: return "";
 #endif
        }
@@ -274,6 +275,7 @@ static const char *r600_get_family_name(enum radeon_family family)
        case CHIP_BONAIRE: return "AMD BONAIRE";
        case CHIP_KAVERI: return "AMD KAVERI";
        case CHIP_KABINI: return "AMD KABINI";
+       case CHIP_HAWAII: return "AMD HAWAII";
        default: return "AMD unknown";
        }
 }
index 72368d85d9bd10959fe98352b2517dd1b46e191a..27428366cfe4db3a613a1634402dd903ceb12bc1 100644 (file)
@@ -3136,6 +3136,10 @@ void si_init_config(struct r600_context *rctx)
                        si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x16000012);
                        si_pm4_set_reg(pm4, R_028354_PA_SC_RASTER_CONFIG_1, 0x00000000);
                        break;
+               case CHIP_HAWAII:
+                       si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x3a00161a);
+                       si_pm4_set_reg(pm4, R_028354_PA_SC_RASTER_CONFIG_1, 0x0000002e);
+                       break;
                case CHIP_KAVERI:
                        /* XXX todo */
                case CHIP_KABINI:
index 021f4ebee35d12ffa4cec933de886c2b2db06fa1..aab39fcfc877a1e478d9dee81e1c6c0422e9afbd 100644 (file)
 #define     V_02803C_X_ADDR_SURF_P8_32X32_16X16                     0x0C
 #define     V_02803C_X_ADDR_SURF_P8_32X32_16X32                     0x0D
 #define     V_02803C_X_ADDR_SURF_P8_32X64_32X32                     0x0E
+#define     V_02803C_X_ADDR_SURF_P16_32X32_8X16                     0x10
+#define     V_02803C_X_ADDR_SURF_P16_32X32_16X16                    0x11
 #define   S_02803C_BANK_WIDTH(x)                                      (((x) & 0x03) << 13)
 #define   G_02803C_BANK_WIDTH(x)                                      (((x) >> 13) & 0x03)
 #define   C_02803C_BANK_WIDTH                                         0xFFFF9FFF
 #define     V_028350_RASTER_CONFIG_PKR_YSEL_1                       0x01
 #define     V_028350_RASTER_CONFIG_PKR_YSEL_2                       0x02
 #define     V_028350_RASTER_CONFIG_PKR_YSEL_3                       0x03
+#define   S_028350_PKR_XSEL2(x)                                       (((x) & 0x03) << 14)
+#define   G_028350_PKR_XSEL2(x)                                       (((x) >> 14) & 0x03)
+#define   C_028350_PKR_XSEL2                                          0xFFFF3FFF
+#define     V_028350_RASTER_CONFIG_PKR_XSEL2_0                      0x00
+#define     V_028350_RASTER_CONFIG_PKR_XSEL2_1                      0x01
+#define     V_028350_RASTER_CONFIG_PKR_XSEL2_2                      0x02
+#define     V_028350_RASTER_CONFIG_PKR_XSEL2_3                      0x03
 #define   S_028350_SC_MAP(x)                                          (((x) & 0x03) << 16)
 #define   G_028350_SC_MAP(x)                                          (((x) >> 16) & 0x03)
 #define   C_028350_SC_MAP                                             0xFFFCFFFF
index 8a8f180d8729ed573eb6a6aa08766095f1c9738a..18608109e729212d401da870973db1b2ea0f019d 100644 (file)
@@ -330,6 +330,7 @@ static boolean do_winsys_init(struct radeon_drm_winsys *ws)
     case CHIP_BONAIRE:
     case CHIP_KAVERI:
     case CHIP_KABINI:
+    case CHIP_HAWAII:
         ws->info.chip_class = CIK;
         break;
     }
index c0003711bee853bf56ed053e624cc1da853aa8be..d59f48ff3f4e10a81735a2d98024397305448673 100644 (file)
@@ -128,6 +128,7 @@ enum radeon_family {
     CHIP_BONAIRE,
     CHIP_KAVERI,
     CHIP_KABINI,
+    CHIP_HAWAII,
     CHIP_LAST,
 };