[PATCH] Fail more gracefully when drm surface manager can't be initialized
Michel Dänzer
michel at daenzer.net
Thu May 10 08:08:55 PDT 2012
On Don, 2012-05-10 at 16:56 +0200, Anisse Astier wrote:
> Should make bugs like https://bugs.freedesktop.org/show_bug.cgi?id=48138
> easier to diagnose.
FWIW, commit 1e656cd5973bbcf85b63406638ede0bccd65e28f should help for
that already.
> Signed-off-by: Anisse Astier <anisse at astier.eu>
> ---
> src/radeon_kms.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
> index edc8fe3..d2089d1 100644
> --- a/src/radeon_kms.c
> +++ b/src/radeon_kms.c
> @@ -947,6 +947,11 @@ Bool RADEONScreenInit_KMS(int scrnIndex, ScreenPtr pScreen,
> front_ptr = info->FB;
>
> info->surf_man = radeon_surface_manager_new(info->dri->drmFD);
> + if(!info->surf_man) {
> + xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
> + "failed to initialise surface manager");
> + return FALSE;
> + }
> if (!info->bufmgr)
> info->bufmgr = radeon_bo_manager_gem_ctor(info->dri->drmFD);
> if (!info->bufmgr) {
This would probably break pre-R600 cards, which aren't supported by the
surface manager.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer
More information about the xorg-driver-ati
mailing list