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

Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Mar 24 16:59:54 2023 -0400

zink: don't swizzle velems state for vstate draws

this isn't ever used, so don't touch it

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22116>

---

 src/gallium/drivers/zink/zink_draw.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_draw.cpp 
b/src/gallium/drivers/zink/zink_draw.cpp
index 9a97bc497b7..17860eea629 100644
--- a/src/gallium/drivers/zink/zink_draw.cpp
+++ b/src/gallium/drivers/zink/zink_draw.cpp
@@ -971,14 +971,11 @@ zink_draw_vertex_state(struct pipe_context *pctx,
                                 VK_PIPELINE_STAGE_VERTEX_INPUT_BIT);
    if (!ctx->unordered_blitting)
       res->obj->unordered_read = false;
-   struct zink_vertex_elements_hw_state *hw_state = 
ctx->gfx_pipeline_state.element_state;
-   ctx->gfx_pipeline_state.element_state = &((struct 
zink_vertex_state*)vstate)->velems.hw_state;
    zink_bind_vertex_state(ctx, vstate, partial_velem_mask);
 
    zink_draw<HAS_MULTIDRAW, DYNAMIC_STATE, BATCH_CHANGED, true>(pctx, &dinfo, 
0, NULL, draws, num_draws, vstate, partial_velem_mask);
    /* ensure ctx->vertex_buffers gets rebound on next non-vstate draw */
    ctx->vertex_buffers_dirty = true;
-   ctx->gfx_pipeline_state.element_state = hw_state;
 
    if (info.take_vertex_state_ownership)
       pipe_vertex_state_reference(&vstate, NULL);

Reply via email to