aboutsummaryrefslogtreecommitdiffstats
path: root/libkms
diff options
context:
space:
mode:
authorJakob Bornecrantz2010-01-08 09:19:44 -0600
committerJakob Bornecrantz2010-01-08 09:19:44 -0600
commit8838bb1d63bdb8ffa808cd41b7e0ffd2e62ff7bc (patch)
tree29530d646a02ce2d5d07b0af4305e514a7d49d22 /libkms
parent5963c023b84daaacb91ae0aa4cf841acff63fd1f (diff)
downloadexternal-libdrm-8838bb1d63bdb8ffa808cd41b7e0ffd2e62ff7bc.tar.gz
external-libdrm-8838bb1d63bdb8ffa808cd41b7e0ffd2e62ff7bc.tar.xz
external-libdrm-8838bb1d63bdb8ffa808cd41b7e0ffd2e62ff7bc.zip
libkms/intel: Don't fail to create bo if we fail to tile
Diffstat (limited to 'libkms')
-rw-r--r--libkms/intel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libkms/intel.c b/libkms/intel.c
index 6dd739d5..784ee7b6 100644
--- a/libkms/intel.c
+++ b/libkms/intel.c
@@ -149,14 +149,16 @@ intel_bo_create(struct kms_driver *kms,
149 tile.stride = bo->base.pitch; 149 tile.stride = bo->base.pitch;
150 150
151 ret = drmCommandWriteRead(kms->fd, DRM_I915_GEM_SET_TILING, &tile, sizeof(tile)); 151 ret = drmCommandWriteRead(kms->fd, DRM_I915_GEM_SET_TILING, &tile, sizeof(tile));
152 if (ret != 0) 152#if 0
153 goto err_destroy; 153 if (ret) {
154 kms_bo_destroy(out);
155 return ret;
156 }
157#endif
154 } 158 }
155 159
156 return 0; 160 return 0;
157 161
158err_destroy:
159 kms_bo_destroy(out);
160err_free: 162err_free:
161 free(bo); 163 free(bo);
162 return ret; 164 return ret;