Module: Mesa
Branch: master
Commit: 79bd8edd87e8d1f72b0d80918463319653a91a27
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=79bd8edd87e8d1f72b0d80918463319653a91a27

Author: jzielins <[email protected]>
Date:   Fri Nov 20 16:01:39 2020 +0100

swr: Pass draw start information to state update mechanism

This fixes crash in many workloads/tests

Reviewed-by: Krzysztof Raszkowski <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7728>

---

 src/gallium/drivers/swr/swr_draw.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/swr_draw.cpp 
b/src/gallium/drivers/swr/swr_draw.cpp
index 1fa045326f2..1fde87bc53b 100644
--- a/src/gallium/drivers/swr/swr_draw.cpp
+++ b/src/gallium/drivers/swr/swr_draw.cpp
@@ -63,7 +63,7 @@ swr_draw_vbo(struct pipe_context *pipe, const struct 
pipe_draw_info *info,
       ctx->dirty |= SWR_NEW_VERTEX;
 
    /* Update derived state, pass draw info to update function. */
-   swr_update_derived(pipe, info);
+   swr_update_derived(pipe, info, draws);
 
    swr_update_draw_context(ctx);
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to