diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-08-08 08:01:30 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-08-08 08:32:36 +0100 |
commit | cf215cd04dd11357a1e1c70157a394eecf10c3da (patch) | |
tree | 4ca45ef4d46acd72d5d59038efa657025d163ccc | |
parent | 823ae23e8a20173d6d01ba3522f27432f083acd5 (diff) |
wrap: Disable runtime patching of device address
-rw-r--r-- | src/wrap.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -579,10 +579,15 @@ static void pvrsrv_ioctl_post(int fd, PVRSRV_BRIDGE_PACKAGE *bridge_package, int PVRSRV_BRIDGE_IN_ALLOCDEVICEMEM *in = bridge_package->pvParamIn; PVRSRV_BRIDGE_OUT_ALLOCDEVICEMEM *mem_data = bridge_package->pvParamOut; PVRSRV_CLIENT_MEM_INFO *mem = &mem_data->sClientMemInfo; +#if 0 + /* Code to change device pointer to get better idea on how its encoded + * TODO figure out a way to make this runtime configurable + */ if (current_alloc == 73) { printf("Offsetting alloc #73\n"); - mem->sDevVAddr.uiAddr = 0xf407000; + mem->sDevVAddr.uiAddr = 0xf4e0608; } +#endif track_buffer(mem, MEM_TYPE_NORMAL); printf("Alloc %p\n", mem->hKernelMemInfo); |