st/va: fix build with old libva
authorAndrew Randrianasulu <randrianasulu@gmail.com>
Fri, 23 Oct 2020 07:52:58 +0000 (10:52 +0300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 26 Oct 2020 14:21:34 +0000 (14:21 +0000)
Closes: #3682
Fixes: 0eccd158

Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7297>

src/gallium/frontends/va/va_private.h

index 0e7393f..81922c2 100644 (file)
 #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)