From 9a4cc2e90595a41d3d3cb6a752e4b5a089a213d2 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 25 Jul 2007 10:12:23 -0700 Subject: [PATCH] Add notes about bufmgr initialization failures. --- src/mesa/drivers/dri/common/dri_bufmgr_ttm.c | 1 + src/mesa/drivers/dri/i915tex/intel_screen.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c b/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c index 4c3624382c7..6e29199cd80 100644 --- a/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c +++ b/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c @@ -392,6 +392,7 @@ dri_bufmgr_ttm_init(int fd, unsigned int fence_type, test_alloc = dri_bo_alloc((dri_bufmgr *)bufmgr_ttm, "test allocation", 4096, 4096, DRM_BO_FLAG_MEM_LOCAL | DRM_BO_FLAG_MEM_TT); if (test_alloc == NULL) { + fprintf(stderr, "TTM test allocation failed\n"); _glthread_DESTROY_MUTEX(bufmgr_ttm->mutex); free(bufmgr_ttm); return NULL; diff --git a/src/mesa/drivers/dri/i915tex/intel_screen.c b/src/mesa/drivers/dri/i915tex/intel_screen.c index 89cf3ea9139..a0471019e43 100644 --- a/src/mesa/drivers/dri/i915tex/intel_screen.c +++ b/src/mesa/drivers/dri/i915tex/intel_screen.c @@ -536,6 +536,8 @@ intelInitDriver(__DRIscreenPrivate * sPriv) __func__, __LINE__); return GL_FALSE; } + fprintf(stderr, "[%s:%u] Failed to init TTM buffer manager, falling back" + " to classic.\n", __func__, __LINE__); intelScreen->bufmgr = dri_bufmgr_fake_init(intelScreen->tex.offset, intelScreen->tex.map, intelScreen->tex.size, -- 2.30.2