lima: avoid stomping over bound shader state when creating new shaders
authorEric Anholt <eric@anholt.net>
Tue, 16 Feb 2021 20:55:54 +0000 (12:55 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 4 Mar 2021 18:34:35 +0000 (18:34 +0000)
commit3bdd39f03c8c2bba46a951e005f504a58c1c9899
treecdc556b2a0a09f5382fba2f02416eff9be519e37
parent4ac3f850540f8fffd15e4994de6bbf54b17dc649
lima: avoid stomping over bound shader state when creating new shaders

It shouldn't affect bound program state, and the current context state
shouldn't be relevant for shader creation precompiles anyway (level load
isn't going to have the eventual set of sampler views bound when you go to
draw with that shader).

Closes: #4306
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9089>
src/gallium/drivers/lima/lima_program.c