Skip to content
Snippets Groups Projects
Commit 513fb543 authored by Roland Scheidegger's avatar Roland Scheidegger Committed by Marge Bot
Browse files

aux/cso: try harder to keep cso state in sync on cso context unbind


Before a73cb106, cso contexts were never reused, but now that they
are we need to be extra careful that the state in the cso context and
in the pipe context matches even after an unbind, since when the cso
context is reused the state might otherwise get out of sync (as there is
no concept of "initial state", basically cso always relied on the default
values being the same both in cso and the drivers).
This fixes some errors we've seen internally with lavapipe.

Fixes: a73cb106 ("aux/cso: split cso_destroy_context into unbind and a destroy functions")
Reviewed-By: default avatarMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Part-of: <mesa/mesa!12261>
parent 4b8f4bae
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment