-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#407 32X add SH-2 ASM faceAdd* routines, on-chip blocks for prepare a…
…nd render functions (still slower than SDRAM), multi-CPU OT flush, fb clear on the slave CPU
- Loading branch information
Showing
23 changed files
with
1,560 additions
and
698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#include "common.i" | ||
.data | ||
|
||
.global _block_prepare_start | ||
.global _block_prepare_end | ||
|
||
.align 4 | ||
_block_prepare_start: | ||
|
||
#include "transformMesh.i" | ||
#include "transformRoom.i" | ||
|
||
.align 2 | ||
var_gVerticesBase: | ||
.long _gVerticesBase | ||
var_gMatrixPtr: | ||
.long _gMatrixPtr | ||
var_gLightAmbient: | ||
.long _gLightAmbient | ||
var_divTable: | ||
.long _divTable | ||
var_viewportRel: | ||
.long _viewportRel | ||
|
||
#include "faceAddMeshQuads.i" | ||
#include "faceAddMeshTriangles.i" | ||
|
||
.align 2 | ||
var_gVertices_fam: | ||
.long _gVertices | ||
var_gFacesBase_fam: | ||
.long _gFacesBase | ||
var_gVerticesBase_fam: | ||
.long _gVerticesBase | ||
const_FACE_CLIPPED_fam: | ||
.long FACE_CLIPPED | ||
const_FACE_TRIANGLE_fam: | ||
.long FACE_TRIANGLE | ||
var_gOT_fam: | ||
.long _gOT | ||
|
||
#include "faceAddRoomQuads.i" | ||
#include "faceAddRoomTriangles.i" | ||
|
||
.align 2 | ||
var_gVertices_far: | ||
.long _gVertices | ||
var_gFacesBase_far: | ||
.long _gFacesBase | ||
var_gVerticesBase_far: | ||
.long _gVerticesBase | ||
const_FACE_CLIPPED_far: | ||
.long FACE_CLIPPED | ||
const_FACE_GOURAUD_far: | ||
.long FACE_GOURAUD | ||
const_FACE_TRIANGLE_far: | ||
.long FACE_TRIANGLE | ||
var_gOT_far: | ||
.long _gOT | ||
|
||
_block_prepare_end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "common.i" | ||
.data | ||
|
||
.global _block_render_start | ||
.global _block_render_end | ||
|
||
.align 4 | ||
_block_render_start: | ||
|
||
#include "rasterize.i" | ||
//#include "rasterize_dummy.i" | ||
#include "rasterizeS.i" | ||
#include "rasterizeF.i" | ||
|
||
.align 2 | ||
var_LMAP_ADDR_fs: | ||
.long _gLightmap_base | ||
var_divTable_fs: | ||
.long _divTable | ||
var_frameWidth_fs: | ||
.word FRAME_WIDTH | ||
|
||
#include "rasterizeFT.i" | ||
#include "rasterizeGT.i" | ||
|
||
.align 2 | ||
var_LMAP_ADDR: | ||
.long _gLightmap_base | ||
var_divTable: | ||
.long _divTable | ||
var_mask: | ||
.word 0xFF00 | ||
var_frameWidth: | ||
.word FRAME_WIDTH | ||
|
||
_block_render_end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.