[Mesa-dev] RFC: Fixing XBMC crash with NV_vdpau_interop
Christian König
deathsimple at vodafone.de
Sat Mar 22 13:49:36 PDT 2014
Hi guys,
recently some XBMC users complained about crashes with the relatively
new NV_vdpau_interop support.
That turned out to be a problem with how st_atom_texture.c caches the
sampler view for a texture. Since the texture in question is shared
between two GLX contexts the pipe object the sampler view was originally
created for doesn't necessary match the pipe object it is used with.
Now my question is am I missing something or is this case really not
correctly supported? Where is the check if a texture is used in more
than one context? The attached patch fixes the issue, but I'm not sure
if it is the right approach.
Please comment,
Christian.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-st-mesa-recreate-sampler-view-on-context-change.patch
Type: text/x-diff
Size: 1494 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140322/facd443e/attachment.patch>
More information about the mesa-dev
mailing list