Now About Social Code
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drv.c b/src/drv.c
index e3252af..8a446ee 100644
--- a/src/drv.c
+++ b/src/drv.c
@@ -474,6 +474,15 @@ static void register_hw_render_ctx(struct driver_state *state) {
void patch_memory(struct driver_state *state) {
/* Patch PDS Pixel Code Data 0 buffer */
+ /* I think Pixel Shader address is encoded like so
+ * ((num & 0xf0) << 4) |
+ * ((num & 0xf00) << 4) |
+ * ((num & 0x7000) << 4) |
+ * ((num & 0x78000) >> 11) |
+ * ((num & 0x80000) >> 19)
+ * This was determined by experimentation to see where each bit ends up
+ * in the PDS buffer after modifying the address returned by the driver
+ */
//pds_pcd[0] = ;
uint32_t modified_pds_addr =