Add notes about bufmgr initialization failures.

This commit is contained in:
Eric Anholt
2007-07-25 10:12:23 -07:00
parent d086f7ab2e
commit 9a4cc2e905
2 changed files with 3 additions and 0 deletions
@@ -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;
@@ -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,