From ab94e6f8034b49bbfeac26b391fbcd3d1ce317ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Mon, 29 Jun 2026 09:36:03 -0300 Subject: [PATCH 1/6] Enhance build workflow for PSL1GHT samples Updated the build process to include installation and validation steps for PSL1GHT samples. --- .github/workflows/build.yml | 52 ++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86087064..ec5f0c85 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,8 +26,58 @@ jobs: - name: Build PSL1GHT run: | + make install-ctrl make - 7z a psl1ght.zip $PSL1GHT/bin + make install + + - name: Build PSL1GHT samples + shell: bash + run: | + set -Eeuo pipefail + make \ + -C samples \ + SHELL=/bin/bash \ + '.SHELLFLAGS=-e -o pipefail -c' \ + 2>&1 | tee "$RUNNER_TEMP/psl1ght-samples.log" + + - name: Validate sample outputs + shell: bash + run: | + set -Eeuo pipefail + + test -f \ + samples/sys/threadtest/threadtest.elf + + test -f \ + samples/sys/threadtest/threadtest.self + + test -f \ + samples/spu/sputest/sputest.elf + + test -f \ + samples/spu/sputest/sputest.self + + ppu-readelf \ + -h \ + samples/sys/threadtest/threadtest.elf + + echo + echo "Generated sample binaries:" + + find samples \ + -type f \ + \( \ + -name '*.elf' -o \ + -name '*.self' -o \ + -name '*.fake.self' -o \ + -name '*.pkg' \ + \) \ + -print \ + | LC_ALL=C sort + + - name: Upload sample build results + run: | + 7z a psl1ght.zip ./common ./ppu ./samples ./sprx ./spu ./tools psl1ght-samples.log - name: Push package artifact uses: actions/upload-artifact@v4 From 57a543872e967da213f150614664caf9d6d0af87 Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Mon, 29 Jun 2026 11:20:43 -0300 Subject: [PATCH 2/6] compiled shaders --- .../rsxtest/build/diffuse_specular_shader.fpo | Bin 0 -> 1104 bytes .../rsxtest/build/diffuse_specular_shader.vpo | Bin 0 -> 608 bytes .../graphics/rsxtest/build/fpshader_dbgfont.fpo | Bin 0 -> 256 bytes .../graphics/rsxtest/build/vpshader_dbgfont.vpo | Bin 0 -> 144 bytes 4 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader.fpo create mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader.vpo create mode 100644 samples/graphics/rsxtest/build/fpshader_dbgfont.fpo create mode 100644 samples/graphics/rsxtest/build/vpshader_dbgfont.vpo diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader.fpo b/samples/graphics/rsxtest/build/diffuse_specular_shader.fpo new file mode 100644 index 0000000000000000000000000000000000000000..d4148fabaaa5f0d34898d50e811a375ca406929c GIT binary patch literal 1104 zcmah{yH4Cd6g@LLyi!>1Qs77wGX}RXFO~3uo!9PKF+=8-nlcMw*mBEuz)pctK5G9^`CN`K0}O4Nt7|7 zLVe*eXWdY{)aNx1`fud?AO{UVuRDp*NgG8!giG)hC)Hyu$8;yucX|T9TIz(ZuN~MQ zV#5yXAF;FpJ116lV3)*xc3@Y;e%otMX|LnFNXjJ7kmaMJL5ec|zMto#Ar8`fZ;);r z?Im$mB25ks%WWTPt<5~mM~HvKGxydITLp^4BulcmD1@v0Hj3NjaHe~xRCHNss0#hb zGmu7zIaDUPsEpuHpQX@YVeUrsl8h@CE-Zhzp<37e28U-F>vT>-!ok*?6Wg&VQ`_*v}~>4n*f&xW*@3 z6ZidT349gr+4!pwS=`6>er=3r^I&~G6Dl2@dfa6;{mA`=-@T{rx8V<5{%l?i;Ch@J7Bi7N5#|rI{D&0UzD_*!lM-@}8DY=E)g{O5s{J^Kj`+|4&nToAv+z literal 0 HcmV?d00001 diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader.vpo b/samples/graphics/rsxtest/build/diffuse_specular_shader.vpo new file mode 100644 index 0000000000000000000000000000000000000000..533e803c4a3bb4f125870d0e016248465b22a0cc GIT binary patch literal 608 zcmaKm!AiqG5QhIv(=;9eK7bGpK7en~1Uz_A0!pt&+P-4cTaPf?*~A0QAfzDK|Z z@kI(cz&E38Grh)F4-*=T7*5fWK ztE^7+ZC>U2M(|RXn?)gToz+XN%N4ezUSBM#GOw}GtE`yi*}brx+7^f!s9pb@M$-8FbeG literal 0 HcmV?d00001 diff --git a/samples/graphics/rsxtest/build/fpshader_dbgfont.fpo b/samples/graphics/rsxtest/build/fpshader_dbgfont.fpo new file mode 100644 index 0000000000000000000000000000000000000000..05ac770ba3c7d29dbfaf0949ccbbaf680e45842e GIT binary patch literal 256 zcmZ<@U|?WiVqgZ6TtKV>#2!GL0K^Uqj6ethATdT32-^=xu`of{;UEg6F*!dczlfnE zwIVq`zbFO7C@C#UWnh@VAkJ`tQD*K5p#BpK_79nWMy_I#nFHa2%(sV_1SOg4d>H;Q o0M!E(g4CePD*=W6G0Jqp^z#ugPY)=6f{}p}re1&%?oF z{5*!_{G9wEhLY5ZMtB? literal 0 HcmV?d00001 From 0231e5c5024ebd1d42bed55b1e6989ed6d47bedb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Mon, 29 Jun 2026 11:26:02 -0300 Subject: [PATCH 3/6] Update build command to include VERBOSE flag --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec5f0c85..73ec2a0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: shell: bash run: | set -Eeuo pipefail - make \ + make VERBOSE=1 \ -C samples \ SHELL=/bin/bash \ '.SHELLFLAGS=-e -o pipefail -c' \ From 97e2e31137236e8e496d58868cf84d76b96791e1 Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Mon, 29 Jun 2026 11:29:22 -0300 Subject: [PATCH 4/6] shaders --- .../rsxtest/build/diffuse_specular_shader.fpo.o | Bin 0 -> 2022 bytes .../rsxtest/build/diffuse_specular_shader.vpo.o | Bin 0 -> 1526 bytes .../rsxtest/build/diffuse_specular_shader_fpo.h | 3 +++ .../rsxtest/build/diffuse_specular_shader_vpo.h | 3 +++ .../rsxtest/build/fpshader_dbgfont.fpo.o | Bin 0 -> 1153 bytes .../rsxtest/build/fpshader_dbgfont_fpo.h | 3 +++ .../rsxtest/build/vpshader_dbgfont.vpo.o | Bin 0 -> 1041 bytes .../rsxtest/build/vpshader_dbgfont_vpo.h | 3 +++ 8 files changed, 12 insertions(+) create mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader.fpo.o create mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader.vpo.o create mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader_fpo.h create mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader_vpo.h create mode 100644 samples/graphics/rsxtest/build/fpshader_dbgfont.fpo.o create mode 100644 samples/graphics/rsxtest/build/fpshader_dbgfont_fpo.h create mode 100644 samples/graphics/rsxtest/build/vpshader_dbgfont.vpo.o create mode 100644 samples/graphics/rsxtest/build/vpshader_dbgfont_vpo.h diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader.fpo.o b/samples/graphics/rsxtest/build/diffuse_specular_shader.fpo.o new file mode 100644 index 0000000000000000000000000000000000000000..31db2594f599ddca051daaa809189f2bc72a79a5 GIT binary patch literal 2022 zcmbVNOKTHR6h8N6(nJ?wT!=y=s0boRR<3P|*iBt@(TyO+NoU#&OfzL>idICsP;jBe zh0998WfAco*yXJJ4d#y&zjGg%$uv`;7w$ce@4W80CzE%NpR7nJXu1Sl1z%E35im}! zq`o=Z)LdBu-ynxtbPwDe>`!n%0qsNQ0K*b&FJ|Gau zzNX}As;sy!j>Y&*O~qeB_n{8KuQ%qFFJ1zBR)c*2=GS0ffJHUfA+W3lI|BBm2Kx@| zy}AaN^4f{hFbm@`jpJn7izo|TZNzcn(^eD@y=ZxR7zX2vqHt@Jtyx6geP53=kJnkoY>z-Xspor{N4+6t zx|hUCsFZOLaS=}TJ`0rq{fcZwYtQm6Y%A-}o3$e97wimY?OAyjyKT^m_}_=GjmJY! zUVSY%>t!W)qgUE1IIDRTfH(PSm-|LY1hg6fl z_0iZrH`J1Heyck}5p=E{^mFTler_F5>c6nr3<7^pMvvJo*6l)HD8W4}^d);g+}zwv jgF(6zZ0tr}GDt_BA0&g#op_LjuLC;A;5=*)jD7kCIp^F& literal 0 HcmV?d00001 diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader.vpo.o b/samples/graphics/rsxtest/build/diffuse_specular_shader.vpo.o new file mode 100644 index 0000000000000000000000000000000000000000..afdf105c798ce49f02a3c28a7406b6eac4fff465 GIT binary patch literal 1526 zcmbtU&ui2`6n>Lt*YvPZ4}zeuDuNeTJb1QQ(BeU5LFv&XZKgDm?JSeDU3=-O(6dJm z3+qAukAVM#H~*1>zPIxxO~-T(Ixz3O@B7}5*<`Y(&t7bKo`8A@xPftls1*#npGy?7 z4WP3Md?DO?IFh=Q(~&B&GE)Z(UnxCK zat3eYbXO^z!bGcgFOyPdQy8mM=G&P(W^AX3uw_ei)r_%s65_Gt0k~c<3Ic@thIOU z()&g}yrQqoC;2XJi`_dIQbNnJ`6NBS9dORS)IY>p+wao%fqZECda3cXWqygTqjl$U zqW6u1$Ly`M^9WPy&gDGc{Eq-sNYM9Uzcu@NZz8vj`-=IUFR0OaYg}!c^J~%#uxV=^ z@~!7ZzV#eP`fhK;Vx#80xS`*>;2SK!lMB9)pJsb|hlPxaiQGNR6CD-%Nh)=8G*MBJ Pok&=buu6;MK?;8WuZy+C literal 0 HcmV?d00001 diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader_fpo.h b/samples/graphics/rsxtest/build/diffuse_specular_shader_fpo.h new file mode 100644 index 00000000..97fbdb8b --- /dev/null +++ b/samples/graphics/rsxtest/build/diffuse_specular_shader_fpo.h @@ -0,0 +1,3 @@ +extern const u8 diffuse_specular_shader_fpo_end[]; +extern const u8 diffuse_specular_shader_fpo[]; +extern const u32 diffuse_specular_shader_fpo_size; diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader_vpo.h b/samples/graphics/rsxtest/build/diffuse_specular_shader_vpo.h new file mode 100644 index 00000000..1aaf97f6 --- /dev/null +++ b/samples/graphics/rsxtest/build/diffuse_specular_shader_vpo.h @@ -0,0 +1,3 @@ +extern const u8 diffuse_specular_shader_vpo_end[]; +extern const u8 diffuse_specular_shader_vpo[]; +extern const u32 diffuse_specular_shader_vpo_size; diff --git a/samples/graphics/rsxtest/build/fpshader_dbgfont.fpo.o b/samples/graphics/rsxtest/build/fpshader_dbgfont.fpo.o new file mode 100644 index 0000000000000000000000000000000000000000..9695f163fc2a2b5e36d45ce420fa93757993e84d GIT binary patch literal 1153 zcmbVL%}T>S5S~q1Z9Pamh(dc&1TPXic<|O7v?vtu<}s#CY6Wdd5}|s~vo{|=U%;pE znAh+{ir*x==_W>m4$R*--^}ci&C6-OXBdKV5wwX|1M&*Pvoy1%ZBV^;iP#_$b`81* zJ%e6DZA?*f7!x%Z$OW`!q#<3g;KHNP)`Ik6~86;O8S1}R`hruy94+* z%=}nId=audH+IPyL=jnGkS2vgFPF5@#)n~9$y{#jJSql?&*%Awc$#m(miJ1cIFZ4T^vbDyoO4{>D|u%2&WXMNtU~Lu zpzgbkyb1kdf9+WE&!tyR->%v$L*h)q@2fmi-7c;z_& z+Gqb`iQ3AXPn?;S!yQb!4xiVLM_Dh5lQfJwSC@Kd!tqFlS^qAfs+md{Cc~J%0bA=- A6951J literal 0 HcmV?d00001 diff --git a/samples/graphics/rsxtest/build/vpshader_dbgfont_vpo.h b/samples/graphics/rsxtest/build/vpshader_dbgfont_vpo.h new file mode 100644 index 00000000..bf534373 --- /dev/null +++ b/samples/graphics/rsxtest/build/vpshader_dbgfont_vpo.h @@ -0,0 +1,3 @@ +extern const u8 vpshader_dbgfont_vpo_end[]; +extern const u8 vpshader_dbgfont_vpo[]; +extern const u32 vpshader_dbgfont_vpo_size; From 7d63cb4a118343f438f8f7c175b33deeba959ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Mon, 29 Jun 2026 11:35:28 -0300 Subject: [PATCH 5/6] Update build command to continue on errors --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 73ec2a0d..1a9911e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: shell: bash run: | set -Eeuo pipefail - make VERBOSE=1 \ + make VERBOSE=1 -k \ -C samples \ SHELL=/bin/bash \ '.SHELLFLAGS=-e -o pipefail -c' \ From c5296882688882c8827360df17d19b5f1ab77826 Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Mon, 29 Jun 2026 12:09:13 -0300 Subject: [PATCH 6/6] Revert "shaders" This reverts commit 97e2e31137236e8e496d58868cf84d76b96791e1. --- .../rsxtest/build/diffuse_specular_shader.fpo.o | Bin 2022 -> 0 bytes .../rsxtest/build/diffuse_specular_shader.vpo.o | Bin 1526 -> 0 bytes .../rsxtest/build/diffuse_specular_shader_fpo.h | 3 --- .../rsxtest/build/diffuse_specular_shader_vpo.h | 3 --- .../rsxtest/build/fpshader_dbgfont.fpo.o | Bin 1153 -> 0 bytes .../rsxtest/build/fpshader_dbgfont_fpo.h | 3 --- .../rsxtest/build/vpshader_dbgfont.vpo.o | Bin 1041 -> 0 bytes .../rsxtest/build/vpshader_dbgfont_vpo.h | 3 --- 8 files changed, 12 deletions(-) delete mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader.fpo.o delete mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader.vpo.o delete mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader_fpo.h delete mode 100644 samples/graphics/rsxtest/build/diffuse_specular_shader_vpo.h delete mode 100644 samples/graphics/rsxtest/build/fpshader_dbgfont.fpo.o delete mode 100644 samples/graphics/rsxtest/build/fpshader_dbgfont_fpo.h delete mode 100644 samples/graphics/rsxtest/build/vpshader_dbgfont.vpo.o delete mode 100644 samples/graphics/rsxtest/build/vpshader_dbgfont_vpo.h diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader.fpo.o b/samples/graphics/rsxtest/build/diffuse_specular_shader.fpo.o deleted file mode 100644 index 31db2594f599ddca051daaa809189f2bc72a79a5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2022 zcmbVNOKTHR6h8N6(nJ?wT!=y=s0boRR<3P|*iBt@(TyO+NoU#&OfzL>idICsP;jBe zh0998WfAco*yXJJ4d#y&zjGg%$uv`;7w$ce@4W80CzE%NpR7nJXu1Sl1z%E35im}! zq`o=Z)LdBu-ynxtbPwDe>`!n%0qsNQ0K*b&FJ|Gau zzNX}As;sy!j>Y&*O~qeB_n{8KuQ%qFFJ1zBR)c*2=GS0ffJHUfA+W3lI|BBm2Kx@| zy}AaN^4f{hFbm@`jpJn7izo|TZNzcn(^eD@y=ZxR7zX2vqHt@Jtyx6geP53=kJnkoY>z-Xspor{N4+6t zx|hUCsFZOLaS=}TJ`0rq{fcZwYtQm6Y%A-}o3$e97wimY?OAyjyKT^m_}_=GjmJY! zUVSY%>t!W)qgUE1IIDRTfH(PSm-|LY1hg6fl z_0iZrH`J1Heyck}5p=E{^mFTler_F5>c6nr3<7^pMvvJo*6l)HD8W4}^d);g+}zwv jgF(6zZ0tr}GDt_BA0&g#op_LjuLC;A;5=*)jD7kCIp^F& diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader.vpo.o b/samples/graphics/rsxtest/build/diffuse_specular_shader.vpo.o deleted file mode 100644 index afdf105c798ce49f02a3c28a7406b6eac4fff465..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1526 zcmbtU&ui2`6n>Lt*YvPZ4}zeuDuNeTJb1QQ(BeU5LFv&XZKgDm?JSeDU3=-O(6dJm z3+qAukAVM#H~*1>zPIxxO~-T(Ixz3O@B7}5*<`Y(&t7bKo`8A@xPftls1*#npGy?7 z4WP3Md?DO?IFh=Q(~&B&GE)Z(UnxCK zat3eYbXO^z!bGcgFOyPdQy8mM=G&P(W^AX3uw_ei)r_%s65_Gt0k~c<3Ic@thIOU z()&g}yrQqoC;2XJi`_dIQbNnJ`6NBS9dORS)IY>p+wao%fqZECda3cXWqygTqjl$U zqW6u1$Ly`M^9WPy&gDGc{Eq-sNYM9Uzcu@NZz8vj`-=IUFR0OaYg}!c^J~%#uxV=^ z@~!7ZzV#eP`fhK;Vx#80xS`*>;2SK!lMB9)pJsb|hlPxaiQGNR6CD-%Nh)=8G*MBJ Pok&=buu6;MK?;8WuZy+C diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader_fpo.h b/samples/graphics/rsxtest/build/diffuse_specular_shader_fpo.h deleted file mode 100644 index 97fbdb8b..00000000 --- a/samples/graphics/rsxtest/build/diffuse_specular_shader_fpo.h +++ /dev/null @@ -1,3 +0,0 @@ -extern const u8 diffuse_specular_shader_fpo_end[]; -extern const u8 diffuse_specular_shader_fpo[]; -extern const u32 diffuse_specular_shader_fpo_size; diff --git a/samples/graphics/rsxtest/build/diffuse_specular_shader_vpo.h b/samples/graphics/rsxtest/build/diffuse_specular_shader_vpo.h deleted file mode 100644 index 1aaf97f6..00000000 --- a/samples/graphics/rsxtest/build/diffuse_specular_shader_vpo.h +++ /dev/null @@ -1,3 +0,0 @@ -extern const u8 diffuse_specular_shader_vpo_end[]; -extern const u8 diffuse_specular_shader_vpo[]; -extern const u32 diffuse_specular_shader_vpo_size; diff --git a/samples/graphics/rsxtest/build/fpshader_dbgfont.fpo.o b/samples/graphics/rsxtest/build/fpshader_dbgfont.fpo.o deleted file mode 100644 index 9695f163fc2a2b5e36d45ce420fa93757993e84d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1153 zcmbVL%}T>S5S~q1Z9Pamh(dc&1TPXic<|O7v?vtu<}s#CY6Wdd5}|s~vo{|=U%;pE znAh+{ir*x==_W>m4$R*--^}ci&C6-OXBdKV5wwX|1M&*Pvoy1%ZBV^;iP#_$b`81* zJ%e6DZA?*f7!x%Z$OW`!q#<3g;KHNP)`Ik6~86;O8S1}R`hruy94+* z%=}nId=audH+IPyL=jnGkS2vgFPF5@#)n~9$y{#jJSql?&*%Awc$#m(miJ1cIFZ4T^vbDyoO4{>D|u%2&WXMNtU~Lu zpzgbkyb1kdf9+WE&!tyR->%v$L*h)q@2fmi-7c;z_& z+Gqb`iQ3AXPn?;S!yQb!4xiVLM_Dh5lQfJwSC@Kd!tqFlS^qAfs+md{Cc~J%0bA=- A6951J diff --git a/samples/graphics/rsxtest/build/vpshader_dbgfont_vpo.h b/samples/graphics/rsxtest/build/vpshader_dbgfont_vpo.h deleted file mode 100644 index bf534373..00000000 --- a/samples/graphics/rsxtest/build/vpshader_dbgfont_vpo.h +++ /dev/null @@ -1,3 +0,0 @@ -extern const u8 vpshader_dbgfont_vpo_end[]; -extern const u8 vpshader_dbgfont_vpo[]; -extern const u32 vpshader_dbgfont_vpo_size;