diff options
author | Marek Olšák <[email protected]> | 2019-04-22 17:50:00 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-04-23 21:20:26 -0400 |
commit | 8ae50e6004e6279493d7ea771f540cc871a90149 (patch) | |
tree | 802ab37e8ae8bf276ffc5534d7f8cc349833e4b3 /src/gallium/targets/d3dadapter9 | |
parent | e3841368f34afe844bab25010b89f497cacc1dad (diff) |
gallium: replace DRM_CONF_SHARE_FD with PIPE_CAP_DMABUF
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/targets/d3dadapter9')
-rw-r--r-- | src/gallium/targets/d3dadapter9/drm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index 1c8460f7f03..4418ceb93d6 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -205,7 +205,6 @@ drm_create_adapter( int fd, struct d3dadapter9drm_context *ctx = CALLOC_STRUCT(d3dadapter9drm_context); HRESULT hr; bool different_device; - const struct drm_conf_ret *dmabuf_ret = NULL; driOptionCache defaultInitOptions; driOptionCache userInitOptions; int throttling_value_user = -2; @@ -235,8 +234,7 @@ drm_create_adapter( int fd, return D3DERR_DRIVERINTERNALERROR; } - dmabuf_ret = pipe_loader_configuration(ctx->dev, DRM_CONF_SHARE_FD); - if (!dmabuf_ret || !dmabuf_ret->val.val_bool) { + if (!ctx->base.hal->get_param(ctx->base.hal, PIPE_CAP_DMABUF)) { ERR("The driver is not capable of dma-buf sharing." "Abandon to load nine state tracker\n"); drm_destroy(&ctx->base); |