diff options
author | Marek Olšák <[email protected]> | 2020-03-11 17:19:10 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-21 03:39:51 +0000 |
commit | 5cc3ab0ba0eed6e730eac869953c052f8b1e9ec2 (patch) | |
tree | 40ce8433598dc70792d3c0ff223df56f0a8ec0a6 /src/gallium/auxiliary | |
parent | 11d3aa5e7bc7dc60f18e43adf35d43082feb759e (diff) |
vbo,gallium: make glBegin/End buffer size configurable by drivers
The default is 512 KB, but radeonsi wants 4 MB.
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4154>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4154>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 318bce1a0f0..d770a84c21a 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -422,6 +422,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_PSIZ_CLAMPED: return 0; + case PIPE_CAP_GL_BEGIN_END_BUFFER_SIZE: + return 512 * 1024; + default: unreachable("bad PIPE_CAP_*"); } |