Add P_LoadSegs, and fix stack overflows caused by calling through function pointers in P_setup_codelets

This commit is contained in:
jndean
2023-08-24 23:10:13 +00:00
parent 050ff5f588
commit 45ca35f34c
11 changed files with 1023 additions and 69 deletions

View File

@@ -19,10 +19,10 @@ struct R_RenderPlayerView_Vertex : public poplar::Vertex {
poplar::InOut<poplar::Vector<unsigned char>> frame;
void compute() {
// for (int i = 0; i < 100; ++i){
// frame[i + 320 * i ] = 1;
// frame[i + 320 * i + 1] = 1;
// }
for (int i = 0; i < 100; ++i){
frame[i + 320 * i ] = 1;
frame[i + 320 * i + 1] = 1;
}
IPU_R_RenderPlayerView_UnpackMiscValues(
(R_RenderPlayerView_MiscValues_t*) &miscValues[0]
);