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:

committed by
Marge Bot

parent
638ebdea78
commit
5f686c308a
@@ -46,6 +46,10 @@
|
|||||||
#include "util/u_dynarray.h"
|
#include "util/u_dynarray.h"
|
||||||
#include "os/os_thread.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_DRIVER(ctx) ((vlVaDriver *)ctx->pDriverData)
|
||||||
#define VL_VA_PSCREEN(ctx) (VL_VA_DRIVER(ctx)->vscreen->pscreen)
|
#define VL_VA_PSCREEN(ctx) (VL_VA_DRIVER(ctx)->vscreen->pscreen)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user