summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-07-27 11:45:36 +0100
committerJosé Fonseca <[email protected]>2009-08-29 09:21:19 +0100
commitb023c1dc68819e59d0d7ef6c0d86be4f21054ba4 (patch)
tree0dcb47b4143f562b881a27e269f403489f5fd9e0 /src/gallium/drivers
parent05bfd93c3f02d229f5408db1b440425cce99a142 (diff)
llvmpipe: Simple shell script to aid port softpipe changes to llvmpipe.
Diffstat (limited to 'src/gallium/drivers')
-rwxr-xr-xsrc/gallium/drivers/llvmpipe/sp2lp.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/sp2lp.sh b/src/gallium/drivers/llvmpipe/sp2lp.sh
new file mode 100755
index 00000000000..28adb98ebb1
--- /dev/null
+++ b/src/gallium/drivers/llvmpipe/sp2lp.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# Port changes from softpipe to llvmpipe. Invoke as
+#
+# sp2lp.sh <commit>..<commit>
+#
+# Note that this will only affect llvmpipe -- you still need to actually
+# cherry-pick/merge the softpipe changes themselves if they affect directories
+# outside src/gallium/drivers/softpipe
+
+git format-patch \
+ --keep-subject \
+ --relative=src/gallium/drivers/softpipe \
+ --src-prefix=a/src/gallium/drivers/llvmpipe/ \
+ --dst-prefix=b/src/gallium/drivers/llvmpipe/ \
+ --stdout $@ \
+| sed \
+ -e 's/\<softpipe\>/llvmpipe/g' \
+ -e 's/\<sp\>/lp/g' \
+ -e 's/\<softpipe_/llvmpipe_/g' \
+ -e 's/\<sp_/lp_/g' \
+ -e 's/\<SP_/LP_/g' \
+ -e 's/\<SOFTPIPE_/LLVMPIPE_/g' \
+ -e 's/\<spt\>/lpt/g' \
+ -e 's/\<sps\>/lps/g' \
+ -e 's/\<spfs\>/lpfs/g' \
+ -e 's/\<sptex\>/lptex/g' \
+| git am -3 -k