summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/d3d1x/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/d3d1x/tools')
-rwxr-xr-xsrc/gallium/state_trackers/d3d1x/tools/fxc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/d3d1x/tools/fxc b/src/gallium/state_trackers/d3d1x/tools/fxc
new file mode 100755
index 00000000000..0cf76a0af6e
--- /dev/null
+++ b/src/gallium/state_trackers/d3d1x/tools/fxc
@@ -0,0 +1,16 @@
+#!/bin/bash
+dir="$(dirname "$0")/../mstools"
+(cd "$dir"; ./download-mstools)
+
+arch="$(uname -m)"
+if test "$arch" == i386 || test "$arch" == i486 || test "$arch" == i586 || test "$arch" == i686 || test "$arch" == x86_64; then
+ emu="wine"
+else
+ emu="qemu-i386 wine"
+fi
+exe="$dir/fxc.exe"
+if test "$#" == 0 || test "$1" == "--help"; then
+ exec $emu "$exe" "/?"
+else
+ exec $emu "$exe" "$@"
+fi