From ecbbbae5c3ed012a5e97a90488545eb33cec2545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 10 Feb 2025 16:35:46 -0500 Subject: [PATCH] nine: always update vertex buffers after updating vertex elements gallium will require this. (radeonsi won't work otherwise) Acked-By: Mike Blumenkrantz Part-of: --- src/gallium/frontends/nine/nine_state.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/nine/nine_state.c b/src/gallium/frontends/nine/nine_state.c index ee6c0d10cfe..bbc3a9f1a19 100644 --- a/src/gallium/frontends/nine/nine_state.c +++ b/src/gallium/frontends/nine/nine_state.c @@ -1261,8 +1261,10 @@ nine_update_state(struct NineDevice9 *device) prepare_dsa(device); if (group & NINE_STATE_VIEWPORT) update_viewport(device); - if (group & (NINE_STATE_VDECL | NINE_STATE_VS | NINE_STATE_STREAMFREQ)) + if (group & (NINE_STATE_VDECL | NINE_STATE_VS | NINE_STATE_STREAMFREQ)) { update_vertex_elements(device); + context->changed.vtxbuf_dirty = true; + } } if (likely(group & (NINE_STATE_FREQUENT | NINE_STATE_VS | NINE_STATE_PS | NINE_STATE_SWVP))) {