notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f1359c5
)
psx_gpu: move masking to set_texture
author
notaz
<notasas@gmail.com>
Wed, 15 Aug 2012 16:39:48 +0000
(19:39 +0300)
committer
notaz
<notasas@gmail.com>
Thu, 11 Oct 2012 21:05:07 +0000
(
00:05
+0300)
plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
patch
|
blob
|
blame
|
history
diff --git
a/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
b/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
index
d3616bd
..
61e7de5
100644
(file)
--- a/
plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
+++ b/
plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
@@
-92,6
+92,7
@@
void update_texture_ptr(psx_gpu_struct *psx_gpu)
void set_texture(psx_gpu_struct *psx_gpu, u32 texture_settings)
{
void set_texture(psx_gpu_struct *psx_gpu, u32 texture_settings)
{
+ texture_settings &= 0x1FF;
if(psx_gpu->texture_settings != texture_settings)
{
u32 new_texture_page = texture_settings & 0x1F;
if(psx_gpu->texture_settings != texture_settings)
{
u32 new_texture_page = texture_settings & 0x1F;
@@
-634,7
+635,7
@@
u32 gpu_parse(psx_gpu_struct *psx_gpu, u32 *list, u32 size, u32 *last_command)
#endif
case 0xE1:
#endif
case 0xE1:
- set_texture(psx_gpu, list[0]
& 0x1FF
);
+ set_texture(psx_gpu, list[0]);
if(list[0] & (1 << 9))
psx_gpu->render_state_base |= RENDER_STATE_DITHER;
if(list[0] & (1 << 9))
psx_gpu->render_state_base |= RENDER_STATE_DITHER;
@@
-1230,7
+1231,7
@@
u32 gpu_parse_enhanced(psx_gpu_struct *psx_gpu, u32 *list, u32 size, u32 *last_c
#endif
case 0xE1:
#endif
case 0xE1:
- set_texture(psx_gpu, list[0]
& 0x1FF
);
+ set_texture(psx_gpu, list[0]);
if(list[0] & (1 << 9))
psx_gpu->render_state_base |= RENDER_STATE_DITHER;
if(list[0] & (1 << 9))
psx_gpu->render_state_base |= RENDER_STATE_DITHER;