From fa83d3d1636c315bc43dd622d407eb058e3ef976 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Tue, 20 Aug 2013 09:29:23 -0400 Subject: radeon: disallow glamor on pre-R600 asics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Michel Dänzer --- src/radeon_glamor.c | 6 ++++++ 1 file changed, 6 insertions(+) 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"); -- cgit v1.2.3