radeonsi: add support for Oland chips
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Jan 2013 00:08:07 +0000 (19:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Feb 2013 20:43:21 +0000 (15:43 -0500)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Note: this is a candidate for the 9.1 branch

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 c88a613b8b2dfe65492be962c4886328f574d00c..744dac4be0ce3a589596620d2837fe4b8fb0197a 100644 (file)
@@ -280,6 +280,7 @@ static const char *r600_get_family_name(enum radeon_family family)
        case CHIP_TAHITI: return "AMD TAHITI";
        case CHIP_PITCAIRN: return "AMD PITCAIRN";
        case CHIP_VERDE: return "AMD CAPE VERDE";
+       case CHIP_OLAND: return "AMD OLAND";
        default: return "AMD unknown";
        }
 }
index e81079edb56473167dbd577438819b18f3e2043b..6478e9a42dd5d9b3afc2cc454a8523cf12c44abf 100644 (file)
@@ -2665,6 +2665,9 @@ void si_init_config(struct r600_context *rctx)
        default:
                si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x0000124a);
                break;
+       case CHIP_OLAND:
+               si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x00000082);
+               break;
        }
 
        si_pm4_set_state(rctx, init, pm4);
index d23220df8a81ae00869247594d77cfcf19df589b..62ba4b1f713f30b6e63a71a4e866ce98a61a886e 100644 (file)
@@ -312,6 +312,7 @@ static boolean do_winsys_init(struct radeon_drm_winsys *ws)
     case CHIP_TAHITI:
     case CHIP_PITCAIRN:
     case CHIP_VERDE:
+    case CHIP_OLAND:
         ws->info.chip_class = TAHITI;
         break;
     }
index 8b64ef2e1a17e3d41c504afd289f7140333ab7c5..c57a87d7a9b0cf139f690f8b190c02abe5d5fec2 100644 (file)
@@ -123,6 +123,7 @@ enum radeon_family {
     CHIP_TAHITI,
     CHIP_PITCAIRN,
     CHIP_VERDE,
+    CHIP_OLAND,
     CHIP_LAST,
 };