From 5cc3ab0ba0eed6e730eac869953c052f8b1e9ec2 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 11 Mar 2020 17:19:10 -0400 Subject: 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 Tested-by: Marge Bot Part-of: --- src/gallium/auxiliary/util/u_screen.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/auxiliary') 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_*"); } -- cgit v1.2.3