OSDN Git Service

Avoid assertion fault when trying to draw a big picture
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 1 Jun 2017 15:46:18 +0000 (23:46 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 6 Jun 2017 00:33:22 +0000 (08:33 +0800)
commite4072fb1f2cccb468fc84c67c5c51e649affec48
treedb72216a3c47e05d3a547eb7551fddfc353f7739
parent61785ae8eead50bfe785b5cbaacf42a49e1d0fd3
Avoid assertion fault when trying to draw a big picture

The display server doesn't support the big picture, so the returned
buffer is NULL. The fix returns a NULL buffer instead of assertion fault
in libva-x11, the backend driver should handle this case in a right way
as well.

This fixes https://github.com/01org/libva/issues/51

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
va/x11/dri2_util.c