st/va: delay calling begin_frame until we have all parameters
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Fri, 13 Jan 2017 13:15:31 +0000 (18:45 +0530)
committerChristian König <christian.koenig@amd.com>
Mon, 16 Jan 2017 14:09:01 +0000 (15:09 +0100)
commit4b0e9babc673bc4dd834127086982e290b2a3a42
tree72aa766d0cc0c69572e6c908547a7a17b573125a
parent5597b2b243d96e50b4c151db8200487eae0c4997
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>
src/gallium/state_trackers/va/picture.c