summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-08-20 09:29:23 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-08-22 10:15:32 -0400
commitfa83d3d1636c315bc43dd622d407eb058e3ef976 (patch)
tree0b9b07937da5637143b07365584e5b731c55a06d /src
parentd0323622ee9b97a5f246baffbb2c65930a78ed14 (diff)
radeon: disallow glamor on pre-R600 asics
I'm not sure they can handle the shaders properly, especially only older parts like r300. This will avoid display corruption problems reported by people using glamor on older asics by falling back to EXA if they try and enable glamor. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_glamor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
index d5279001..7f00d5b0 100644
--- a/src/radeon_glamor.c
+++ b/src/radeon_glamor.c
@@ -93,6 +93,12 @@ radeon_glamor_pre_init(ScrnInfoPtr scrn)
if (s && strcasecmp(s, "glamor") != 0)
return FALSE;
+ if (info->ChipFamily < CHIP_FAMILY_R600) {
+ xf86DrvMsg(scrn->scrnIndex, s ? X_ERROR : X_WARNING,
+ "glamor requires R600 or newer GPU, disabling.\n");
+ return FALSE;
+ }
+
if (scrn->depth < 24) {
xf86DrvMsg(scrn->scrnIndex, s ? X_ERROR : X_WARNING,
"glamor requires depth >= 24, disabling.\n");