From e88adf3c3033b1b48f12dc893b0de00bc9f62a38 Mon Sep 17 00:00:00 2001 From: leot Date: Sun, 12 Mar 2017 09:44:25 +0000 Subject: 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. --- .../patches/patch-src_i965__decoder__utils.c | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 multimedia/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c (limited to 'multimedia/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c') 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 +-#include + + #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) -- cgit v1.2.3