diff options
author | Axel Davy <[email protected]> | 2019-05-26 22:59:30 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2019-06-03 20:37:13 +0200 |
commit | 5820ac6756898a1bd30bde04555437a55c378726 (patch) | |
tree | 4f7d80e48d629a4df6d7d0af69efbea916a526f7 /src/gallium/targets/d3dadapter9/drm.c | |
parent | 486bc1e17ecc975f98fb495bd2f8ae580eebbf6e (diff) |
d3dadapter9: Revert to old throttling limit value
Recently PIPE_CAP_MAX_FRAMES_IN_FLIGHT was changed from 2
to 1:
20909284f204091757c050aa40cfffaf3f981b9c
No driver seems to overwrite the default value.
One user reports severe regressions for some games.
For now, revert to the value 2 for nine.
Cc: "19.1" [email protected]
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/targets/d3dadapter9/drm.c')
-rw-r--r-- | src/gallium/targets/d3dadapter9/drm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index b0b9bb12f2c..657c619ac42 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -243,8 +243,10 @@ drm_create_adapter( int fd, return D3DERR_DRIVERINTERNALERROR; } - ctx->base.throttling_value = - ctx->base.hal->get_param(ctx->base.hal, PIPE_CAP_MAX_FRAMES_IN_FLIGHT); + /* Previously was set to PIPE_CAP_MAX_FRAMES_IN_FLIGHT, + * but the change of value of this cap to 1 seems to cause + * regressions. */ + ctx->base.throttling_value = 2; ctx->base.throttling = ctx->base.throttling_value > 0; driParseOptionInfo(&defaultInitOptions, __driConfigOptionsNine); |