d3dadapter9: Revert to old throttling limit value
authorAxel Davy <davyaxel0@gmail.com>
Sun, 26 May 2019 20:59:30 +0000 (22:59 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Mon, 3 Jun 2019 18:37:13 +0000 (20:37 +0200)
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" mesa-stable@lists.freedesktop.org
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/targets/d3dadapter9/drm.c

index b0b9bb12f2c3adf937c027b635781fd1ddd3a5c2..657c619ac42b7741bbb68db251aacdd2a426a4aa 100644 (file)
@@ -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);