libkms/intel: Don't fail to create bo if we fail to tile

main
Jakob Bornecrantz 2010-01-08 15:19:44 +00:00
parent 5963c023b8
commit 8838bb1d63
1 changed files with 6 additions and 4 deletions

View File

@ -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;