swr: Pass draw start information to state update mechanism

This fixes crash in many workloads/tests

Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7728>
This commit is contained in:
jzielins 2020-11-20 16:01:39 +01:00 committed by Marge Bot
parent c83cc49f6b
commit 79bd8edd87

View file

@ -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);