From 9b388c66fc8e002f442eafc669ca31d99a807b5a Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 30 Sep 2013 20:48:14 -0700 Subject: [PATCH] st/vdpau: Include u_surface.h for u_copy_rect. Fix build errors. CC surface.lo surface.c: In function 'vlVdpVideoSurfaceGetBitsYCbCr': surface.c:247:10: error: implicit declaration of function 'util_copy_rect' [-Werror=implicit-function-declaration] CC output.lo output.c: In function 'vlVdpOutputSurfaceGetBitsNative': output.c:216:4: error: implicit declaration of function 'util_copy_rect' [-Werror=implicit-function-declaration] Signed-off-by: Vinson Lee --- src/gallium/state_trackers/vdpau/output.c | 1 + src/gallium/state_trackers/vdpau/surface.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c index 7266cdb8afa..dd72f6f63da 100644 --- a/src/gallium/state_trackers/vdpau/output.c +++ b/src/gallium/state_trackers/vdpau/output.c @@ -32,6 +32,7 @@ #include "util/u_memory.h" #include "util/u_sampler.h" #include "util/u_format.h" +#include "util/u_surface.h" #include "vl/vl_csc.h" diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c index 8e39d68a706..e371bcaa615 100644 --- a/src/gallium/state_trackers/vdpau/surface.c +++ b/src/gallium/state_trackers/vdpau/surface.c @@ -33,6 +33,7 @@ #include "util/u_memory.h" #include "util/u_debug.h" #include "util/u_rect.h" +#include "util/u_surface.h" #include "vl/vl_defines.h" #include "vdpau_private.h" -- 2.30.2