Codebase list intel-vaapi-driver-shaders / 503cf1d
New upstream snapshot. Debian Janitor 2 years ago
9 changed file(s) with 60 addition(s) and 105 deletion(s). Raw diff Collapse all Expand all
+0
-36
.gitignore less more
0 *~
1 *.o
2 *.lo
3 *.la
4 *.orig
5 *.rej
6 *.loT
7 *.bin
8 *.pc
9 *.g[4-9]s
10 *.gen[4-9].asm
11 *.gen75.asm
12 .deps
13 .libs
14 install-sh
15 libtool
16 ltmain.sh
17 compile
18 missing
19 Makefile
20 Makefile.in
21 config.h
22 config.h.in
23 stamp-h1
24 aclocal.m4
25 autom4te.cache
26 config.guess
27 config.log
28 config.status
29 config.sub
30 configure
31 depcomp
32 TAGS
33 /src/intel_version.h
34 /src/wayland-drm-client-protocol.h
35 .VERSION*
0 intel-vaapi-driver NEWS -- summary of changes. 2020-06-01
1 Copyright (C) 2009-2019 Intel Corporation
2
3 Version 2.4.1 - 01.Jun.2020
4 * Bump version to 2.4.1 for maintenance release
5 * Fix compiler errors with gcc 10
6 * Relax the compressed frames minimum size restriction for VP9 encoder
7
8 Version 2.4.0 - 06.Dec.2019
9 * Bump version to 2.4.0 for maintenance release
10 * Fix the dependency on libEGL
11 * Fix ROI support
12 * Fix FD leaks on Wayland
13 * Fix BRC setting
14 * Fix VP8 encoder
15 * Fix VP9 encoder
16 * Fix meson build
0 intel-vaapi-driver NEWS -- summary of changes. 2018-12-10
1 Copyright (C) 2009-2018 Intel Corporation
172
183 Version 2.3.0 - 10.Dec.2018
194 * Bump version to 2.3.0
00 [![Stories in Ready](https://badge.waffle.io/intel/intel-vaapi-driver.png?label=ready&title=Ready)](http://waffle.io/intel/intel-vaapi-driver)
11 [![Build Status](https://travis-ci.org/intel/intel-vaapi-driver.svg?branch=master)](https://travis-ci.org/intel/intel-vaapi-driver)
2 [![Coverity Scan Build Status](https://scan.coverity.com/projects/11612/badge.svg)](https://scan.coverity.com/projects/intel-intel-vaapi-driver)
2 [![Coverity Scan Build Status](https://scan.coverity.com/projects/11612/badge.svg)](https://scan.coverity.com/projects/01org-intel-vaapi-driver)
33
44 # Intel-vaapi-driver Project
55
00 # intel-vaapi-driver package version number
11 m4_define([intel_vaapi_driver_major_version], [2])
22 m4_define([intel_vaapi_driver_minor_version], [4])
3 m4_define([intel_vaapi_driver_micro_version], [1])
4 m4_define([intel_vaapi_driver_pre_version], [0])
3 m4_define([intel_vaapi_driver_micro_version], [0])
4 m4_define([intel_vaapi_driver_pre_version], [1])
55 m4_define([intel_vaapi_driver_version],
66 [intel_vaapi_driver_major_version.intel_vaapi_driver_minor_version.intel_vaapi_driver_micro_version])
77 m4_if(intel_vaapi_driver_pre_version, [0], [], [
0 intel-vaapi-driver-shaders (2.4.1+git20200819.1.d87db21-1) UNRELEASED; urgency=low
1
2 * New upstream snapshot.
3
4 -- Debian Janitor <janitor@jelmer.uk> Wed, 21 Jul 2021 21:03:43 -0000
5
06 intel-vaapi-driver-shaders (2.4.1-1) unstable; urgency=medium
17
28 * New upstream release
00 project(
11 'intel-vaapi-driver', 'c',
2 version : '2.4.1.0',
2 version : '2.4.0.1',
33 meson_version : '>= 0.43.0',
44 default_options : [ 'warning_level=1',
55 'buildtype=debugoptimized' ])
19081908 fourcc == VA_FOURCC_BGRA) {
19091909 /* nothing to do here */
19101910 } else if (fourcc == VA_FOURCC_P010 || fourcc == VA_FOURCC_NV12) {
1911 width[1] = width[0] / 2;
1912 height[1] = height[0] / 2;
1911 width[1] = ALIGN(width[0], 2) / 2;
1912 height[1] = ALIGN(height[0], 2) / 2;
19131913 pitch[1] = obj_surface->cb_cr_pitch;
19141914 bo_offset[1] = obj_surface->width * obj_surface->y_cb_offset;
19151915 } else {
1916 width[1] = width[0] / 2;
1917 height[1] = height[0] / 2;
1916 width[1] = ALIGN(width[0], 2) / 2;
1917 height[1] = ALIGN(height[0], 2) / 2;
19181918 pitch[1] = obj_surface->cb_cr_pitch;
19191919 bo_offset[1] = obj_surface->width * obj_surface->y_cb_offset;
1920 width[2] = width[0] / 2;
1921 height[2] = height[0] / 2;
1920 width[2] = ALIGN(width[0], 2) / 2;
1921 height[2] = ALIGN(height[0], 2) / 2;
19221922 pitch[2] = obj_surface->cb_cr_pitch;
19231923 bo_offset[2] = obj_surface->width * obj_surface->y_cr_offset;
19241924 }
19391939 fourcc == VA_FOURCC_BGRA) {
19401940 /* nothing to do here */
19411941 } else if (fourcc == VA_FOURCC_P010 || fourcc == VA_FOURCC_NV12) {
1942 width[1] = width[0] / 2;
1943 height[1] = height[0] / 2;
1942 width[1] = ALIGN(width[0], 2) / 2;
1943 height[1] = ALIGN(height[0], 2) / 2;
19441944 pitch[1] = obj_image->image.pitches[1];
19451945 bo_offset[1] = obj_image->image.offsets[1];
19461946 } else {
19491949 if (fourcc == VA_FOURCC_YV12 || fourcc == VA_FOURCC_IMC1)
19501950 u = 2, v = 1;
19511951
1952 width[1] = width[0] / 2;
1953 height[1] = height[0] / 2;
1952 width[1] = ALIGN(width[0], 2) / 2;
1953 height[1] = ALIGN(height[0], 2) / 2;
19541954 pitch[1] = obj_image->image.pitches[u];
19551955 bo_offset[1] = obj_image->image.offsets[u];
1956 width[2] = width[0] / 2;
1957 height[2] = height[0] / 2;
1956 width[2] = ALIGN(width[0], 2) / 2;
1957 height[2] = ALIGN(height[0], 2) / 2;
19581958 pitch[2] = obj_image->image.pitches[v];
19591959 bo_offset[2] = obj_image->image.offsets[v];
19601960 }
730730 fourcc == VA_FOURCC_BGRA) {
731731 /* nothing to do here */
732732 } else if (fourcc == VA_FOURCC_P010 || fourcc == VA_FOURCC_NV12) {
733 width[1] = width[0] / 2;
734 height[1] = height[0] / 2;
733 width[1] = ALIGN(width[0], 2) / 2;
734 height[1] = ALIGN(height[0], 2) / 2;
735735 pitch[1] = obj_surface->cb_cr_pitch;
736736 bo_offset[1] = obj_surface->width * obj_surface->y_cb_offset;
737737 } else if (fourcc == VA_FOURCC_YUY2 || fourcc == VA_FOURCC_UYVY) {
738738 /* nothing to do here */
739739 } else {
740 width[1] = width[0] / 2;
741 height[1] = height[0] / 2;
740 width[1] = ALIGN(width[0], 2) / 2;
741 height[1] = ALIGN(height[0], 2) / 2;
742742 pitch[1] = obj_surface->cb_cr_pitch;
743743 bo_offset[1] = obj_surface->width * obj_surface->y_cb_offset;
744 width[2] = width[0] / 2;
745 height[2] = height[0] / 2;
744 width[2] = ALIGN(width[0], 2) / 2;
745 height[2] = ALIGN(height[0], 2) / 2;
746746 pitch[2] = obj_surface->cb_cr_pitch;
747747 bo_offset[2] = obj_surface->width * obj_surface->y_cr_offset;
748748 }
763763 fourcc == VA_FOURCC_BGRA) {
764764 /* nothing to do here */
765765 } else if (fourcc == VA_FOURCC_P010 || fourcc == VA_FOURCC_NV12) {
766 width[1] = width[0] / 2;
767 height[1] = height[0] / 2;
766 width[1] = ALIGN(width[0], 2) / 2;
767 height[1] = ALIGN(height[0], 2) / 2;
768768 pitch[1] = obj_image->image.pitches[1];
769769 bo_offset[1] = obj_image->image.offsets[1];
770770 } else if (fourcc == VA_FOURCC_YUY2 || fourcc == VA_FOURCC_UYVY) {
775775 if (fourcc == VA_FOURCC_YV12 || fourcc == VA_FOURCC_IMC1)
776776 u = 2, v = 1;
777777
778 width[1] = width[0] / 2;
779 height[1] = height[0] / 2;
778 width[1] = ALIGN(width[0], 2) / 2;
779 height[1] = ALIGN(height[0], 2) / 2;
780780 pitch[1] = obj_image->image.pitches[u];
781781 bo_offset[1] = obj_image->image.offsets[u];
782 width[2] = width[0] / 2;
783 height[2] = height[0] / 2;
782 width[2] = ALIGN(width[0], 2) / 2;
783 height[2] = ALIGN(height[0], 2) / 2;
784784 pitch[2] = obj_image->image.pitches[v];
785785 bo_offset[2] = obj_image->image.offsets[v];
786786 }
17241724 obj_surface->subsampling = SUBSAMPLE_YUV420;
17251725 obj_surface->y_cb_offset = obj_surface->height;
17261726 obj_surface->y_cr_offset = obj_surface->height;
1727 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
1728 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
1727 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
1728 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
17291729 obj_surface->cb_cr_pitch = memory_attibute->pitches[1];
17301730 if (tiling)
17311731 ASSERT_RET(IS_ALIGNED(obj_surface->cb_cr_pitch, 128), VA_STATUS_ERROR_INVALID_PARAMETER);
17421742 obj_surface->subsampling = SUBSAMPLE_YUV420;
17431743 obj_surface->y_cr_offset = obj_surface->height;
17441744 obj_surface->y_cb_offset = memory_attibute->offsets[2] / obj_surface->width;
1745 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
1746 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
1745 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
1746 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
17471747 obj_surface->cb_cr_pitch = memory_attibute->pitches[1];
17481748
17491749 if (tiling)
17631763 obj_surface->subsampling = SUBSAMPLE_YUV420;
17641764 obj_surface->y_cb_offset = obj_surface->height;
17651765 obj_surface->y_cr_offset = memory_attibute->offsets[2] / obj_surface->width;
1766 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
1767 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
1766 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
1767 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
17681768 obj_surface->cb_cr_pitch = memory_attibute->pitches[1];
17691769 if (tiling)
17701770 ASSERT_RET(IS_ALIGNED(obj_surface->cb_cr_pitch, 128), VA_STATUS_ERROR_INVALID_PARAMETER);
18361836 obj_surface->subsampling = SUBSAMPLE_YUV422H;
18371837 obj_surface->y_cb_offset = obj_surface->height;
18381838 obj_surface->y_cr_offset = memory_attibute->offsets[2] / obj_surface->width;
1839 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
1839 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
18401840 obj_surface->cb_cr_height = obj_surface->orig_height;
18411841 obj_surface->cb_cr_pitch = memory_attibute->pitches[1];
18421842 if (tiling)
18531853 obj_surface->subsampling = SUBSAMPLE_YUV422H;
18541854 obj_surface->y_cr_offset = memory_attibute->offsets[1] / obj_surface->width;
18551855 obj_surface->y_cb_offset = memory_attibute->offsets[2] / obj_surface->width;
1856 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
1856 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
18571857 obj_surface->cb_cr_height = obj_surface->orig_height;
18581858 obj_surface->cb_cr_pitch = memory_attibute->pitches[1];
18591859 ASSERT_RET(IS_ALIGNED(obj_surface->cb_cr_pitch, i965->codec_info->min_linear_wpitch), VA_STATUS_ERROR_INVALID_PARAMETER);
18681868 obj_surface->y_cb_offset = obj_surface->height;
18691869 obj_surface->y_cr_offset = memory_attibute->offsets[2] / obj_surface->width;
18701870 obj_surface->cb_cr_width = obj_surface->orig_width;
1871 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
1871 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
18721872 obj_surface->cb_cr_pitch = memory_attibute->pitches[1];
18731873 if (tiling)
18741874 ASSERT_RET(IS_ALIGNED(obj_surface->cb_cr_pitch, 128), VA_STATUS_ERROR_INVALID_PARAMETER);
45254525 case VA_FOURCC_P010:
45264526 assert(subsampling == SUBSAMPLE_YUV420);
45274527 obj_surface->cb_cr_pitch = obj_surface->width;
4528 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
4529 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
4528 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
4529 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
45304530 obj_surface->y_cb_offset = obj_surface->height;
45314531 obj_surface->y_cr_offset = obj_surface->height;
45324532 region_width = obj_surface->width;
45374537 case VA_FOURCC_IMC1:
45384538 assert(subsampling == SUBSAMPLE_YUV420);
45394539 obj_surface->cb_cr_pitch = obj_surface->width;
4540 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
4541 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
4540 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
4541 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
45424542 obj_surface->y_cr_offset = obj_surface->height;
45434543 obj_surface->y_cb_offset = obj_surface->y_cr_offset + ALIGN(obj_surface->cb_cr_height, 32);
45444544 region_width = obj_surface->width;
45494549 case VA_FOURCC_IMC3:
45504550 assert(subsampling == SUBSAMPLE_YUV420);
45514551 obj_surface->cb_cr_pitch = obj_surface->width;
4552 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
4553 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
4552 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
4553 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
45544554 obj_surface->y_cb_offset = obj_surface->height;
45554555 obj_surface->y_cr_offset = obj_surface->y_cb_offset + ALIGN(obj_surface->cb_cr_height, 32);
45564556 region_width = obj_surface->width;
45614561 case VA_FOURCC_422H:
45624562 assert(subsampling == SUBSAMPLE_YUV422H);
45634563 obj_surface->cb_cr_pitch = obj_surface->width;
4564 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
4564 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
45654565 obj_surface->cb_cr_height = obj_surface->orig_height;
45664566 obj_surface->y_cb_offset = obj_surface->height;
45674567 obj_surface->y_cr_offset = obj_surface->y_cb_offset + ALIGN(obj_surface->cb_cr_height, 32);
45744574 assert(subsampling == SUBSAMPLE_YUV422V);
45754575 obj_surface->cb_cr_pitch = obj_surface->width;
45764576 obj_surface->cb_cr_width = obj_surface->orig_width;
4577 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
4577 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
45784578 obj_surface->y_cb_offset = obj_surface->height;
45794579 obj_surface->y_cr_offset = obj_surface->y_cb_offset + ALIGN(obj_surface->cb_cr_height, 32);
45804580 region_width = obj_surface->width;
46624662 case VA_FOURCC_P010:
46634663 obj_surface->y_cb_offset = obj_surface->height;
46644664 obj_surface->y_cr_offset = obj_surface->height;
4665 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
4665 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
46664666 obj_surface->width = ALIGN(obj_surface->cb_cr_width * 2, i965->codec_info->min_linear_wpitch) *
46674667 bpp_1stplane;
4668 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
4668 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
46694669 obj_surface->cb_cr_pitch = obj_surface->width;
46704670 region_width = obj_surface->width;
46714671 region_height = obj_surface->height + obj_surface->height / 2;
46724672 break;
46734673
46744674 case VA_FOURCC_YV16:
4675 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
4675 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
46764676 obj_surface->width = ALIGN(obj_surface->cb_cr_width, i965->codec_info->min_linear_wpitch) * 2;
46774677 obj_surface->cb_cr_height = obj_surface->orig_height;
46784678 obj_surface->y_cr_offset = obj_surface->height;
46934693 obj_surface->y_cr_offset = obj_surface->height + obj_surface->height / 4;
46944694 }
46954695
4696 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
4696 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
46974697 obj_surface->width = ALIGN(obj_surface->cb_cr_width, i965->codec_info->min_linear_wpitch) * 2;
4698 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
4698 obj_surface->cb_cr_height = ALIGN(obj_surface->orig_height, 2) / 2;
46994699 obj_surface->cb_cr_pitch = obj_surface->width / 2;
47004700 region_width = obj_surface->width;
47014701 region_height = obj_surface->height + obj_surface->height / 2;
47044704 case VA_FOURCC_I010:
47054705 obj_surface->y_cb_offset = obj_surface->height;
47064706 obj_surface->y_cr_offset = obj_surface->height + obj_surface->height / 4;
4707 obj_surface->cb_cr_width = obj_surface->orig_width / 2;
4707 obj_surface->cb_cr_width = ALIGN(obj_surface->orig_width, 2) / 2;
47084708 obj_surface->width = ALIGN(obj_surface->cb_cr_width * 2, i965->codec_info->min_linear_wpitch) * 2;
4709 obj_surface->cb_cr_height = obj_surface->orig_height / 2;
4709 obj_surface->cb_cr_height =ALIGN(obj_surface->orig_height, 2) / 2;
47104710 obj_surface->cb_cr_pitch = obj_surface->width / 2;
47114711 region_width = obj_surface->width;
47124712 region_height = obj_surface->height + obj_surface->height / 2;