- if (!software_device) {
- /*
- * The software renderer isn't a DRM device and doesn't support
- * pipe_loader_configuration.
- * The KMS winsys supports SHARE_FD, so skip this check.
- */
- dmabuf_ret = pipe_loader_configuration(ctx->dev, DRM_CONF_SHARE_FD);
- throttle_ret = pipe_loader_configuration(ctx->dev, DRM_CONF_THROTTLE);
- if (!dmabuf_ret || !dmabuf_ret->val.val_bool) {
- ERR("The driver is not capable of dma-buf sharing."
- "Abandon to load nine state tracker\n");
- drm_destroy(&ctx->base);
- return D3DERR_DRIVERINTERNALERROR;
- }
+ dmabuf_ret = pipe_loader_configuration(ctx->dev, DRM_CONF_SHARE_FD);
+ throttle_ret = pipe_loader_configuration(ctx->dev, DRM_CONF_THROTTLE);
+ if (!dmabuf_ret || !dmabuf_ret->val.val_bool) {
+ ERR("The driver is not capable of dma-buf sharing."
+ "Abandon to load nine state tracker\n");
+ drm_destroy(&ctx->base);
+ return D3DERR_DRIVERINTERNALERROR;