summaryrefslogtreecommitdiffstats
path: root/sanitize-tarball.sh
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-05-08 18:03:21 -0400
committerAdam Jackson <ajax@redhat.com>2013-05-08 18:03:21 -0400
commit4c06853833996d990eb76b195ca5d6838c6f3d6b (patch)
treeb48173a1ea80d283de2541271b47bdd082fd668f /sanitize-tarball.sh
parent2b9d3cd65095f3261846d2be914dbcb2e206f9d1 (diff)
downloadmesa-4c06853833996d990eb76b195ca5d6838c6f3d6b.tar.gz
mesa-4c06853833996d990eb76b195ca5d6838c6f3d6b.tar.xz
mesa-4c06853833996d990eb76b195ca5d6838c6f3d6b.zip
Switch to Mesa master (pre 9.2)
- Fix llvmpipe on big-endian and enable llvmpipe everywhere - Build vdpau drivers for r600/radeonsi/nouveau - Enable hardware floating-point texture support - Drop GLESv1, nothing's using it, let's not start
Diffstat (limited to 'sanitize-tarball.sh')
-rwxr-xr-xsanitize-tarball.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/sanitize-tarball.sh b/sanitize-tarball.sh
new file mode 100755
index 0000000..77b6aef
--- /dev/null
+++ b/sanitize-tarball.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+# usage: sanitize-tarball.sh [tarball]
+
+dirname=$(basename $(basename "$1" .tar.bz2) .tar.xz)
+
+tar xf "$1"
+pushd $dirname
+
+cat > src/gallium/auxiliary/vl/vl_mpeg12_decoder.c << EOF
+#include "vl_mpeg12_decoder.h"
+struct pipe_video_decoder *
+vl_create_mpeg12_decoder(struct pipe_context *context,
+ enum pipe_video_profile profile,
+ enum pipe_video_entrypoint entrypoint,
+ enum pipe_video_chroma_format chroma_format,
+ unsigned width, unsigned height,
+ unsigned max_references,
+ bool expect_chunked_decode)
+{
+ return NULL;
+}
+EOF
+
+cat > src/gallium/auxiliary/vl/vl_decoder.c << EOF
+#include "vl_decoder.h"
+bool vl_profile_supported(struct pipe_screen *screen,
+ enum pipe_video_profile profile)
+{
+ return false;
+}
+struct pipe_video_decoder *
+vl_create_decoder(struct pipe_context *pipe,
+ enum pipe_video_profile profile,
+ enum pipe_video_entrypoint entrypoint,
+ enum pipe_video_chroma_format chroma_format,
+ unsigned width, unsigned height, unsigned max_references,
+ bool expect_chunked_decode)
+{
+ return NULL;
+}
+EOF
+
+popd
+tar Jcf $dirname.tar.xz $dirname