Mesa (main): nine: set CSO_NO_USER_VERTEX_BUFFERS for main cso context

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Aug 6 15:36:30 UTC 2021


Module: Mesa
Branch: main
Commit: 201d46b894b0e2d06e46ebfd583a83b4c00e9f03
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=201d46b894b0e2d06e46ebfd583a83b4c00e9f03

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Jul 14 13:29:14 2021 -0400

nine: set CSO_NO_USER_VERTEX_BUFFERS for main cso context

this skips vbuf for radeonsi and saves some cpu

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Axel Davy <davyaxel0 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11884>

---

 src/gallium/frontends/nine/device9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/frontends/nine/device9.c b/src/gallium/frontends/nine/device9.c
index 0479f8af86f..e6c5bac95a0 100644
--- a/src/gallium/frontends/nine/device9.c
+++ b/src/gallium/frontends/nine/device9.c
@@ -263,7 +263,7 @@ NineDevice9_ctor( struct NineDevice9 *This,
     This->pipe_sw = This->screen_sw->context_create(This->screen_sw, NULL, 0);
     if (!This->pipe_sw) { return E_OUTOFMEMORY; }
 
-    This->context.cso = cso_create_context(This->context.pipe, 0);
+    This->context.cso = cso_create_context(This->context.pipe, CSO_NO_USER_VERTEX_BUFFERS);
     if (!This->context.cso) { return E_OUTOFMEMORY; } /* also a guess */
     This->cso_sw = cso_create_context(This->pipe_sw, 0);
     if (!This->cso_sw) { return E_OUTOFMEMORY; }



More information about the mesa-commit mailing list