diff options
author | Marek Olšák <[email protected]> | 2019-04-22 17:35:27 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-04-23 21:20:24 -0400 |
commit | e3841368f34afe844bab25010b89f497cacc1dad (patch) | |
tree | 5dcaf1e355321eff38c1c7727ef02a05bbd03cbf /src/gallium/drivers/freedreno/freedreno_screen.c | |
parent | a20800f49d1d665c4d93dcca87face1320423476 (diff) |
gallium: replace DRM_CONF_THROTTLE with PIPE_CAP_MAX_FRAMES_IN_FLIGHT
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index fdf26390718..38a459e73aa 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -380,6 +380,9 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) /* only a4xx, requires new enough kernel so we know max_freq: */ return (screen->max_freq > 0) && (is_a4xx(screen) || is_a5xx(screen) || is_a6xx(screen)); + case PIPE_CAP_MAX_FRAMES_IN_FLIGHT: + return 2; + case PIPE_CAP_VENDOR_ID: return 0x5143; case PIPE_CAP_DEVICE_ID: |