diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2012-07-05 20:14:48 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2012-07-10 17:15:01 +0200 |
commit | ef8a404391036d8aa814dbda2407c789b8a64b92 (patch) | |
tree | 862e72e5eb0c4035553f1642590039ed0f0cc587 /src/radeon_kms.c | |
parent | e9edd2f5002c642b59f028b3ec076d604ae8ce9d (diff) |
Initial SI support.
Defaults to shadowfb. 3D acceleration is available with glamor. 2D
acceleration is disabled until the radeonsi driver can handle glamor's
shaders.
v2: add chip flags (Alex Deucher)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 5d9ccff6..5cc362f9 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -418,6 +418,7 @@ static Bool RADEONPreInitAccel_KMS(ScrnInfoPtr pScrn) (!RADEONIsAccelWorking(pScrn))) { xf86DrvMsg(pScrn->scrnIndex, X_INFO, "GPU accel disabled or not working, using shadowfb for KMS\n"); +shadowfb: info->r600_shadow_fb = TRUE; if (!xf86LoadSubModule(pScrn, "shadow")) info->r600_shadow_fb = FALSE; @@ -427,7 +428,9 @@ static Bool RADEONPreInitAccel_KMS(ScrnInfoPtr pScrn) if (radeon_glamor_pre_init(pScrn)) return TRUE; - if (info->ChipFamily == CHIP_FAMILY_PALM) { + if (info->ChipFamily >= CHIP_FAMILY_TAHITI) { + goto shadowfb; + } else if (info->ChipFamily == CHIP_FAMILY_PALM) { info->accel_state->allowHWDFS = RADEONIsFusionGARTWorking(pScrn); } else info->accel_state->allowHWDFS = TRUE; |