diff options
author | leot <leot> | 2017-03-12 09:44:25 +0000 |
---|---|---|
committer | leot <leot> | 2017-03-12 09:44:25 +0000 |
commit | e88adf3c3033b1b48f12dc893b0de00bc9f62a38 (patch) | |
tree | 9cca96eca3d16c0b24172ac530289fde2a108d84 /multimedia/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c | |
parent | ad084336fe73a56a8130539a465fb44de9e609d8 (diff) | |
download | pkgsrc-e88adf3c3033b1b48f12dc893b0de00bc9f62a38.tar.gz |
Import intel-vaapi-driver-1.7.3 as multimedia/intel-vaapi-driver
VA-API (Video Acceleration API) user mode driver for Intel GEN
Graphics family.
VA-API is an open-source library and API specification, which
provides access to graphics hardware acceleration capabilities for
video processing. It consists of a main library and driver-specific
acceleration backends for each supported hardware vendor.
The current video driver backend provides a bridge to the GEN GPUs
through the packaging of buffers and commands to be sent to the
i915 driver for exercising both hardware and shader functionality
for video decode, encode, and processing.
Diffstat (limited to 'multimedia/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c')
-rw-r--r-- | multimedia/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/multimedia/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c b/multimedia/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c new file mode 100644 index 00000000000..e505218c93c --- /dev/null +++ b/multimedia/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c @@ -0,0 +1,35 @@ +$NetBSD: patch-src_i965__decoder__utils.c,v 1.1 2017/03/12 09:44:25 leot Exp $ + +Use malloc(3) and free(3) instead of alloca(3). + +From upstream via issue pull request #77 (it will not needed +for the next 1.8.0 version). + +--- src/i965_decoder_utils.c.orig 2016-11-10 05:04:36.000000000 +0000 ++++ src/i965_decoder_utils.c +@@ -23,7 +23,6 @@ + + #include "sysdeps.h" + #include <limits.h> +-#include <alloca.h> + + #include "intel_batchbuffer.h" + #include "intel_media.h" +@@ -343,7 +342,7 @@ avc_get_first_mb_bit_offset_with_epb( + if (buf_size > data_size) + buf_size = data_size; + +- buf = alloca(buf_size); ++ buf = malloc(buf_size); + ret = dri_bo_get_subdata( + slice_data_bo, slice_param->slice_data_offset, + buf_size, buf +@@ -355,6 +354,8 @@ avc_get_first_mb_bit_offset_with_epb( + i += 2, j++, n++; + } + ++ free(buf); ++ + out_slice_data_bit_offset = in_slice_data_bit_offset + n * 8; + + if (mode_flag == ENTROPY_CABAC) |