diff options
author | Marek Olšák <[email protected]> | 2017-10-20 18:55:48 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-20 18:56:20 +0200 |
commit | 46f452dd5f9cac7d0ec69bca2f914bcee4be1efd (patch) | |
tree | 492cdae00a85aab5596e96e88adde1d425fafd73 | |
parent | 65ccee2dc2d1408765a93f92df81f4f383a23c47 (diff) |
st/mesa: correct a u_vbuf comment
trivial.
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 69dd396a1cb..5d8dd8b97ef 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -313,9 +313,11 @@ st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe, st->can_bind_const_buffer_as_vertex = screen->get_param(screen, PIPE_CAP_CAN_BIND_CONST_BUFFER_AS_VERTEX); - /* Drivers still have to upload zero-stride vertex attribs manually - * with the GL core profile, but they don't have to deal with any complex - * user vertex buffer uploads. + /* st/mesa always uploads zero-stride vertex attribs, and other user + * vertex buffers are only possible with a compatibility profile. + * So tell the u_vbuf module that user VBOs are not possible with the Core + * profile, so that u_vbuf is bypassed completely if there is nothing else + * to do. */ unsigned vbuf_flags = ctx->API == API_OPENGL_CORE ? U_VBUF_FLAG_NO_USER_VBOS : 0; |