From 77b54c35bf9587450cd636e0d7df37e190e28bfb Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 13 Apr 2026 17:01:47 -0400 Subject: Smaller stuff that went uncommitted Signed-off-by: Andrew Opalach --- scripts/cmv_add.sh | 9 ++++++++- scripts/encode_ip.py | 4 ++++ scripts/line_count.sh | 1 + scripts/run.sh | 3 +++ scripts/run_blit_mode.bat | 3 +++ scripts/run_flip_mode.bat | 3 +++ scripts/shaderc_deps.sh | 19 ++++++++++++++++--- 7 files changed, 38 insertions(+), 4 deletions(-) create mode 100755 scripts/run_blit_mode.bat create mode 100755 scripts/run_flip_mode.bat (limited to 'scripts') 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]} ') + 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=