projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5963c02
)
libkms/intel: Don't fail to create bo if we fail to tile
author
Jakob Bornecrantz
<jakob@vmware.com>
Fri, 8 Jan 2010 15:19:44 +0000
(15:19 +0000)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Fri, 8 Jan 2010 15:19:44 +0000
(15:19 +0000)
libkms/intel.c
patch
|
blob
|
history
diff --git
a/libkms/intel.c
b/libkms/intel.c
index
6dd739d
..
784ee7b
100644
(file)
--- a/
libkms/intel.c
+++ b/
libkms/intel.c
@@
-149,14
+149,16
@@
intel_bo_create(struct kms_driver *kms,
tile.stride = bo->base.pitch;
ret = drmCommandWriteRead(kms->fd, DRM_I915_GEM_SET_TILING, &tile, sizeof(tile));
- if (ret != 0)
- goto err_destroy;
+#if 0
+ if (ret) {
+ kms_bo_destroy(out);
+ return ret;
+ }
+#endif
}
return 0;
-err_destroy:
- kms_bo_destroy(out);
err_free:
free(bo);
return ret;