From 97ec1de8f34c0379a4cd00fb1f21a6bbc9e00a6c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 6 Aug 2022 17:28:59 -0400 Subject: [PATCH] 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 Part-of: --- src/gallium/auxiliary/cso_cache/cso_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index f2aa7c0..23ab264 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -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; } } -- 2.7.4