https://bugs.freedesktop.org/show_bug.cgi?id=84140
Christian König deathsimple@vodafone.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |deathsimple@vodafone.de
--- Comment #24 from Christian König deathsimple@vodafone.de --- Created attachment 107497 --> https://bugs.freedesktop.org/attachment.cgi?id=107497&action=edit Possible fix
(In reply to Marek Olšák from comment #21)
The context should be fully initialized to do anything no matter what the user API is, is that right, Christian?
Correct, yes. The context is the same we do CC conversion with and there it works perfectly fine. We also hold a lock to make sure that the context isn't used by more than one theread at the same time.
The auxiliary context is for cases when you don't have any context around and need to submit some commands. It saves the context_create/destroy overhead but not much else. If the context created by VDPAU isn't initialized properly, the aux context can be used (if it works).
Well, using the auxiliary context migth work around the problem but won't really solve it. Anyway a patch going this approach is attached, please test.