diff options
author | Emil Velikov <[email protected]> | 2018-01-19 16:53:47 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-01-22 16:31:15 +0000 |
commit | ef1df63046d2e129817cd39ca9a91fa7a1e9cf38 (patch) | |
tree | cd2b4abaa54844df8bc1d9917fd0549b4b38e260 /src/mesa/state_tracker/st_vdpau.h | |
parent | 33e6e5e6a45a63728053d92c366fe8b320199843 (diff) |
st/mesa: provide static inline st_init_vdpau_functions
The ifdef spaghetty in st_vdpau.c is rather confusing and misleading.
Simplily it by introducing a static inline helper noop (when
HAVE_ST_VDPAU is not defined) in the header.
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Christian König <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_vdpau.h')
-rw-r--r-- | src/mesa/state_tracker/st_vdpau.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_vdpau.h b/src/mesa/state_tracker/st_vdpau.h index 59c744305cf..6f4d46091f2 100644 --- a/src/mesa/state_tracker/st_vdpau.h +++ b/src/mesa/state_tracker/st_vdpau.h @@ -36,7 +36,12 @@ struct dd_function_table; +#ifdef HAVE_ST_VDPAU extern void st_init_vdpau_functions(struct dd_function_table *functions); +#else +static inline void +st_init_vdpau_functions(struct dd_function_table *functions) {} +#endif #endif /* ST_VDPAU_H */ |