summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-25 18:58:17 +0200
committerwm4 <wm4@nowhere>2015-09-25 19:18:16 +0200
commit0ae8aebb89b5d0b2226a5d3852a9c72cd52da2ff (patch)
tree4f9517ae03b50d21b534a8cfcdcbbdcdd8d326b5 /TOOLS
parent361040f9d912140832192af78808218d601c7465 (diff)
downloadmpv-0ae8aebb89b5d0b2226a5d3852a9c72cd52da2ff.tar.bz2
mpv-0ae8aebb89b5d0b2226a5d3852a9c72cd52da2ff.tar.xz
video: refactor GPU memcpy usage
Make the GPU memcpy from the dxva2 code generally useful to other parts of the player. We need to check at configure time whether SSE intrinsics work at all. (At least in this form, they won't work on clang, for example. It also won't work on non-x86.) Introduce a mp_image_copy_gpu(), and make the dxva2 code use it. Do some awkward stuff to share the existing code used by mp_image_copy(). I'm hoping that FFmpeg will sooner or later provide a function like this, so we can remove most of this again. (There is a patch, bit it's stuck in limbo since forever.) All this is used by the following commit.
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/old-configure1
-rw-r--r--TOOLS/old-makefile1
2 files changed, 2 insertions, 0 deletions
diff --git a/TOOLS/old-configure b/TOOLS/old-configure
index f68f95f3aa..41c9b1c9bd 100755
--- a/TOOLS/old-configure
+++ b/TOOLS/old-configure
@@ -964,6 +964,7 @@ cat > $TMPC << EOF
#define HAVE_VIDEOTOOLBOX_HWACCEL 0
#define HAVE_VIDEOTOOLBOX_GL 0
#define HAVE_VIDEOTOOLBOX_VDA_GL 0
+#define HAVE_SSE4_INTRINSICS 1
#ifdef __OpenBSD__
#define DEFAULT_CDROM_DEVICE "/dev/rcd0c"
diff --git a/TOOLS/old-makefile b/TOOLS/old-makefile
index 1ed6bc4b3f..bb15f96630 100644
--- a/TOOLS/old-makefile
+++ b/TOOLS/old-makefile
@@ -234,6 +234,7 @@ SOURCES = audio/audio.c \
ta/ta_talloc.c \
video/csputils.c \
video/fmt-conversion.c \
+ video/gpu_memcpy.c \
video/image_writer.c \
video/img_format.c \
video/mp_image.c \