st/mesa: fix 2 crashes in st_tgsi_lower_yuv
authorMarek Olšák <marek.olsak@amd.com>
Thu, 25 Apr 2019 22:44:51 +0000 (18:44 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 11 May 2019 00:51:16 +0000 (20:51 -0400)
commit83435e748f7c2c6bf1c946f2a489cce40b9ea05f
tree1e3158905dad93224093884bee753cab6a052f19
parent72ccefb5298203c6e1c4b40b60b5dd356900ad47
st/mesa: fix 2 crashes in st_tgsi_lower_yuv

src/mesa/state_tracker/st_tgsi_lower_yuv.c:68: void reg_dst(struct
 tgsi_full_dst_register *, const struct tgsi_full_dst_register *, unsigned
 int): assertion "dst->Register.WriteMask" failed

The second crash was due to insufficient allocated size for TGSI
instructions.

Cc: 19.0 19.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/mesa/state_tracker/st_tgsi_lower_yuv.c