Add notes about bufmgr initialization failures.
authorEric Anholt <eric@anholt.net>
Wed, 25 Jul 2007 17:12:23 +0000 (10:12 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 25 Jul 2007 17:12:23 +0000 (10:12 -0700)
src/mesa/drivers/dri/common/dri_bufmgr_ttm.c
src/mesa/drivers/dri/i915tex/intel_screen.c

index 4c3624382c73f783cee4632c74679aff1d86efb4..6e29199cd8085c64b87a565174838bfaf2f04d15 100644 (file)
@@ -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;
index 89cf3ea91393f2d86dda383ae780f236efd9e6d4..a0471019e43f86765fc314a1f85f73de7ecc4246 100644 (file)
@@ -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,