radeonsi: add support for hainan chips
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2013 20:24:02 +0000 (16:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 May 2013 14:51:10 +0000 (10:51 -0400)
Note: this is a candidate for the 9.1 branch

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/radeonsi_pipe.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 0e6b94176526626c6e99a62917df916b3d1e8274..fa400970e6f969c58774cb86fe2536e9cc4cff6c 100644 (file)
@@ -300,6 +300,7 @@ static const char *r600_get_family_name(enum radeon_family family)
        case CHIP_PITCAIRN: return "AMD PITCAIRN";
        case CHIP_VERDE: return "AMD CAPE VERDE";
        case CHIP_OLAND: return "AMD OLAND";
+       case CHIP_HAINAN: return "AMD HAINAN";
        default: return "AMD unknown";
        }
 }
index be40fdfbc5b353b846cf578766b3b9c11060b36c..ed95b1d8d8979f10cc5659a20cbda17c4797ad6e 100644 (file)
@@ -2791,6 +2791,9 @@ void si_init_config(struct r600_context *rctx)
        case CHIP_OLAND:
                si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x00000082);
                break;
+       case CHIP_HAINAN:
+               si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x00000000);
+               break;
        default:
                si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x00000000);
                break;
index 368902039c48a61283ca9d3f9ae88388b852c147..15d5d3157eb0dadbc39f456ed8c0249f6e66ef78 100644 (file)
@@ -321,6 +321,7 @@ static boolean do_winsys_init(struct radeon_drm_winsys *ws)
     case CHIP_PITCAIRN:
     case CHIP_VERDE:
     case CHIP_OLAND:
+    case CHIP_HAINAN:
         ws->info.chip_class = TAHITI;
         break;
     }
index 1c2fb698981ad3c9c6071d8455875c337ecfe919..d0f16e1800fe2b96363e754657f3cb422c9d826b 100644 (file)
@@ -124,6 +124,7 @@ enum radeon_family {
     CHIP_PITCAIRN,
     CHIP_VERDE,
     CHIP_OLAND,
+    CHIP_HAINAN,
     CHIP_LAST,
 };