Skip to content

Commit

Permalink
Removed vertex_color_render program, changed register allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
nchalkley2 committed Dec 18, 2024
1 parent 55453c9 commit 5ba5faf
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 151 deletions.
1 change: 0 additions & 1 deletion dependencies/egg-ps2-graphics-lib/Makefile.vuprogs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ EE_DVP = dvp-as
VCL = vcl

RENDERERS = \
vertex_color_renderer \
vertex_color_texture_renderer \
project \
project_clip \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ namespace egg::ps2::graphics::vu1_programs
{
DECLARE_VU_PROGRAM(xgkick);
DECLARE_VU_PROGRAM(vertex_color_texture_renderer);
DECLARE_VU_PROGRAM(vertex_color_renderer);
DECLARE_VU_PROGRAM(project);
DECLARE_VU_PROGRAM(project_clip);
DECLARE_VU_PROGRAM(vertex_color);
Expand Down
1 change: 0 additions & 1 deletion dependencies/egg-ps2-graphics-lib/src/vu_programs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ namespace vu1_programs
{
DEFINE_VU_PROGRAM(xgkick, xgkick);
DEFINE_VU_PROGRAM(vertex_color_texture_renderer, VertexColorTextureRenderer);
DEFINE_VU_PROGRAM(vertex_color_renderer, VertexColorRenderer);
DEFINE_VU_PROGRAM(project, Project);
DEFINE_VU_PROGRAM(project_clip, ProjectClip);
DEFINE_VU_PROGRAM(vertex_color, VertexColor);
Expand Down
141 changes: 0 additions & 141 deletions dependencies/egg-ps2-graphics-lib/vu1/vertex_color_renderer.vcl

This file was deleted.

6 changes: 3 additions & 3 deletions dependencies/egg-ps2-graphics-lib/vu1/vu1_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

#define VERTEXIN (JUMPTABLE + 2)

#define BASE_REG VI14

// Return address register.
// Used for returning from programs back to the jump table
#define RETADDR_REG VI13

#define BASE_REG VI12
#define RETADDR_REG VI15

#define RETURN jr retaddr: dummy

Expand Down
4 changes: 0 additions & 4 deletions src/renderer/gs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ void init()

epg::init(gs_options);

// Load vertex color + textured vertex color programs
epg::vu1_programs::get_vertex_color_renderer().load_program();
epg::vu1_programs::get_vertex_color_texture_renderer().load_program();

epg::gs_mem::allocate_texture_slot(1);
epg::gs_mem::allocate_texture_slot(1);
epg::gs_mem::allocate_texture_slot(1);
Expand Down

0 comments on commit 5ba5faf

Please sign in to comment.