From: Vinson Lee Date: Tue, 1 Oct 2013 03:48:14 +0000 (-0700) Subject: st/vdpau: Include u_surface.h for u_copy_rect. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b388c66fc8e002f442eafc669ca31d99a807b5a;p=mesa.git 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 --- 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"