Skip to content

Commit

Permalink
shader inspection (#2)
Browse files Browse the repository at this point in the history
allow for inspecting shaders, grafts the pm4, gcn and supporting crates from emulator onto this project. this is the new home for this stuff. other usages will either be folded into this repo or reference published artifacts depending on how things evolve
  • Loading branch information
0xcaff authored Oct 6, 2024
2 parents 0ef2911 + f1fadd0 commit a26e6e8
Show file tree
Hide file tree
Showing 826 changed files with 2,311,817 additions and 197 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,38 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: 3.12

- name: Install pipenv
run: pip install pipenv

- name: Install dependencies
run: pipenv install

- name: Codegen regs.rs
run: |
cd packages/pm4/src/registers/generated
pipenv run python regs_rs.py
- name: Codegen pkt3.rs
run: |
cd packages/pm4/src/registers/generated
pipenv run python pkt3_rs.py
- name: Run make in Docker
uses: docker://ghcr.io/0xcaff/ps4-sdk-images/goldhen:edge
with:
args: make -C packages/plugin
args: packages/extern_traces_plugin/scripts/ci.sh

- name: save artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: packages/plugin/target/**/*
path: packages/extern_traces_plugin/target/**/*

release:
needs: build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,27 @@ jobs:
with:
submodules: true

- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: 3.12

- name: Install pipenv
run: pip install pipenv

- name: Install dependencies
run: pipenv install

- name: Codegen regs.rs
run: |
cd packages/pm4/src/registers/generated
pipenv run python regs_rs.py
- name: Codegen pkt3.rs
run: |
cd packages/pm4/src/registers/generated
pipenv run python pkt3_rs.py
- run: cargo build --target ${{ matrix.target }} --release

- name: save artifacts
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
target
build

packages/pm4/src/registers/generated/pkt3.rs
packages/pm4/src/registers/generated/regs.rs
packages/gcn/src/instructions/generated/ops.rs
Loading

0 comments on commit a26e6e8

Please sign in to comment.