notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge from libretro fork
[pcsx_rearmed.git]
/
plugins
/
gpulib
/
gpu.c
diff --git
a/plugins/gpulib/gpu.c
b/plugins/gpulib/gpu.c
index
8e92c78
..
bef297f
100644
(file)
--- a/
plugins/gpulib/gpu.c
+++ b/
plugins/gpulib/gpu.c
@@
-360,7
+360,7
@@
static void start_vram_transfer(uint32_t pos_word, uint32_t size_word, int is_re
if (is_read) {
gpu.status |= PSX_GPU_STATUS_IMG;
// XXX: wrong for width 1
if (is_read) {
gpu.status |= PSX_GPU_STATUS_IMG;
// XXX: wrong for width 1
-
memcpy(&gpu.gp0, VRAM_MEM_XY(gpu.dma.x, gpu.dma.y), 4
);
+
gpu.gp0 = LE32TOH(*(uint32_t *) VRAM_MEM_XY(gpu.dma.x, gpu.dma.y)
);
gpu.state.last_vram_read_frame = *gpu.state.frame_count;
}
gpu.state.last_vram_read_frame = *gpu.state.frame_count;
}
@@
-612,8
+612,11
@@
uint32_t GPUreadData(void)
flush_cmd_buffer();
ret = gpu.gp0;
flush_cmd_buffer();
ret = gpu.gp0;
- if (gpu.dma.h)
+ if (gpu.dma.h) {
+ ret = HTOLE32(ret);
do_vram_io(&ret, 1, 1);
do_vram_io(&ret, 1, 1);
+ ret = LE32TOH(ret);
+ }
log_io("gpu_read %08x\n", ret);
return ret;
log_io("gpu_read %08x\n", ret);
return ret;