Commit graph

  • e2faa4255b Keep track of the viewport z component. Paul Holden 2023-09-17 20:52:19 +01:00
  • 6d700c1bb0 Allow Vector3 and Vector4 to be constructed with coord specified directly. Paul Holden 2023-09-17 20:42:12 +01:00
  • 255ccf47f5 Format. Paul Holden 2023-09-17 20:20:05 +01:00
  • 71516a1b11 Merge disassembly into main code for moveword to reduce some duplication. Paul Holden 2023-09-17 20:19:44 +01:00
  • 32accd3ccc Implement gSPFogPosition. Paul Holden 2023-09-17 20:01:07 +01:00
  • 99364856b4 Add disassembly for gSPPerspNormalize and remove the unimplemented warning. Paul Holden 2023-09-17 19:25:15 +01:00
  • 21a3390c3a Add disassembly for gSPClipRatio and remove the unimplemented warning. Paul Holden 2023-09-17 19:19:02 +01:00
  • 98cb955768 Highlight warnings in the logs. Paul Holden 2023-09-17 16:56:50 +01:00
  • 2161d506bb Consolidate warning and halting. Disable halting by default (will eventually make this toggleable). Paul Holden 2023-09-17 16:53:27 +01:00
  • 4dd8967927 Fix hleHalt. Paul Holden 2023-09-17 16:30:02 +01:00
  • 3afb956364 Log a warning if the matrix length is unusual. Paul Holden 2023-09-17 16:25:43 +01:00
  • 44da1c70d1 Length is unused. Paul Holden 2023-09-17 16:18:36 +01:00
  • cb45f6465c Stride is unused in executeTri4GE. Paul Holden 2023-09-17 16:17:58 +01:00
  • c1d84dc7e5 Improve logging for unknown and unimplemented commands. Paul Holden 2023-09-17 16:17:21 +01:00
  • 4012bbd856 Add missing disassembly for executeRDPHalf_Cont. Paul Holden 2023-09-17 16:09:08 +01:00
  • b281c29b12 Add missing disassembly for BranchZ. Paul Holden 2023-09-17 16:05:48 +01:00
  • 4c56c3c80c Reorder and rename. Paul Holden 2023-09-17 15:58:04 +01:00
  • 145aa56ccf Pass processDList into the constructor. Paul Holden 2023-09-16 22:11:02 +01:00
  • 664c607a4e Wrap up postOp. Paul Holden 2023-09-16 22:07:18 +01:00
  • 7475bc09ac Yeet DebugController into a separate module. Paul Holden 2023-09-16 21:53:51 +01:00
  • 3b480a18be Reorder. Paul Holden 2023-09-16 21:26:46 +01:00
  • 6b234257ff Use this. Paul Holden 2023-09-16 21:25:09 +01:00
  • cf8b97a0fe Move scrub UI to DebugController. Paul Holden 2023-09-16 21:23:07 +01:00
  • 33d3ce8b9d Move debugDisplayList to DebugController. Paul Holden 2023-09-16 21:17:07 +01:00
  • bef4bc72e1 Move halt() and show/hideUI to DebugController. Paul Holden 2023-09-16 21:10:13 +01:00
  • c9ff74a4b8 Move some functions to DebugController. Paul Holden 2023-09-16 21:03:48 +01:00
  • c104927e29 Encapsulate running and requested state. Paul Holden 2023-09-16 20:39:44 +01:00
  • 9a54f07b7f Move debug state to DebugController. Paul Holden 2023-09-16 20:27:53 +01:00
  • 6c98ac4098 Move the microcode creation to microcodes.js. Paul Holden 2023-09-16 20:17:38 +01:00
  • ddfaeb7fe7 Stub out all the microcodes and use them to set up the vertex stride. Paul Holden 2023-09-16 20:09:55 +01:00
  • f4c715babc Inline getRamDataView Paul Holden 2023-09-16 17:28:15 +01:00
  • 1962be99d8 Move framebuffer initialisation to Renderer constructor. Paul Holden 2023-09-16 17:26:52 +01:00
  • 6b5f1b3c9a Move copyPixelsToFrontBuffer to Renderer. Paul Holden 2023-09-16 17:20:39 +01:00
  • a31b8b6411 Format Paul Holden 2023-09-16 17:17:11 +01:00
  • 593bffea3f Move nativeTransform to Renderer. Paul Holden 2023-09-16 17:09:26 +01:00
  • 264e1ec4f6 Move lookupTexture to Renderer. Paul Holden 2023-09-16 17:05:11 +01:00
  • de016e5c97 Tidy. Paul Holden 2023-09-16 16:58:11 +01:00
  • dea44dc6d2 Get rid of the ramDB global. Paul Holden 2023-09-16 16:54:50 +01:00
  • 5e774e84c9 Move copyBackBufferToFrontBuffer to Renderer. Paul Holden 2023-09-16 16:50:05 +01:00
  • 63d09e82e5 Move more functions to Renderer. Paul Holden 2023-09-16 16:46:32 +01:00
  • 831d258a94 Move flushTris to Renderer. Paul Holden 2023-09-16 16:35:32 +01:00
  • 7761a24a24 Add a Renderer class with fillRect and texRect. Paul Holden 2023-09-16 16:32:06 +01:00
  • 139fccddea Move microcode enums and detection to a separate module. Paul Holden 2023-09-16 14:55:58 +01:00
  • 0fad75031a Format. Paul Holden 2023-09-16 14:40:35 +01:00
  • bdfee64194 Move loadVertices to microcode. Paul Holden 2023-09-16 14:40:03 +01:00
  • 10afa64371 Wrap up table construction. Paul Holden 2023-09-16 14:33:47 +01:00
  • 085931b602 Move vertex strides to microcode base. Paul Holden 2023-09-16 14:27:39 +01:00
  • 0c44c33735 config.vertexStride is no longer used. Paul Holden 2023-09-16 14:23:12 +01:00
  • a336c453f0 Tidy Paul Holden 2023-09-16 14:21:27 +01:00
  • 94b721ea2e Move final GBI1 commands to microcode. Paul Holden 2023-09-16 14:18:01 +01:00
  • 4d54de2302 Move some GBI1 commands to microcode. Paul Holden 2023-09-16 14:12:15 +01:00
  • c09f87d74d Move some GBI1 commands to microcode. Paul Holden 2023-09-16 14:06:53 +01:00
  • 42668315a4 Move some GBI1 commands to microcode. Paul Holden 2023-09-16 14:01:41 +01:00
  • f5ba9b807d Move remaining GBI2 commands to microcode. Paul Holden 2023-09-16 13:54:40 +01:00
  • 1ad23b2d1d triangleBuffer is unused now. Paul Holden 2023-09-16 12:19:11 +01:00
  • ce7df1d9ef Move more GBI2 commands to microcode. Paul Holden 2023-09-16 12:18:18 +01:00
  • e7d3524b41 Add missing disassembly. Paul Holden 2023-09-16 12:13:10 +01:00
  • c06b054a0a Move triangle commands to microcode. Paul Holden 2023-09-16 12:11:45 +01:00
  • f616f73720 Move some trivial commands to microcode. Paul Holden 2023-09-16 12:02:38 +01:00
  • d086cc6dae Move vertex commands to microcode. Paul Holden 2023-09-16 11:48:36 +01:00
  • 04401f7d79 Move matrix commands to microcode classes. Paul Holden 2023-09-16 11:41:45 +01:00
  • 04c53ca57d Move texRect and fillRect to GBIMicrocode. Paul Holden 2023-09-16 11:34:12 +01:00
  • db15966fb0 Add disassembly for executeGBI2_SpNoop. Paul Holden 2023-09-16 11:32:45 +01:00
  • a1daa40879 Move tmem commands to GBIMicrocode. Paul Holden 2023-09-16 11:26:12 +01:00
  • 209ec1864d Move more commands to GBIMicrocode. Paul Holden 2023-09-16 11:21:21 +01:00
  • 80c7680274 Move setTile commands to GBIMicrocode. Paul Holden 2023-09-16 11:13:36 +01:00
  • cba9aeb188 Move setColor commands to GBIMicrocode. Paul Holden 2023-09-16 11:09:50 +01:00
  • 48872a2dba Use a map rather than a switch. Paul Holden 2023-09-16 11:00:56 +01:00
  • a07cc3ef4c Make it possible for microcodes to override the existing handler tables. Paul Holden 2023-09-16 10:46:02 +01:00
  • 6a12b019cc Start splitting up different microcodes. Paul Holden 2023-09-16 09:40:43 +01:00
  • b98e42eda2 Simplify how TriangleBuffer is used. Paul Holden 2023-09-16 09:28:10 +01:00
  • ab56a8c6db Add Tile.set and Tile.setSize. Paul Holden 2023-09-16 08:35:04 +01:00
  • 96b118e70c var -> const/let. Paul Holden 2023-09-15 23:24:25 +01:00
  • 04547f3a63 camelCase and const/let. Paul Holden 2023-09-15 23:08:20 +01:00
  • 7f8f08678c Rename Tile members in camelCase Paul Holden 2023-09-15 22:52:03 +01:00
  • 51071e26c0 Encapsulate TextureImage. Paul Holden 2023-09-15 09:15:18 +01:00
  • 715580a434 Add convertTexels helper to tmem. Paul Holden 2023-09-15 08:59:35 +01:00
  • 4539e3efde Move loadTLUT to tmem. Paul Holden 2023-09-15 08:57:00 +01:00
  • 266081cb47 Split out tmem. Paul Holden 2023-09-15 08:52:31 +01:00
  • 0a6b6d1725 Rename hle to hle_graphics. Paul Holden 2023-09-15 08:33:23 +01:00
  • eaad74148d Split out RSPTask. Paul Holden 2023-09-15 08:32:38 +01:00
  • 9cdd48c799 Move hle.js to hle dir. Paul Holden 2023-09-15 08:20:29 +01:00
  • 1e89f24106 Move convert, textures and shaders to hle dir. Paul Holden 2023-09-15 08:18:08 +01:00
  • a8456dd8fb Move triangle_buffer to hle dir. Paul Holden 2023-09-15 08:16:51 +01:00
  • dc8121731f Move gbi.js to hle dir. Paul Holden 2023-09-15 08:15:20 +01:00
  • 622e23a6be Use accessors. Paul Holden 2023-09-15 08:13:57 +01:00
  • 10c4e2d91c Move tile to hle/ dir. Paul Holden 2023-09-15 08:11:54 +01:00
  • bdee62a5d1 Add some debugging when setting lights with unexpected lengths,. Paul Holden 2023-09-15 08:10:39 +01:00
  • 565879c2df Move some helpers to RSPState. Paul Holden 2023-09-14 23:55:21 +01:00
  • 819c65ff61 Add a setTexture helper. Paul Holden 2023-09-14 23:44:18 +01:00
  • 3c46bb7630 Fix filename. Paul Holden 2023-09-14 23:40:33 +01:00
  • 28a3f88005 Move updateGeometryModeFromBits to RSPState. Paul Holden 2023-09-14 23:39:04 +01:00
  • 7c4167bf6a Add a RSPState class. Paul Holden 2023-09-14 23:36:58 +01:00
  • 96a172ca83 Reorder Paul Holden 2023-09-14 23:25:16 +01:00
  • 2e6326f941 Tidy. Paul Holden 2023-09-14 23:17:07 +01:00
  • 8097e9e158 Inline makeN64FramebufferToDeviceMatrix. Paul Holden 2023-09-14 23:16:07 +01:00
  • 7a1b885e6c Remove unused args. Paul Holden 2023-09-14 23:14:15 +01:00
  • 70d2c6ba9a Rename to initDimensions to make it clearer it happens once during processing. Paul Holden 2023-09-14 23:13:17 +01:00
  • 3f3393c8aa Add x, y, z, w accessors. Paul Holden 2023-09-14 23:11:28 +01:00
  • ee1383b826 Update viewport to use Vector2. Paul Holden 2023-09-14 23:06:06 +01:00