diff options
Diffstat (limited to 'src/drv.c')
-rw-r--r-- | src/drv.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 = |