summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-04-23 21:23:22 -0400
committerMarek Olšák <[email protected]>2019-04-24 10:41:04 -0400
commit09e4771af9141fc3a0d32f4a512ab6c6d592181a (patch)
tree8a836b9631e699cdb652289d1fe6cca46f9dedcb /src/gallium/auxiliary
parentf2041d2a9266ec14270b6da9bf9ce2b54d555ebd (diff)
gallium: set PIPE_CAP_MAX_FRAMES_IN_FLIGHT to 2 for all drivers
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index dffd0436cb0..384e0ac5db6 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -352,9 +352,11 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
return 0;
case PIPE_CAP_COMPUTE_SHADER_DERIVATIVES:
- case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
return 0;
+ case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
+ return 2;
+
case PIPE_CAP_DMABUF:
#ifdef PIPE_OS_LINUX
return 1;