diff options
| author | 2026-04-13 17:01:47 -0400 | |
|---|---|---|
| committer | 2026-04-13 17:01:47 -0400 | |
| commit | 77b54c35bf9587450cd636e0d7df37e190e28bfb (patch) | |
| tree | a290efdd8b09066847199f3f52a32be70d24ef51 /scripts | |
| parent | 20617b9c80cf8d8051ecdb53a2c22f68c012f21b (diff) | |
| download | camu-77b54c35bf9587450cd636e0d7df37e190e28bfb.tar.gz camu-77b54c35bf9587450cd636e0d7df37e190e28bfb.tar.bz2 camu-77b54c35bf9587450cd636e0d7df37e190e28bfb.zip | |
Smaller stuff that went uncommitted
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/cmv_add.sh | 9 | ||||
| -rwxr-xr-x | scripts/encode_ip.py | 4 | ||||
| -rwxr-xr-x | scripts/line_count.sh | 1 | ||||
| -rwxr-xr-x | scripts/run.sh | 3 | ||||
| -rwxr-xr-x | scripts/run_blit_mode.bat | 3 | ||||
| -rwxr-xr-x | scripts/run_flip_mode.bat | 3 | ||||
| -rwxr-xr-x | scripts/shaderc_deps.sh | 19 |
7 files changed, 38 insertions, 4 deletions
diff --git a/scripts/cmv_add.sh b/scripts/cmv_add.sh index 4572b51..7e53f09 100755 --- a/scripts/cmv_add.sh +++ b/scripts/cmv_add.sh @@ -1,4 +1,5 @@ #! /usr/bin/env bash +shopt -s nullglob CMD="" for dir in "$@" do @@ -12,4 +13,10 @@ do fi CMD="$CMD""$EXP\n" done -echo -e "$CMD""X" | socat - UNIX-CONNECT:/tmp/camu_control +MULTIPLEX_CONTROL="\x17" +for sock in /tmp/cmv_sock_*; do + echo -e "$MULTIPLEX_CONTROL$CMD""X" | socat - UNIX-CONNECT:$sock +done +for sock in /tmp/camu_control*; do + echo -e "$CMD""X" | socat - UNIX-CONNECT:$sock +done diff --git a/scripts/encode_ip.py b/scripts/encode_ip.py index 9f24fd6..8583287 100755 --- a/scripts/encode_ip.py +++ b/scripts/encode_ip.py @@ -2,6 +2,10 @@ import sys +if len(sys.argv) < 2: + print(f'Usage: {sys.argv[0]} <IP>') + sys.exit(1) + arg = sys.argv[1] # Invalid characters on Windows: \/:*?"<>| diff --git a/scripts/line_count.sh b/scripts/line_count.sh index c2bed2c..215c7d0 100755 --- a/scripts/line_count.sh +++ b/scripts/line_count.sh @@ -2,6 +2,7 @@ export LC_ALL="C" find ./src ./scripts ./env -type f \ -not -path "*__pycache__*" \ + -not -path "./env/msvc-root/*" \ -not -path "./env/nixpkgs-patches/*" \ -not -path "./src/fruits/droid/*" \ -not -path "./src/portal/cpy/portal.c" \ diff --git a/scripts/run.sh b/scripts/run.sh index 3b47fe4..6f7defc 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,3 +1,6 @@ #! /usr/bin/env sh +export SINK_IP=$(<../scripts/host_code) +#export AMD_DEBUG=lowlatencydec +#export RADV_PERFTEST=lowlatencydec source ../scripts/python_env ./src/fruits/cmv/cmv "$@" diff --git a/scripts/run_blit_mode.bat b/scripts/run_blit_mode.bat new file mode 100755 index 0000000..8467e5d --- /dev/null +++ b/scripts/run_blit_mode.bat @@ -0,0 +1,3 @@ +set SINK_DXGI_FLIP=0
+set /p code=<host_code
+.\sink-d-%code%.exe
\ No newline at end of file diff --git a/scripts/run_flip_mode.bat b/scripts/run_flip_mode.bat new file mode 100755 index 0000000..e6e9f31 --- /dev/null +++ b/scripts/run_flip_mode.bat @@ -0,0 +1,3 @@ +set SINK_DXGI_FLIP=1
+set /p code=<host_code
+.\sink-d-%code%.exe
\ No newline at end of file diff --git a/scripts/shaderc_deps.sh b/scripts/shaderc_deps.sh index e8f4335..89aaf38 100755 --- a/scripts/shaderc_deps.sh +++ b/scripts/shaderc_deps.sh @@ -1,5 +1,18 @@ #! /usr/bin/env sh + # We need a better way to do this. -git clone https://github.com/KhronosGroup/SPIRV-Tools.git --depth=1 spirv-tools -git clone https://github.com/KhronosGroup/SPIRV-Headers.git --depth=1 spirv-headers -git clone https://github.com/KhronosGroup/glslang.git --depth=1 glslang + +git clone https://github.com/KhronosGroup/SPIRV-Tools.git spirv-tools +cd spirv-tools +git checkout fbe4f3ad913c44fe8700545f8ffe35d1382b7093 +cd ../ + +git clone https://github.com/KhronosGroup/SPIRV-Headers.git spirv-headers +cd spirv-headers +git checkout 04f10f650d514df88b76d25e83db360142c7b174 +cd ../ + +git clone https://github.com/KhronosGroup/glslang.git glslang +cd glslang +git checkout f0bd0257c308b9a26562c1a30c4748a0219cc951 +cd ../ |