diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2019-10-26 18:36:27 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2019-10-26 18:37:38 -0400 |
commit | 5444cabcf0ab5cea614270f1ad1df1e1fccb3c2b (patch) | |
tree | 6ef40db8039b14d9b28a2ed6581ea289f6413f4f | |
parent | ef89b3c5ca9b2569ca61a9452d13a93edc832810 (diff) |
make error when failing to allocate surface more descriptive
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r-- | src/nv_accel_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nv_accel_common.c b/src/nv_accel_common.c index 5561708..fca1062 100644 --- a/src/nv_accel_common.c +++ b/src/nv_accel_common.c @@ -115,7 +115,7 @@ nouveau_allocate_surface(ScrnInfoPtr scrn, int width, int height, int bpp, ret = nouveau_bo_new(pNv->dev, flags, 0, *pitch * height, &cfg, bo); if (ret) { - ErrorF("%d\n", ret); + ErrorF("failure to allocate surface %dx%d@%d (pitch %d): %d\n", width, height, bpp, *pitch, ret); return FALSE; } |