mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
cso: start without u_vbuf by default if it's not always used
no functional change, but it's convenient for future work Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19129>
This commit is contained in:
parent
8e024e2870
commit
97ec1de8f3
1 changed files with 1 additions and 1 deletions
|
|
@ -244,8 +244,8 @@ cso_init_vbuf(struct cso_context *cso, unsigned flags)
|
|||
(uses_user_vertex_buffers &&
|
||||
caps.fallback_only_for_user_vbuffers)) {
|
||||
cso->vbuf = u_vbuf_create(cso->pipe, &caps);
|
||||
cso->vbuf_current = cso->vbuf;
|
||||
cso->always_use_vbuf = caps.fallback_always;
|
||||
cso->vbuf_current = caps.fallback_always ? cso->vbuf : NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue