Created attachment 80585 [details]
Way to big patch to "fix" this small problem
I was too lazy to fix all pipe_sampler_view_reference so in the meantime I
introduced pipe_sampler_view_reference_old.
It's not a fix.
/**
* Similar to pipe_sampler_view_reference() but always set the pointer to
* NULL and pass in an explicit context. Passing an explicit context is a
* work-around for fixing a dangling context pointer problem when textures
* are shared by multiple contexts. XXX fix this someday.
*/
static INLINE void
pipe_sampler_view_release
It does the same thing and I think It might have a same problem.