• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/libva


Commit MetaInfo

Revision92e17d62fd6a9249906e284a28926010dc2c1639 (tree)
Time2010-03-24 11:43:53
AuthorAustin Yuan <shengquan.yuan@gmai...>
CommiterAustin Yuan

Log Message

Merge branch 'master' of git+ssh://AustinYuan@git.freedesktop.org/git/libva into sync-fdo-master

Change Summary

Incremental Difference

--- a/Makefile.am
+++ b/Makefile.am
@@ -22,7 +22,7 @@
2222
2323 AUTOMAKE_OPTIONS = foreign
2424
25-SUBDIRS = src test
25+SUBDIRS = va test
2626 if BUILD_DUMMY_DRIVER
2727 SUBDIRS += dummy_drv_video
2828 endif
--- a/configure.ac
+++ b/configure.ac
@@ -116,9 +116,9 @@ AC_SUBST([libvabackendlib])
116116
117117 AC_OUTPUT([
118118 Makefile
119- src/Makefile
120- src/va_version.h
121- src/x11/Makefile
119+ va/Makefile
120+ va/va_version.h
121+ va/x11/Makefile
122122 dummy_drv_video/Makefile
123123 i965_drv_video/Makefile
124124 i965_drv_video/shaders/Makefile
--- a/dummy_drv_video/Makefile.am
+++ b/dummy_drv_video/Makefile.am
@@ -23,10 +23,10 @@
2323 dummy_drv_video_la_LTLIBRARIES = dummy_drv_video.la
2424 dummy_drv_video_ladir = @LIBVA_DRIVERS_PATH@
2525 dummy_drv_video_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,--no-undefined
26-dummy_drv_video_la_LIBADD = $(top_srcdir)/src/$(libvabackendlib)
27-dummy_drv_video_la_DEPENDENCIES = $(top_srcdir)/src/$(libvabackendlib)
26+dummy_drv_video_la_LIBADD = $(top_srcdir)/va/$(libvabackendlib)
27+dummy_drv_video_la_DEPENDENCIES = $(top_srcdir)/va/$(libvabackendlib)
2828
29-AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/../../include/external/ -I$(top_srcdir)/../../include/kmd -DIN_LIBVA
29+AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/../../include/external/ -I$(top_srcdir)/../../include/kmd
3030 dummy_drv_video_la_SOURCES = dummy_drv_video.c object_heap.c
3131
3232 noinst_HEADERS = dummy_drv_video.h object_heap.h
--- a/dummy_drv_video/dummy_drv_video.c
+++ b/dummy_drv_video/dummy_drv_video.c
@@ -22,12 +22,13 @@
2222 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323 */
2424
25-#include "va_backend.h"
25+#include <va/va_backend.h>
2626
2727 #include "dummy_drv_video.h"
2828
2929 #include "assert.h"
3030 #include <stdio.h>
31+#include <stdlib.h>
3132 #include <string.h>
3233 #include <stdarg.h>
3334
--- a/dummy_drv_video/dummy_drv_video.h
+++ b/dummy_drv_video/dummy_drv_video.h
@@ -25,7 +25,7 @@
2525 #ifndef _DUMMY_DRV_VIDEO_H_
2626 #define _DUMMY_DRV_VIDEO_H_
2727
28-#include "va.h"
28+#include <va/va.h>
2929 #include "object_heap.h"
3030
3131 #define DUMMY_MAX_PROFILES 11
--- a/i965_drv_video/Makefile.am
+++ b/i965_drv_video/Makefile.am
@@ -22,12 +22,12 @@
2222
2323 SUBDIRS = shaders
2424
25-AM_CFLAGS = -Wall -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 @DRM_CFLAGS@ -DIN_LIBVA
25+AM_CFLAGS = -Wall -I$(top_srcdir)/va -I$(top_srcdir)/va/x11 @DRM_CFLAGS@
2626
2727 i965_drv_video_la_LTLIBRARIES = i965_drv_video.la
2828 i965_drv_video_ladir = @LIBVA_DRIVERS_PATH@
2929 i965_drv_video_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,--no-undefined @DRM_LIBS@ -ldrm_intel
30-i965_drv_video_la_LIBADD = ../src/libva-x11.la -lpthread
30+i965_drv_video_la_LIBADD = ../va/libva-x11.la -lpthread
3131
3232 i965_drv_video_la_SOURCES = \
3333 object_heap.c \
--- a/i965_drv_video/i965_drv_video.c
+++ b/i965_drv_video/i965_drv_video.c
@@ -27,11 +27,11 @@
2727 *
2828 */
2929
30+#include <stdlib.h>
3031 #include <string.h>
3132 #include <assert.h>
3233
33-#include "va_backend.h"
34-#include "va_dricommon.h"
34+#include "va/x11/va_dricommon.h"
3535
3636 #include "intel_driver.h"
3737 #include "intel_memman.h"
--- a/i965_drv_video/i965_drv_video.h
+++ b/i965_drv_video/i965_drv_video.h
@@ -30,7 +30,9 @@
3030 #ifndef _I965_DRV_VIDEO_H_
3131 #define _I965_DRV_VIDEO_H_
3232
33-#include "va.h"
33+#include <va/va.h>
34+#include <va/va_backend.h>
35+
3436 #include "object_heap.h"
3537
3638 #include "intel_driver.h"
--- a/i965_drv_video/i965_media.c
+++ b/i965_drv_video/i965_media.c
@@ -31,7 +31,7 @@
3131 #include <string.h>
3232 #include <assert.h>
3333
34-#include "va_backend.h"
34+#include <va/va_backend.h>
3535
3636 #include "intel_batchbuffer.h"
3737 #include "intel_driver.h"
--- a/i965_drv_video/i965_media_mpeg2.c
+++ b/i965_drv_video/i965_media_mpeg2.c
@@ -31,7 +31,7 @@
3131 #include <string.h>
3232 #include <assert.h>
3333
34-#include "va_backend.h"
34+#include <va/va_backend.h>
3535
3636 #include "intel_batchbuffer.h"
3737 #include "intel_driver.h"
--- a/i965_drv_video/i965_render.c
+++ b/i965_drv_video/i965_render.c
@@ -32,11 +32,12 @@
3232 */
3333
3434 #include <stdio.h>
35+#include <stdlib.h>
3536 #include <string.h>
3637 #include <assert.h>
3738
38-#include "va_backend.h"
39-#include "va_dricommon.h"
39+#include <va/va_backend.h>
40+#include "va/x11/va_dricommon.h"
4041
4142 #include "intel_batchbuffer.h"
4243 #include "intel_driver.h"
--- a/i965_drv_video/intel_batchbuffer.c
+++ b/i965_drv_video/intel_batchbuffer.c
@@ -25,10 +25,11 @@
2525 *
2626 **************************************************************************/
2727
28+#include <stdlib.h>
2829 #include <string.h>
2930 #include <assert.h>
3031
31-#include "va_backend.h"
32+#include <va/va_backend.h>
3233
3334 #include "intel_batchbuffer.h"
3435
--- a/i965_drv_video/intel_driver.h
+++ b/i965_drv_video/intel_driver.h
@@ -9,7 +9,7 @@
99 #include <i915_drm.h>
1010 #include <intel_bufmgr.h>
1111
12-#include "va_backend.h"
12+#include <va/va_backend.h>
1313
1414 #if defined(__GNUC__)
1515 #define INLINE __inline__
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -23,11 +23,11 @@
2323
2424 bin_PROGRAMS = vainfo
2525
26-AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/test/basic -I$(top_srcdir)/src/x11 -DIN_LIBVA
26+AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/test/basic -I$(top_srcdir)/src/x11
2727
2828
29-vainfo_LDADD = $(top_srcdir)/src/$(libvabackendlib)
30-vainfo_DEPENDENCIES = $(top_srcdir)/src/$(libvabackendlib)
29+vainfo_LDADD = $(top_srcdir)/va/$(libvabackendlib)
30+vainfo_DEPENDENCIES = $(top_srcdir)/va/$(libvabackendlib)
3131 vainfo_SOURCES = vainfo.c
3232
3333 SUBDIRS = basic decode encode putsurface
--- a/test/basic/Makefile.am
+++ b/test/basic/Makefile.am
@@ -23,9 +23,9 @@
2323 bin_PROGRAMS = test_01 test_02 test_03 test_04 test_05 test_06 \
2424 test_07 test_08 test_09 test_10 test_11
2525
26-AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
26+AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/src/x11
2727
28-TEST_LIBS = $(top_srcdir)/src/$(libvabackendlib)
28+TEST_LIBS = $(top_srcdir)/va/$(libvabackendlib)
2929
3030 test_01_LDADD = $(TEST_LIBS)
3131 test_01_SOURCES = test_01.c
--- a/test/basic/test.c
+++ b/test/basic/test.c
@@ -22,11 +22,7 @@
2222 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323 */
2424
25-#ifdef IN_LIBVA
26-#include <va_x11.h>
27-#else
2825 #include <va/va_x11.h>
29-#endif
3026
3127 #include "assert.h"
3228 #include <stdarg.h>
--- a/test/basic/test_common.c
+++ b/test/basic/test_common.c
@@ -22,11 +22,7 @@
2222 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323 */
2424
25-#ifdef IN_LIBVA
26-#include <va_x11.h>
27-#else
2825 #include <va/va_x11.h>
29-#endif
3026
3127 #include "assert.h"
3228 #include <stdarg.h>
--- a/test/decode/Makefile.am
+++ b/test/decode/Makefile.am
@@ -22,9 +22,9 @@
2222
2323 bin_PROGRAMS = mpeg2vldemo
2424
25-AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
25+AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/src/x11
2626
27-TEST_LIBS = $(top_srcdir)/src/$(libvabackendlib)
27+TEST_LIBS = $(top_srcdir)/va/$(libvabackendlib)
2828
2929 mpeg2vldemo_LDADD = $(TEST_LIBS)
3030 mpeg2vldemo_SOURCES = mpeg2vldemo.c
--- a/test/decode/mpeg2vldemo.c
+++ b/test/decode/mpeg2vldemo.c
@@ -47,8 +47,8 @@
4747
4848 #include <assert.h>
4949
50-#include "va.h"
51-#include "va_x11.h"
50+#include <va/va.h>
51+#include <va/va_x11.h>
5252
5353 #define CHECK_VASTATUS(va_status,func) \
5454 if (va_status != VA_STATUS_SUCCESS) { \
--- a/test/encode/Makefile.am
+++ b/test/encode/Makefile.am
@@ -22,9 +22,9 @@
2222
2323 bin_PROGRAMS = h264encode
2424
25-AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
25+AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/src/x11
2626
27-TEST_LIBS = $(top_srcdir)/src/$(libvabackendlib)
27+TEST_LIBS = $(top_srcdir)/va/$(libvabackendlib)
2828
2929 h264encode_LDADD = $(TEST_LIBS)
3030 h264encode_SOURCES = h264encode.c
--- a/test/encode/h264encode.c
+++ b/test/encode/h264encode.c
@@ -26,7 +26,7 @@
2626 * it is a real program to show how VAAPI encoding work,
2727 * It does H264 element stream level encoding on auto-generated YUV data
2828 *
29- * gcc -o h264encode h264encode -lva -lva-x11 -I/usr/include/va
29+ * gcc -o h264encode h264encode -lva -lva-x11
3030 * ./h264encode -w <width> -h <height> -n <frame_num>
3131 *
3232 */
@@ -44,9 +44,8 @@
4444
4545 #include <assert.h>
4646
47-#include "va.h"
48-#include "va_x11.h"
49-
47+#include <va/va.h>
48+#include <va/va_x11.h>
5049
5150 #define CHECK_VASTATUS(va_status,func) \
5251 if (va_status != VA_STATUS_SUCCESS) { \
@@ -212,10 +211,11 @@ static int do_h264_encoding(void)
212211 VAEncPictureParameterBufferH264 pic_h264;
213212 VAEncSliceParameterBuffer slice_h264;
214213 VAStatus va_status;
215- VABufferID coded_buf, seq_param_buf, pic_param_buf, slice_param_buf;
214+ VABufferID seq_param_buf, pic_param_buf, slice_param_buf;
216215 int codedbuf_size;
217216 VASurfaceStatus surface_status;
218217 int src_surface, dst_surface, ref_surface;
218+ int codedbuf_idx = 0;
219219 int frame_skipped = 0;
220220 int i;
221221
@@ -229,12 +229,24 @@ static int do_h264_encoding(void)
229229
230230 codedbuf_size = (frame_width * frame_height * 400) / (16*16);
231231
232+ for (i = 0; i < CODEDBUF_NUM; i++) {
233+ /* create coded buffer once for all
234+ * other VA buffers which won't be used again after vaRenderPicture.
235+ * so APP can always vaCreateBuffer for every frame
236+ * but coded buffer need to be mapped and accessed after vaRenderPicture/vaEndPicture
237+ * so VA won't maintain the coded buffer
238+ */
239+ va_status = vaCreateBuffer(va_dpy,context_id,VAEncCodedBufferType,
240+ codedbuf_size, 1, NULL, &coded_buf[i]);
241+ CHECK_VASTATUS(va_status,"vaBeginPicture");
242+ }
243+
232244 src_surface = 0;
233245 /* the last two frames are reference/reconstructed frame */
234246 dst_surface = SURFACE_NUM - 1;
235247 ref_surface = SURFACE_NUM - 2;
236248
237- for (i=0; i < frame_count; i++) {
249+ for (i = 0; i < frame_count; i++) {
238250 va_status = vaBeginPicture(va_dpy, context_id, surface_id[src_surface]);
239251 CHECK_VASTATUS(va_status,"vaBeginPicture");
240252
@@ -249,7 +261,7 @@ static int do_h264_encoding(void)
249261 seq_h264.frame_rate = frame_rate;
250262 seq_h264.initial_qp = initial_qp;
251263 seq_h264.min_qp = minimal_qp;
252- seq_h264.basic_unit_size = 6;
264+ seq_h264.basic_unit_size = 0;
253265 seq_h264.intra_period = intra_count;
254266
255267 va_status = vaCreateBuffer(va_dpy, context_id,
@@ -261,12 +273,10 @@ static int do_h264_encoding(void)
261273 CHECK_VASTATUS(va_status,"vaRenderPicture");;
262274 }
263275
264- va_status = vaCreateBuffer(va_dpy,context_id,VAEncCodedBufferType,
265- codedbuf_size, 1, NULL, &coded_buf);
266276
267277 pic_h264.reference_picture = surface_id[ref_surface];
268278 pic_h264.reconstructed_picture= surface_id[dst_surface];
269- pic_h264.coded_buf = coded_buf;
279+ pic_h264.coded_buf = coded_buf[codedbuf_idx];
270280 pic_h264.picture_width = frame_width;
271281 pic_h264.picture_height = frame_height;
272282 pic_h264.last_picture = (i==frame_count);
@@ -300,7 +310,7 @@ static int do_h264_encoding(void)
300310 va_status = vaQuerySurfaceStatus(va_dpy, surface_id[src_surface],&surface_status);
301311 frame_skipped = (surface_status & VASurfaceSkipped);
302312
303- save_coded_buf(coded_buf, i, frame_skipped);
313+ save_coded_buf(coded_buf[codedbuf_idx], i, frame_skipped);
304314
305315 /* should display reconstructed frame, but just diplay source frame */
306316 if (frame_display) {
@@ -316,6 +326,11 @@ static int do_h264_encoding(void)
316326 if (src_surface == (SURFACE_NUM - 2))
317327 src_surface = 0;
318328
329+ /* use next codedbuf */
330+ codedbuf_idx++;
331+ if (codedbuf_idx == (CODEDBUF_NUM - 1))
332+ codedbuf_idx = 0;
333+
319334 /* if a frame is skipped, current frame still use last reference frame */
320335 if (frame_skipped == 0) {
321336 /* swap ref/dst */
@@ -375,7 +390,8 @@ int main(int argc,char **argv)
375390 case '?':
376391 printf("./h264encode <options>\n");
377392 printf(" -w -h: resolution\n");
378- printf(" -n frame number\n");
393+ printf(" -n frame number\n");
394+ printf(" -d display the source frame\n");
379395 printf(" -p P frame count between two I frames\n");
380396 printf(" -f frame rate\n");
381397 printf(" -r bit rate\n");
--- a/test/putsurface/Makefile.am
+++ b/test/putsurface/Makefile.am
@@ -22,13 +22,15 @@
2222
2323 bin_PROGRAMS = putsurface
2424
25-AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
25+AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/src/x11
2626
27-TEST_LIBS = $(top_srcdir)/src/$(libvabackendlib)
27+TEST_LIBS = $(top_srcdir)/va/$(libvabackendlib) -lpthread
2828
2929 putsurface_LDADD = $(TEST_LIBS)
3030 putsurface_SOURCES = putsurface.c
3131
32+EXTRA_DIST = loadsurface.h
33+
3234
3335 valgrind: $(bin_PROGRAMS)
3436 for a in $(bin_PROGRAMS); do \
--- a/test/putsurface/putsurface.c
+++ b/test/putsurface/putsurface.c
@@ -23,7 +23,7 @@
2323 */
2424
2525
26-/* gcc -o putsurface putsurface.c -lva -lva-x11 -I/usr/include/va */
26+/* gcc -o putsurface putsurface.c -lva -lva-x11 */
2727
2828 #include <stdio.h>
2929 #include <string.h>
@@ -39,8 +39,8 @@
3939 #include <sys/stat.h>
4040 #include <fcntl.h>
4141
42-#include "va.h"
43-#include "va_x11.h"
42+#include <va/va.h>
43+#include <va/va_x11.h>
4444
4545 #include <assert.h>
4646
--- a/test/vainfo.c
+++ b/test/vainfo.c
@@ -22,11 +22,7 @@
2222 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323 */
2424
25-#ifdef IN_LIBVA
26-#include <va_x11.h>
27-#else
2825 #include <va/va_x11.h>
29-#endif
3026
3127 #include <stdarg.h>
3228 #include <stdio.h>
--- a/src/Makefile.am
+++ b/va/Makefile.am
@@ -21,8 +21,7 @@
2121 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2222
2323 INCLUDES = \
24- $(LIBVA_CFLAGS) -I$(top_srcdir)/src/x11 \
25- -DIN_LIBVA \
24+ $(LIBVA_CFLAGS) -I$(top_srcdir)/va/x11 \
2625 -DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\""
2726
2827 LDADD = \
@@ -46,7 +45,7 @@ SUBDIRS = x11
4645 libva_la_SOURCES = va.c
4746
4847 libvaincludedir = ${includedir}/va
49-libvainclude_HEADERS = va.h va_backend.h va_version.h
48+libvainclude_HEADERS = va.h va_x11.h va_backend.h va_version.h
5049
5150 DISTCLEANFILES = \
5251 va_version.h
--- a/src/va.c
+++ b/va/va.c
@@ -23,21 +23,18 @@
2323 */
2424
2525 #define _GNU_SOURCE 1
26+
2627 #include "va.h"
2728 #include "va_backend.h"
2829
2930 #include <assert.h>
3031 #include <stdarg.h>
3132 #include <stdio.h>
33+#include <stdlib.h>
3234 #include <string.h>
3335 #include <dlfcn.h>
3436 #include <unistd.h>
3537
36-#include <linux/videodev2.h>
37-#include "va_dri.h"
38-#include "va_dri2.h"
39-#include "va_dricommon.h"
40-
4138
4239 #define DRIVER_INIT_FUNC "__vaDriverInit_0_31"
4340
similarity index 99%
rename from src/va.h
rename to va/va.h
index 0d4c8537ab1a41bc894d6ae1a3aef233ad95651d..08294a8a05a827079ae8016bdb57cef8a3729c44
--- a/src/va.h
+++ b/va/va.h
@@ -65,11 +65,7 @@
6565 #ifndef _VA_H_
6666 #define _VA_H_
6767
68-#ifdef IN_LIBVA
69-#include "va_version.h"
70-#else
7168 #include <va/va_version.h>
72-#endif
7369
7470 #ifdef __cplusplus
7571 extern "C" {
@@ -131,6 +127,22 @@ typedef int VAStatus; /* Return status type from functions */
131127 #define VA_STATUS_ERROR_SURFACE_IN_DISPLAYING 0x00000015
132128 #define VA_STATUS_ERROR_UNKNOWN 0xFFFFFFFF
133129
130+/* De-interlacing flags for vaPutSurface() */
131+#define VA_FRAME_PICTURE 0x00000000
132+#define VA_TOP_FIELD 0x00000001
133+#define VA_BOTTOM_FIELD 0x00000002
134+
135+/*
136+ * Clears the drawable with background color.
137+ * for hardware overlay based implementation this flag
138+ * can be used to turn off the overlay
139+ */
140+#define VA_CLEAR_DRAWABLE 0x00000008
141+
142+/* Color space conversion flags for vaPutSurface() */
143+#define VA_SRC_BT601 0x00000010
144+#define VA_SRC_BT709 0x00000020
145+
134146 /*
135147 * Returns a short english description of error_status
136148 */
--- a/src/va_backend.h
+++ b/va/va_backend.h
@@ -29,15 +29,8 @@
2929 #ifndef _VA_BACKEND_H_
3030 #define _VA_BACKEND_H_
3131
32-#ifdef IN_LIBVA
33-#include "va.h"
34-#include "x11/va_x11.h"
35-#else
3632 #include <va/va.h>
37-#include <va/va_x11.h>
38-#endif
39-
40-#include <stdlib.h>
33+#include <X11/Xlib.h>
4134 #include <linux/videodev2.h>
4235
4336
--- a/src/x11/va_x11.h
+++ b/va/va_x11.h
@@ -1,11 +1,7 @@
11 #ifndef _VA_X11_H_
22 #define _VA_X11_H_
33
4-#ifdef IN_LIBVA
5-#include "va.h"
6-#else
74 #include <va/va.h>
8-#endif
95 #include <X11/Xlib.h>
106
117 #ifdef __cplusplus
@@ -27,22 +23,6 @@ VADisplay vaGetDisplay (
2723 * color space conversion and scaling to the destination
2824 * rectangle
2925 */
30-/* de-interlacing flags for vaPutSurface */
31-#define VA_FRAME_PICTURE 0x00000000
32-#define VA_TOP_FIELD 0x00000001
33-#define VA_BOTTOM_FIELD 0x00000002
34-
35-/*
36- * clears the drawable with background color.
37- * for hardware overlay based implementation this flag
38- * can be used to turn off the overlay
39- */
40-#define VA_CLEAR_DRAWABLE 0x00000008
41-
42-/* color space conversion flags for vaPutSurface */
43-#define VA_SRC_BT601 0x00000010
44-#define VA_SRC_BT709 0x00000020
45-
4626 VAStatus vaPutSurface (
4727 VADisplay dpy,
4828 VASurfaceID surface,
--- a/src/x11/Makefile.am
+++ b/va/x11/Makefile.am
@@ -18,12 +18,12 @@
1818 # otherwise. Any license under such intellectual property rights must be
1919 # express and approved by Intel in writing.
2020
21-AM_CFLAGS = -DLINUX -DIN_LIBVA -I$(top_srcdir)/src $(DRM_CFLAGS)
21+AM_CFLAGS = -DLINUX -I$(top_srcdir)/va $(DRM_CFLAGS)
2222
2323 noinst_LTLIBRARIES = libva_x11.la
2424
2525 libva_x11includedir = ${includedir}/va
26-libva_x11include_HEADERS = va_x11.h va_dri.h va_dri2.h va_dricommon.h
26+libva_x11include_HEADERS = va_dri.h va_dri2.h va_dricommon.h
2727
2828 libva_x11_la_SOURCES = va_x11.c va_dri.c va_dri2.c va_dricommon.c dri2_util.c dri1_util.c va_nvctrl.c
2929
--- a/src/x11/va_dricommon.h
+++ b/va/x11/va_dricommon.h
@@ -7,7 +7,7 @@
77 #include <drm.h>
88 #include <drm_sarea.h>
99
10-#include "va_backend.h"
10+#include <va/va_backend.h>
1111
1212 enum
1313 {
--- a/src/x11/va_x11.c
+++ b/va/x11/va_x11.c
@@ -32,6 +32,7 @@
3232 #include "va_dricommon.h"
3333 #include "va_nvctrl.h"
3434 #include <stdio.h>
35+#include <stdlib.h>
3536 #include <stdarg.h>
3637 #include <string.h>
3738 #include <unistd.h>