diff options
author | Patrick Rudolph <[email protected]> | 2016-10-26 17:11:00 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:23 +0100 |
commit | ac2927335bc7cd4994d2fc0906eb328773b1f923 (patch) | |
tree | 3dc5241c7c4dc691ad80852c6aab42ef90f1aee1 /src/gallium/targets/d3dadapter9 | |
parent | 2c371a25a8800883dda353853cca6b5a2ba71bb4 (diff) |
st/nine: Implement gallium nine CSMT
Use an offloading thread for all nine_context functions.
Macros are used to ease the reading of the code.
Signed-off-by: Patrick Rudolph <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/targets/d3dadapter9')
-rw-r--r-- | src/gallium/targets/d3dadapter9/drm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index e0c2e26c02f..6163734185a 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -58,6 +58,7 @@ DRI_CONF_BEGIN DRI_CONF_NINE_THREADSUBMIT("false") DRI_CONF_NINE_ALLOWDISCARDDELAYEDRELEASE("true") DRI_CONF_NINE_TEARFREEDISCARD("false") + DRI_CONF_NINE_CSMT(-1) DRI_CONF_SECTION_END DRI_CONF_END; @@ -301,6 +302,11 @@ drm_create_adapter( int fd, ctx->base.tearfree_discard = FALSE; } + if (driCheckOption(&userInitOptions, "csmt_force", DRI_INT)) + ctx->base.csmt_force = driQueryOptioni(&userInitOptions, "csmt_force"); + else + ctx->base.csmt_force = -1; + driDestroyOptionCache(&userInitOptions); driDestroyOptionInfo(&defaultInitOptions); |