From eea416d0c9c1eb1144ac77a9098abc59b374fa52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 12 Dec 2022 22:17:26 -0500 Subject: [PATCH] cso: fix a regression from draw_vbo rework Fixes: c9b13a93385 - cso: remove cso_draw_vbo from all draws, call the driver or u_vbuf directly Reviewed-by: Brian Paul Part-of: --- src/gallium/auxiliary/cso_cache/cso_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index 9a92a16..a76296c 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -257,7 +257,8 @@ cso_init_vbuf(struct cso_context *cso, unsigned flags) cso->vbuf = u_vbuf_create(cso->base.pipe, &caps); cso->base.pipe->vbuf = cso->vbuf; cso->always_use_vbuf = caps.fallback_always; - cso->vbuf_current = caps.fallback_always ? cso->vbuf : NULL; + cso->vbuf_current = cso->base.pipe->vbuf = + caps.fallback_always ? cso->vbuf : NULL; } } -- 2.7.4