Now About Social Code
summaryrefslogtreecommitdiff
path: root/src/wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrap.c')
-rw-r--r--src/wrap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wrap.c b/src/wrap.c
index d85a05a..7f8688b 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -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);