Re: [Mesa-dev] [PATCH 3/7] st/va: in VaPutImage only destroy previous buffer if pipe->create_video_buffer succeeds

2015-10-19 Thread Emil Velikov
On 17 October 2015 at 00:14, Julien Isorce wrote: > If formats are not the same it seems to re-create the video > buffer with the right format. > But if the creation of this new video buffer fails the surface > loose its video buffer. > Let's just destroy the previous buffer on success. > The form

[Mesa-dev] [PATCH 3/7] st/va: in VaPutImage only destroy previous buffer if pipe->create_video_buffer succeeds

2015-10-16 Thread Julien Isorce
If formats are not the same it seems to re-create the video buffer with the right format. But if the creation of this new video buffer fails the surface loose its video buffer. Let's just destroy the previous buffer on success. Signed-off-by: Julien Isorce --- src/gallium/state_trackers/va/image