https://bugs.freedesktop.org/show_bug.cgi?id=111236
--- Comment #8 from Michel Dänzer michel@daenzer.net --- Created attachment 145171 --> https://bugs.freedesktop.org/attachment.cgi?id=145171&action=edit si_video_buffer_create fixups
I've traced this to the si_video_buffer_create function, which makes multiple pipe_resources use the same buffer, but doesn't update the bo_size or make sure si_can_invalidate_texture returns false for those resources. So si_texture_transfer_map may allocate a new buffer of the original bo_size, which is smaller than the combined size of the resources => its CPU mapping doesn't always cover the calculated address.
This quick'n'dirty patch prevents the crash, but now totem just hangs for me.