st/va: delay calling begin_frame until we have all parameters
If begin_frame is called before setting intra_matrix and non_intra_matrix it leads to segmentation faults when vl_mpeg12_decoder.c is used. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92634 Signed-off-by:Nayan Deshmukh <nayan26deshmukh@gmail.com> Reviewed-by:
Christian König <christian.koenig@amd.com> (cherry picked from commit 4b0e9bab) Squashed with commit: st/va: make sure that we call begin_frame() only once v2 This fixes "st/va: delay calling begin_frame until we have all parameters". v2: call begin frame after decoder (re)creation as well. Signed-off-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Nayan Deshmukh <nayan26deshmukh@gmail.com> Tested-by:
Andy Furniss <adf.lists@gmail.com> (cherry picked from commit 1338d912) [Emil Velikov: resolve trivial conflicts] Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Conflicts: src/gallium/state_trackers/va/va_private.h