st/mesa: provide static inline st_init_vdpau_functions
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 19 Jan 2018 16:53:47 +0000 (16:53 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 22 Jan 2018 16:31:15 +0000 (16:31 +0000)
commitef1df63046d2e129817cd39ca9a91fa7a1e9cf38
treecd2b4abaa54844df8bc1d9917fd0549b4b38e260
parent33e6e5e6a45a63728053d92c366fe8b320199843
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 <emil.velikov@collabora.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/mesa/state_tracker/st_vdpau.c
src/mesa/state_tracker/st_vdpau.h