gallium/swr: fix tessellation state save/restore
authorJan Zielinski <jan.zielinski@intel.com>
Tue, 28 Jan 2020 11:09:11 +0000 (12:09 +0100)
committerJan Zielinski <jan.zielinski@intel.com>
Tue, 28 Jan 2020 12:55:47 +0000 (13:55 +0100)
commitab7ac1ffda0f2d58a4b646a1a26aeffb8a8ec41c
tree339da09cbd69e1add76bbf30655172ab6deba4ca
parentfe5267d32233192b57969a19d5733e874e63bb15
gallium/swr: fix tessellation state save/restore

Tessellation state should be saved with TCS/TES state
when binding new state and restored if old state
is set again.

Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3596>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3596>
src/gallium/drivers/swr/swr_context.h
src/gallium/drivers/swr/swr_state.cpp
src/gallium/drivers/swr/swr_state.h