st/xvmc: Include u_surface.h for u_copy_rect.
authorVinson Lee <vlee@freedesktop.org>
Tue, 1 Oct 2013 03:11:24 +0000 (20:11 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 1 Oct 2013 03:15:53 +0000 (20:15 -0700)
This patch fixes the build error introduced with commit
81bb98e928861260170c16f5c3e0d80492251d6b.

  CC     subpicture.lo
subpicture.c: In function 'upload_sampler':
subpicture.c:181:4: error: implicit declaration of function 'util_copy_rect' [-Werror=implicit-function-declaration]
subpicture.c: In function 'XvMCClearSubpicture':
subpicture.c:304:21: error: storage size of 'uc' isn't known
subpicture.c:328:4: error: implicit declaration of function 'util_fill_rect' [-Werror=implicit-function-declaration]
subpicture.c:304:21: warning: unused variable 'uc' [-Wunused-variable]

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/gallium/state_trackers/xvmc/subpicture.c

index e38f6f7c7f85f415320382ff6fa260b0a21d9a84..ef8e578b48579e4952173da9073f8c3ccfdb3070 100644 (file)
@@ -38,6 +38,7 @@
 #include "util/u_math.h"
 #include "util/u_format.h"
 #include "util/u_sampler.h"
+#include "util/u_surface.h"
 #include "util/u_rect.h"
 #include "vl/vl_winsys.h"