st/va: fix build with old libva

Closes: #3682
Fixes: 0eccd158

Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7297>
This commit is contained in:
Andrew Randrianasulu
2020-10-23 10:52:58 +03:00
committed by Marge Bot
parent 638ebdea78
commit 5f686c308a

View File

@@ -46,6 +46,10 @@
#include "util/u_dynarray.h"
#include "os/os_thread.h"
#ifndef VA_RT_FORMAT_YUV420_10
#define VA_RT_FORMAT_YUV420_10 VA_RT_FORMAT_YUV420_10BPP
#endif
#define VL_VA_DRIVER(ctx) ((vlVaDriver *)ctx->pDriverData)
#define VL_VA_PSCREEN(ctx) (VL_VA_DRIVER(ctx)->vscreen->pscreen)